/*
|--------------------------------------------------------------------------
| FAJAR — Accueil
|--------------------------------------------------------------------------
| Direction : plateforme audio premium, sobre, visuelle, peu chargée.
|--------------------------------------------------------------------------
*/

.fajar-app {
    padding: 0;
    background: #090b10;
    color: #f7f7f5;
}

.fajar-home {
    --home-bg: #090b10;
    --home-surface: #11141b;
    --home-text: #f7f7f5;
    --home-muted: #a7a9b0;
    --home-border: rgba(255,255,255,.09);
    --home-accent: #d4af37;
    --home-max: 1320px;

    min-height: 100vh;
    background: var(--home-bg);
    color: var(--home-text);
    overflow: hidden;
}

.fajar-home *,
.fajar-home *::before,
.fajar-home *::after {
    box-sizing: border-box;
}

.fajar-home-container {
    width: min(calc(100% - 64px), var(--home-max));
    margin: 0 auto;
}

.fajar-home a {
    color: inherit;
}

/* ==========================================================================
   Header
========================================================================== */

.fajar-home-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--home-border);
    background: rgba(9,11,16,.82);
    backdrop-filter: blur(18px);
}

.fajar-home-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 46px;
}

.fajar-home-logo,
.fajar-home-footer-logo {
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .28em;
    color: #fff;
    white-space: nowrap;
}

.fajar-home-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-right: auto;
}

.fajar-home-nav a {
    position: relative;
    color: #b7b9c0;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.fajar-home-nav a:hover,
.fajar-home-nav a.is-active {
    color: #fff;
}

.fajar-home-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -27px;
    height: 2px;
    background: var(--home-accent);
}

.fajar-home-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fajar-home-login,
.fajar-home-register {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fajar-home-login {
    color: #e6e6e3;
    padding: 10px 12px;
}

.fajar-home-register {
    padding: 11px 18px;
    border-radius: 8px;
    background: #fff;
    color: #0b0d11 !important;
    transition: transform .2s ease, opacity .2s ease;
}

.fajar-home-register:hover {
    transform: translateY(-1px);
    opacity: .92;
}

/* ==========================================================================
   Hero
========================================================================== */

.fajar-home-hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.fajar-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            #090b10 0%,
            rgba(9,11,16,.95) 31%,
            rgba(9,11,16,.58) 60%,
            #090b10 100%
        ),
        linear-gradient(
            0deg,
            #090b10 0%,
            transparent 18%,
            transparent 78%,
            #090b10 100%
        );
}

.fajar-home-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--fajar-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(.72);
    opacity: .48;
    transform: scale(1.02);
}

.fajar-home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, .55fr);
    align-items: center;
    gap: 70px;
    padding: 76px 0 90px;
}

.fajar-home-hero-copy {
    max-width: 690px;
}

.fajar-home-eyebrow,
.fajar-home-premium-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--home-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .25em;
}

.fajar-home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
}

.fajar-home-hero p {
    max-width: 570px;
    margin: 25px 0 0;
    color: #c3c5cb;
    font-size: 18px;
    line-height: 1.65;
}

.fajar-home-hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.fajar-home-primary,
.fajar-home-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.fajar-home-primary {
    background: #fff !important;
    color: #090b10 !important;
}

.fajar-home-secondary {
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    background: rgba(255,255,255,.04);
}

.fajar-home-primary:hover,
.fajar-home-secondary:hover {
    transform: translateY(-2px);
}

.fajar-home-secondary:hover {
    border-color: rgba(255,255,255,.5);
}

/*
|--------------------------------------------------------------------------
| Hero cover
|--------------------------------------------------------------------------
| Même principe que les autres couvertures : format carré.
*/

.fajar-home-hero-feature {
    position: relative;
    width: min(100%, 290px);
    justify-self: end;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #171a22;
    box-shadow: 0 30px 70px rgba(0,0,0,.48);
    border: 1px solid rgba(255,255,255,.12);
}

