/* =========================================================
   DTTF Venue Profile
   Mobile-first venue detail page
   ========================================================= */

.venue-profile-page {
    background: #f3f5f7;
    min-height: 100vh;
    padding: 0 0 2rem;
}

.venue-profile-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.venue-card {
    background: #fff;
    margin: 0.85rem 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(10, 24, 43, 0.07);
}

.venue-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.venue-section-heading h2 {
    margin: 0;
    color: #111d2e;
    font-size: 1.08rem;
    line-height: 1.2;
}

.venue-section-heading p {
    margin: 0.2rem 0 0;
    color: #6a7480;
    font-size: 0.78rem;
}

.venue-empty {
    margin: 0;
    color: #6a7480;
    font-size: 0.9rem;
}


/* =========================================================
   Hero
   ========================================================= */

.venue-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: #111d2e;
}

.venue-hero-image,
.venue-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.venue-hero-image {
    object-fit: cover;
}

.venue-hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10, 24, 43, 0.16) 15%,
        rgba(10, 24, 43, 0.76) 68%,
        rgba(10, 24, 43, 0.94) 100%
    );
}

.venue-hero-content {
    position: relative;
    z-index: 1;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem;
    color: #fff;
}

.venue-badge {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(10, 24, 43, 0.84);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.venue-hero h1 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.05;
}

