
/* =========================================
   BOOK TRAILERS PAGE
   Uses the existing website branding
========================================= */

.trailers-page {
    padding-bottom: 60px;
}

/* INTRO */

.trailers-hero {
    max-width: 1050px;
    margin: 0 auto;
    padding: 45px 20px 28px;
    text-align: center;
}

.trailer-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.trailer-heading-icon span {
    width: 180px;
    max-width: 22%;
    height: 1px;
    background: var(--gold, #c6a46a);
}

.trailer-heading-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--gold, #c6a46a);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trailers-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trailers-hero p {
    max-width: 850px;
    margin: 12px auto 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 2vw, 24px);
    font-style: italic;
    line-height: 1.5;
}


/* GRID */

.trailers-container {
    width: min(1440px, calc(100% - 50px));
    margin: 0 auto;
}

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}


/* CARD */

.trailer-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 16px 12px 18px;

    border: 1px solid var(--gold, #c6a46a);
    border-radius: 14px;

    background: rgba(15, 28, 46, 0.20);

    transition: transform 0.25s ease,
                border-color 0.25s ease;
}

.trailer-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-light, #e6c98e);
}


/* BOOK COVER */

.book-cover {
    width: 100%;
    height: 290px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.book-cover img {
    display: block;
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;

    filter: drop-shadow(6px 8px 5px rgba(0, 0, 0, 0.5));
}


/* VIDEO */

.trailer-video {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border: 1px solid var(--gold, #c6a46a);
    border-radius: 10px;

    background: #080808;
}

.trailer-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* BOOK TITLE */

.trailer-card h2 {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 13px 0;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}


/* WATCH BUTTON */

.watch-trailer {
    width: 100%;
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: auto;
    padding: 11px 10px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #b98c4c,
        #f0d18b,
        #c69b58
    );

    color: #211510;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: transform 0.2s ease,
                filter 0.2s ease;
}

.watch-trailer:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.watch-trailer:focus-visible {
    outline: 2px solid var(--gold, #c6a46a);
    outline-offset: 4px;
}


/* TABLET */

@media (max-width: 1100px) {

    .trailers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .book-cover {
        height: 270px;
    }
}


/* SMALL TABLET */

@media (max-width: 760px) {

    .trailers-container {
        width: min(570px, calc(100% - 30px));
    }

    .trailers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .book-cover {
        height: 245px;
    }

    .trailer-card {
        padding: 12px 9px 14px;
    }

    .trailer-card h2 {
        font-size: 18px;
    }

}


/* MOBILE */

@media (max-width: 480px) {

    .trailers-hero {
        padding-top: 30px;
    }

    .trailers-hero h1 {
        font-size: 35px;
        letter-spacing: 1px;
    }

    .trailers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trailer-card {
        padding: 16px;
    }

    .book-cover {
        height: 330px;
    }

    .trailer-card h2 {
        font-size: 21px;
    }

    .watch-trailer {
        max-width: 280px;
    }

}