.fajar-home-hero-feature > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fajar-home-hero-placeholder,
.fajar-home-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #242936, #0d1016);
    color: rgba(255,255,255,.35);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .25em;
}

.fajar-home-hero-feature-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 42px 18px 18px;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,.9),
        rgba(0,0,0,0)
    );
}

.fajar-home-hero-feature-info span,
.fajar-home-hero-feature-info strong {
    display: block;
}

.fajar-home-hero-feature-info span {
    margin-bottom: 5px;
    color: #c7c8cc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.fajar-home-hero-feature-info strong {
    font-size: 16px;
    line-height: 1.3;
}

.fajar-home-hero-feature-info a {
    display: inline-flex;
    gap: 7px;
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   Sections
========================================================================== */

.fajar-home-section {
    padding: 30px 0 70px;
}

.fajar-home-section-muted {
    background: #0d1016;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.fajar-home-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.fajar-home-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    letter-spacing: -.025em;
}

.fajar-home-section-heading a {
    color: #b8bac1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.fajar-home-section-heading a:hover {
    color: #fff;
}

/* ==========================================================================
   Books / Audio cards
========================================================================== */

/*
|--------------------------------------------------------------------------
| Rangée horizontale façon Spotify
|--------------------------------------------------------------------------
*/

.fajar-home-content-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.fajar-home-content-row::-webkit-scrollbar {
    height: 5px;
}

.fajar-home-content-row::-webkit-scrollbar-track {
    background: transparent;
}

.fajar-home-content-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

.fajar-home-card {
    flex: 0 0 calc((100% - 80px) / 6);
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| IMPORTANT : couverture carrée
|--------------------------------------------------------------------------
*/

.fajar-home-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #171a22;
}

.fajar-home-card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform .3s ease,
        filter .3s ease;
}

.fajar-home-card:hover .fajar-home-card-cover img {
    transform: scale(1.035);
    filter: brightness(.72);
}

.fajar-home-card-placeholder {
    font-size: 13px;
}

.fajar-home-premium-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(10,11,14,.78);
    color: #e8c75d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.fajar-home-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #090b10;
    font-size: 12px;
    opacity: 0;
    transform: translateY(5px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.fajar-home-card:hover .fajar-home-play {
    opacity: 1;
    transform: translateY(0);
}

.fajar-home-card-info {
    padding-top: 10px;
}

.fajar-home-card-info strong,
.fajar-home-card-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fajar-home-card-info strong {
    color: #f4f4f2;
    font-size: 14px;
    line-height: 1.35;
}

.fajar-home-card-info span {
    margin-top: 4px;
    color: #858891;
    font-size: 12px;
}

/* ==========================================================================
   Podcasts
========================================================================== */

/*
|--------------------------------------------------------------------------
| Les podcasts deviennent eux aussi des cartes carrées.
|--------------------------------------------------------------------------
*/

.fajar-home-podcast-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.fajar-home-podcast-row::-webkit-scrollbar {
    height: 5px;
}

.fajar-home-podcast-row::-webkit-scrollbar-track {
    background: transparent;
}

.fajar-home-podcast-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

.fajar-home-podcast {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .2s ease;
}

.fajar-home-podcast:hover {
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Podcast cover carrée
|--------------------------------------------------------------------------
*/

.fajar-home-podcast-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #171a22;
}

.fajar-home-podcast-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform .25s ease,
        filter .25s ease;
}

.fajar-home-podcast:hover .fajar-home-podcast-cover img {
    transform: scale(1.05);
    filter: brightness(.72);
}

.fajar-home-podcast-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
    top: auto;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    transform: translateY(5px);
    border-radius: 50%;

    background: #fff;
    color: #090b10;
    font-size: 11px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.fajar-home-podcast:hover .fajar-home-podcast-play {
    opacity: 1;
    transform: translateY(0);
}

.fajar-home-podcast-info {
    min-width: 0;
    padding-top: 10px;
}

.fajar-home-podcast-info strong,
.fajar-home-podcast-info span,
.fajar-home-podcast-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fajar-home-podcast-info strong {
    color: #f4f4f2;
    font-size: 14px;
    line-height: 1.35;
}

