/* ═══════════════════════════════════════════════════════════
   games.css  —  Page-specific styles for Games.php
   Depends on: index.css (design tokens, body override, section-padded)
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   PAGE HERO  (smaller than the index hero)
═══════════════════════════════════════════ */
.page-hero {
    background-color: var(--red);
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(180,0,0,0.6) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(80,0,0,0.4) 0%, transparent 60%);
    color: #fff;
    padding: 56px 20px 48px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.page-hero-title {
    font-family: 'Ceviche One', cursive;
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.page-hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    opacity: 0.9;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   SECTION HEADER ROW  (icon + h2 inline)
═══════════════════════════════════════════ */
.section-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-icon {
    font-size: 1.8rem;
    color: var(--red);
    flex-shrink: 0;
}

/* Shared table styling (.site-table-wrap) lives in index.css */

/* ═══════════════════════════════════════════
   LINKS
═══════════════════════════════════════════ */
.games-link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.games-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.games-link .fa-arrow-up-right-from-square {
    font-size: 0.75em;
    margin-left: 3px;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   BRÆTSPIL PDF DOWNLOAD
═══════════════════════════════════════════ */
.braetspil-img-wrap {
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: center;
}

/* ═══════════════════════════════════════════
   BRÆTSPIL TABLE — filters + sortable headers
═══════════════════════════════════════════ */
.games-filters {
    display: grid;
    grid-template-columns: minmax(170px, 1.5fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #e0d4c4;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.games-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.games-filter-group label,
.games-filter-group legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.games-filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.games-clear-btn {
    background-color: var(--red);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.games-clear-btn:hover {
    background-color: var(--red-dark);
    color: #fff;
}

.games-sort {
    display: inline-flex;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.site-table-wrap thead .games-sort span {
    opacity: 0.8;
}

@media (max-width: 991.98px) {
    .games-filters {
        grid-template-columns: 1fr 1fr;
    }

    .games-filter-wide,
    .games-clear-btn {
        grid-column: 1 / -1;
    }
}

.rules-text {
    font-size: 0.85rem;
    color: #555;
    max-width: 220px;
    display: block;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .page-hero {
        padding: 40px 16px 32px;
    }

    .section-header-row {
        gap: 8px;
    }

    .section-icon {
        font-size: 1.4rem;
    }
}