.venue-hero-location {
    margin: 0.35rem 0 0.8rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.venue-game-info {
    display: grid;
    gap: 0.45rem;
}

.venue-game-row {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.venue-game-day {
    font-weight: 800;
}

.venue-game-time {
    margin-left: 0.4rem;
    color: #8ee3a9;
    font-weight: 800;
}

.venue-game-title {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.venue-early-bonus {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.venue-free-play {
    margin-top: 0.75rem;
    color: #8ee3a9;
    font-size: 0.76rem;
    font-weight: 800;
}


/* =========================================================
   Venue information
   ========================================================= */

.venue-info-list {
    display: grid;
}

.venue-info-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-top: 1px solid #edf0f2;
    font-size: 0.86rem;
}

.venue-info-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.venue-info-label {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: #6a7480;
    font-weight: 700;
}

.venue-info-value {
    min-width: 0;
    color: #1a2430;
    overflow-wrap: anywhere;
}

.venue-info-value a,
.venue-text-link {
    color: #087a3e;
    font-weight: 700;
    text-decoration: none;
}

.venue-link-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    object-fit: contain;
}


/* =========================================================
   Compact current-season stats
   ========================================================= */

.venue-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0.85rem 0.75rem;
    overflow: hidden;
    background: #111d2e;
    border-radius: 12px;
    color: #fff;
}

.venue-stat {
    padding: 0.85rem 0.4rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.venue-stat:first-child {
    border-left: 0;
}

.venue-stat strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.venue-stat span {
    display: block;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
}


/* =========================================================
   Leaderboard
   ========================================================= */

.venue-leader,
.venue-standing-row {
    color: inherit;
    text-decoration: none;
}

.venue-leader {
    display: grid;
    grid-template-columns: auto 62px minmax(0, 1fr);
    grid-template-areas:
        "rank photo main"
        "rank photo stats";
    gap: 0.2rem 0.7rem;
    align-items: center;
    padding: 0.8rem;
    background: #f5f8f6;
    border: 1px solid #e0e8e3;
    border-radius: 12px;
}

.venue-leader-rank {
    grid-area: rank;
    align-self: stretch;
    display: flex;
    align-items: center;
    color: #b78317;
    font-size: 1.35rem;
    font-weight: 900;
}

.venue-leader-photo {
    grid-area: photo;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
}

.venue-leader-main {
    grid-area: main;
    min-width: 0;
}

.venue-leader-main strong {
    display: block;
    overflow: hidden;
    color: #111d2e;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-leader-main span {
    color: #087a3e;
    font-size: 0.8rem;
    font-weight: 800;
}

.venue-leader-stats {
    grid-area: stats;
    display: flex;
    gap: 0.8rem;
    color: #6a7480;
    font-size: 0.72rem;
}

.venue-standings-list {
    margin-top: 0.5rem;
}

.venue-standing-row {
    display: grid;
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    grid-template-areas:
        "rank photo name points"
        "rank photo secondary secondary";
    gap: 0.1rem 0.55rem;
    align-items: center;
    padding: 0.58rem 0;
    border-bottom: 1px solid #edf0f2;
}

.venue-standing-rank {
    grid-area: rank;
    text-align: center;
    color: #6a7480;
    font-size: 0.82rem;
    font-weight: 800;
}

.venue-standing-photo {
    grid-area: photo;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.venue-standing-name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    color: #111d2e;
    font-size: 0.86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-standing-points {
    grid-area: points;
    color: #087a3e;
    font-size: 0.72rem;
    white-space: nowrap;
}

.venue-standing-points strong {
    font-size: 0.88rem;
}

.venue-standing-secondary {
    grid-area: secondary;
    color: #7a838c;
    font-size: 0.68rem;
}


/* =========================================================
   Recent results
   ========================================================= */

.venue-result {
    padding: 0.8rem 0;
    border-top: 1px solid #edf0f2;
}

.venue-result:first-child {
    padding-top: 0;
    border-top: 0;
}

.venue-result-heading {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
    color: #111d2e;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.venue-result-heading span:last-child {
    color: #6a7480;
    font-weight: 600;
}

.venue-result-places {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.venue-result-player {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    color: #111d2e;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.venue-result-player img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.venue-result-player > span:last-child {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venue-place {
    color: #087a3e;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
}


/* =========================================================
   Gallery / History / Footer links
   ========================================================= */

.venue-coming-soon {
    min-height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f5f7f8;
    border: 1px dashed #cfd6dc;
    border-radius: 10px;
    text-align: center;
}

.venue-coming-soon strong {
    color: #111d2e;
}

.venue-coming-soon span {
    margin-top: 0.25rem;
    color: #7a838c;
    font-size: 0.76rem;
}

.venue-history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.venue-history-grid > div {
    padding: 0.8rem;
    background: #f5f7f8;
    border-radius: 9px;
    text-align: center;
}

.venue-history-grid strong {
    display: block;
    color: #111d2e;
    font-size: 1.15rem;
}

.venue-history-grid span {
    display: block;
    margin-top: 0.2rem;
    color: #6a7480;
    font-size: 0.68rem;
}

.venue-card-footer {
    padding-top: 0.8rem;
    text-align: center;
}

.venue-muted-link {
    color: #8a9299;
    font-size: 0.75rem;
}

.venue-not-found {
    margin-top: 2rem;
}


/* =========================================================
   Larger screens
   ========================================================= */

@media (min-width: 700px) {
    .venue-profile-page {
        padding-top: 1.25rem;
    }

    .venue-profile-shell {
        padding: 0 1rem;
    }

    .venue-hero {
        min-height: 430px;
        border-radius: 16px;
    }

    .venue-hero-content {
        min-height: 430px;
        padding: 1.7rem;
    }

    .venue-hero h1 {
        font-size: 2.35rem;
    }

    .venue-card,
    .venue-stat-strip {
        margin-left: 0;
        margin-right: 0;
    }

    .venue-card {
        padding: 1.25rem 1.4rem;
    }

    .venue-info-row {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .venue-result-places {
        max-width: 520px;
    }

    .venue-history-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =========================================================
   Venue profile tabs
   Hero and compact stats remain visible above these tabs.
   ========================================================= */

.venue-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0.85rem 0.75rem 0;
    padding: 0.25rem;
    background: #fff;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(10, 24, 43, 0.08);
}

.venue-tab {
    appearance: none;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 0.72rem 0.4rem;
    color: #66717c;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.venue-tab.is-active {
    background: #111d2e;
    color: #fff;
}

.venue-tab:focus-visible {
    outline: 2px solid #087a3e;
    outline-offset: 2px;
}

.venue-tab-panel {
    display: block;
}

.venue-tab-panel[hidden] {
    display: none;
}

/* First card inside a selected tab sits close to the tab control. */
.venue-tab-panel > .venue-card:first-child {
    margin-top: 0.65rem;
}

@media (min-width: 700px) {
    .venue-tabs {
        margin-left: 0;
        margin-right: 0;
    }

    .venue-tab {
        font-size: 0.86rem;
    }
}