.fajar-home-podcast-info span {
    margin-top: 4px;
    color: #8d9098;
    font-size: 12px;
}

.fajar-home-podcast-info small {
    margin-top: 5px;
    color: #686b73;
    font-size: 11px;
}

/* ==========================================================================
   Premium
========================================================================== */

.fajar-home-premium-section {
    padding: 70px 0;
}

.fajar-home-premium-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 38px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 12px;
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(212,175,55,.10),
            transparent 35%
        ),
        #11141b;
}

.fajar-home-premium-label {
    margin-bottom: 8px;
}

.fajar-home-premium-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 31px);
    letter-spacing: -.03em;
}

.fajar-home-premium-card p {
    margin: 8px 0 0;
    color: #aeb0b6;
    font-size: 14px;
}

/* ==========================================================================
   Footer
========================================================================== */

.fajar-home-footer {
    border-top: 1px solid var(--home-border);
    padding: 28px 0;
}

.fajar-home-footer-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.fajar-home-footer nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.fajar-home-footer nav a {
    color: #858891;
    text-decoration: none;
    font-size: 12px;
}

.fajar-home-footer nav a:hover {
    color: #fff;
}

.fajar-home-copyright {
    color: #686b73;
    font-size: 11px;
}

/* ==========================================================================
   Responsive
========================================================================== */

@media (max-width: 1100px) {

    .fajar-home-card {
        flex: 0 0 calc((100% - 32px) / 3);
    }

    .fajar-home-podcast {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

@media (max-width: 820px) {

    .fajar-home-container {
        width: min(calc(100% - 36px), var(--home-max));
    }

    .fajar-home-header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .fajar-home-nav {
        display: none;
    }

    .fajar-home-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto !important;
    }

    .fajar-home-login {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        padding: 8px 5px;
        font-size: 12px;
    }

    .fajar-home-register {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 12px;
    }

    .fajar-home-hero {
        min-height: auto;
    }

    .fajar-home-hero-backdrop {
        inset: 0;
        opacity: .22;
    }

    .fajar-home-hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 70px 0 65px;
    }

    .fajar-home-hero h1 {
        font-size: clamp(40px, 11vw, 58px);
    }

    .fajar-home-hero p {
        font-size: 16px;
    }

    .fajar-home-hero-feature {
        width: min(220px, 55vw);
        justify-self: start;
    }

    /*
    |--------------------------------------------------------------------------
    | Mobile : environ 2 cartes visibles
    |--------------------------------------------------------------------------
    */

    .fajar-home-card {
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .fajar-home-podcast {
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .fajar-home-content-row,
    .fajar-home-podcast-row {
        gap: 12px;
    }

    .fajar-home-premium-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .fajar-home-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .fajar-home-footer nav {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {

    .fajar-home-container {
        width: min(calc(100% - 28px), var(--home-max));
    }

    .fajar-home-logo,
    .fajar-home-footer-logo {
        font-size: 21px;
    }

    /*
    |--------------------------------------------------------------------------
    | Mobile petit écran :
    | on garde des couvertures carrées suffisamment grandes
    |--------------------------------------------------------------------------
    */

    .fajar-home-card {
        flex: 0 0 calc((100% - 10px) / 2);
    }

    .fajar-home-podcast {
        flex: 0 0 calc((100% - 10px) / 2);
    }

    .fajar-home-content-row,
    .fajar-home-podcast-row {
        gap: 10px;
    }

    .fajar-home-section {
        padding-bottom: 50px;
    }

    .fajar-home-section-heading h2 {
        font-size: 22px;
    }

    .fajar-home-primary,
    .fajar-home-secondary {
        min-height: 44px;
        padding: 0 16px;
        font-size: 13px;
    }

    .fajar-home-card-info strong,
    .fajar-home-podcast-info strong {
        font-size: 13px;
    }

    .fajar-home-card-info span,
    .fajar-home-podcast-info span {
        font-size: 11px;
    }
}