/* ==========================================
   STADIUM INFORMATION PAGE
   (STADIUM.png redesign — hero banner, lime-bar
   sections, overview strip, dimensions card,
   club rows, referee-style match cards)
   ========================================== */

/* ═══ Page Container ═══ */
.stadium-page-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 24px 15px;
}

/* ═══ Hero Banner (rounded photo card, gradient overlay
      bottom-left name + pin location) ═══ */
.stadium-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-card);
    margin-bottom: 24px;
    background: var(--bg-card);
}

.stadium-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stadium-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 40px 28px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}

/* Montserrat/Bold display name */
.stadium-hero-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-xxl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stadium-hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
}

.stadium-hero-location i {
    font-size: var(--font-size-md);
    line-height: 1;
}

/* ═══ Section Titles (4×18px lime bar, Montserrat 800/16 —
      same visual as .player-section-title) ═══ */
.stadium-section {
    margin-bottom: 24px;
}

.stadium-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-primary);
}

.stadium-section-title-bar {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--accent-primary);
    flex-shrink: 0;
}

/* ═══ Overview Card (horizontal strip: icon + label/value,
      hairline separators between items) ═══ */
.stadium-overview-card {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
}

.stadium-overview-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 0;
    min-width: 200px;
    padding: 16px 24px;
    border-inline-end: 1px solid var(--border-color);
}

.stadium-overview-item:last-child {
    border-inline-end: none;
}

.stadium-overview-item i {
    font-size: 22px;
    line-height: 1;
    color: var(--text-primary);
    flex-shrink: 0;
}

.stadium-overview-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.stadium-overview-label {
    font-size: var(--font-size-xs);
    line-height: 1.2;
    color: var(--text-muted);
}

.stadium-overview-value {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* Optional description paragraph below overview strip */
.stadium-description {
    margin: 16px 0 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══ Dimensions Card (pitch thumb + length/width columns +
      floor-type pill) ═══ */
.stadium-dimensions-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
}

/* Top-view striped pitch thumbnail (Soccer-Green-Field.png) */
.stadium-pitch-thumb {
    width: 120px;
    height: 82px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.stadium-pitch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stadium-dimension-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 96px;
}

.stadium-dimension-label {
    font-size: var(--font-size-xs);
    line-height: 1.2;
    color: var(--text-muted);
}

.stadium-dimension-value {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.stadium-dimension-value small {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-muted);
}

/* Lime outline pill — "Natural Grass" */
.stadium-floor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.5;
    color: var(--accent-primary);
    background: var(--accent-primary-subtle);
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius-pill);
    white-space: nowrap;
}

.stadium-floor-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ═══ Clubs (one full-width card row per team) ═══ */
.stadium-clubs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stadium-club-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.stadium-club-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: inherit;
}

.stadium-club-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.stadium-club-name {
    min-width: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stadium-club-since {
    margin-inline-start: auto;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

/* ═══ Section Labels (purple pill headings — same visual as
      .referee-section-label) ═══ */
.stadium-matches-section {
    margin-bottom: 24px;
}

.stadium-section-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.22;
    white-space: nowrap;
    color: var(--text-white);
    background: var(--accent-purple-dark);
    border-radius: var(--border-radius-pill);
}

/* ═══ League Cards (header band + fixture rows — same visual
      language as .referee-league-card) ═══ */
.stadium-league-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stadium-league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.stadium-league-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card-header);
    border-bottom: 1px solid var(--border-color);
}

.stadium-league-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.stadium-league-name {
    margin: 0;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Fixture Rows ═══ */
.stadium-fixture-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.stadium-fixture-item:last-child {
    border-bottom: none;
}

.stadium-fixture-item:hover {
    background: var(--bg-card-hover);
}

.stadium-fixture-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.stadium-fixture-team.home {
    justify-content: flex-end;
}

.stadium-fixture-team.away {
    justify-content: flex-start;
}

.stadium-fixture-team img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.stadium-fixture-team-name {
    min-width: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stadium-fixture-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 2px 0;
}

/* Final score — Montserrat 900/20 */
.stadium-fixture-score {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: var(--text-primary);
}

/* Kickoff time */
.stadium-fixture-time {
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* ═══ App Banner (page hook for shared .app-banner) ═══ */
.stadium-app-banner {
    margin-bottom: 0;
}

/* ═══ Responsive ═══ */
@media (max-width: 991.98px) {
    .stadium-overview-item {
        min-width: 45%;
        border-inline-end: none;
    }

    .stadium-overview-card {
        gap: 0;
        padding: 8px;
    }

    .stadium-dimensions-card {
        gap: 24px;
    }
}

@media (max-width: 767.98px) {
    .stadium-hero {
        height: 280px;
    }

    .stadium-hero-overlay {
        padding: 24px 20px 20px;
    }

    .stadium-hero-name {
        font-size: var(--font-size-xl);
    }

    .stadium-overview-item {
        min-width: 100%;
        padding: 12px 16px;
    }

    .stadium-fixture-center {
        min-width: 96px;
    }
}

@media (max-width: 575.98px) {
    .stadium-hero {
        height: 220px;
    }

    .stadium-hero-name {
        font-size: var(--font-size-lg);
    }

    .stadium-dimensions-card {
        padding: 16px;
        gap: 16px 24px;
    }

    .stadium-pitch-thumb {
        width: 100px;
        height: 70px;
    }

    .stadium-fixture-item {
        padding: 8px 12px;
    }

    .stadium-fixture-center {
        min-width: 84px;
    }

    .stadium-fixture-score {
        font-size: var(--font-size-md);
    }

    .stadium-league-card-header {
        padding: 10px 12px;
    }
}
