/* Ana sayfa (index.php) — same palette as the rest of the site:
   cream background, orange accent, navy headings, beige cards with an orange left edge. */

/* "html body" beats the plain "html, body { background: #fff }" inline in partials/head.php,
   so the cream art backgrounds blend into the page */
html body {
    background: #f4f1e9;
}

.home {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    box-sizing: border-box;
    color: #1f2d46;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 24px;
    min-height: 420px;
}

.home-hero__eyebrow {
    display: inline-block;
    padding-left: 12px;
    border-left: 5px solid #e6552e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e6552e;
}

.home-hero__title {
    margin: 14px 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1f2d46;
}

.home-hero__intro {
    max-width: 540px;
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.65;
    color: #444;
}

/* Two equal columns: account + guide on top, Discord + trailer below */
.home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 480px;
}

.home-hero__actions .home-btn {
    justify-content: center;
    white-space: nowrap;
    /* same height for all, whatever their border or icon */
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.home-hero__art {
    justify-self: center;
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.home-btn--primary {
    background: #e6552e;
    color: #fff;
}

.home-btn--primary:hover {
    background: #c03812;
}

.home-btn--outline {
    border: 2px solid #1f2d46;
    color: #1f2d46;
}

.home-btn--outline:hover {
    background: #1f2d46;
    color: #fff;
}

.home-btn--discord {
    background: #5865f2;
    color: #fff;
}

.home-btn--discord:hover {
    background: #4752c4;
}

/* ── Section titles ───────────────────────────────────────────────── */
.home-section {
    margin-top: 48px;
}

.home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.home-section__title {
    margin: 0;
    padding-left: 14px;
    border-left: 6px solid #e6552e;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1f2d46;
}

.home-section__link {
    color: #e6552e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-section__link:hover {
    text-decoration: underline;
}

/* ── Feature + news cards ─────────────────────────────────────────── */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-card {
    background: #e8e6df;
    border: 1px solid #dcd9d0;
    border-left: 6px solid #e6552e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
}

.home-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1f2d46;
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.home-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #1f2d46;
}

.home-card__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.home-news {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-news:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.home-news__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #d6d3cb;
}

.home-news__image--empty {
    display: grid;
    place-items: center;
    color: #999;
    font-size: 28px;
}

.home-news__body {
    padding: 16px 18px 18px;
}

.home-news__date {
    font-size: 12px;
    font-weight: 700;
    color: #e6552e;
}

.home-news__title {
    margin: 6px 0 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #1f2d46;
}

.home-empty {
    color: #666;
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: left;
    }

    .home-hero__art {
        max-width: 220px;
        order: -1;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home {
        padding: 20px 16px 40px;
    }

    /* The headline matters more than the art on a phone */
    .home-hero__art {
        max-width: 160px;
    }

    /* One column on phones: two would squeeze the labels */
    .home-hero__actions {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* ── Trailer button + modal ───────────────────────────────────────── */
.home-btn--trailer {
    border: 0;
    background: #1f2d46;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.home-btn--trailer:hover {
    background: #2b3d5e;
}

.home-btn--trailer i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #e6552e;
    font-size: 9px;
    padding-left: 2px;
}

.trailer-modal {
    width: min(960px, 94vw);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.trailer-modal::backdrop {
    background: rgba(10, 12, 18, 0.82);
    backdrop-filter: blur(3px);
}

html.trailer-open,
html.trailer-open body {
    overflow: hidden;
}

.trailer-modal__box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.trailer-modal__frame {
    aspect-ratio: 16 / 9;
}

.trailer-modal__frame iframe,
.trailer-modal__frame video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.trailer-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.trailer-modal__close:hover {
    background: #e6552e;
}
