/* Futuristic Clean Schedule Page Styles */

.schedule-page-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
}

.schedule-header {
    padding: 0 0 16px;
    margin-bottom: 10px;
    width: 100%;
}

.schedule-header-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.schedule-header-title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--ice-white);
    text-wrap: balance;
}

.schedule-timezone-note {
    max-width: none;
    margin: 0 auto 12px;
    color: #9fb0c7;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
    text-align: center;
}

/* Sleek Horizontal Week Selector Carousel */
.week-selector-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 14px;
}

.week-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    max-width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.week-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Webkit */
}

.week-tab {
    background: transparent;
    border: none;
    outline: none;
    color: #9fb0c7;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.15s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.week-tab:hover {
    color: var(--ice-white);
    background-color: rgba(255, 255, 255, 0.04);
}

.week-tab.is-active {
    color: #07111f !important;
    background-color: var(--victory-gold) !important;
    box-shadow: 0 4px 12px rgba(233, 191, 69, 0.25);
    font-weight: 900;
}

.week-tab:active {
    transform: scale(0.96);
}

/* Team Filter Selector */
.schedule-team-selector-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.schedule-team-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.schedule-team-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--ice-white);
    font-size: 0.92rem;
    font-weight: 800;
    font-family: inherit;
    padding: 12px 48px 12px 28px;
    cursor: pointer;
    outline: none;
    min-width: 280px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-team-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(15, 23, 42, 0.75);
}

.schedule-team-select:focus {
    border-color: var(--victory-gold);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
    background-color: rgba(15, 23, 42, 0.8);
}

/* Dropdown option colors (best-effort on supported browsers) */
.schedule-team-select option {
    background-color: #0f172a;
    color: var(--ice-white);
}

/* Rotating chevron overlay */
.selector-chevron {
    position: absolute;
    right: 18px;
    pointer-events: none;
    color: #9fb0c7;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.schedule-team-selector:focus-within .selector-chevron {
    transform: rotate(180deg);
    color: var(--victory-gold);
}

/* Sections */
.schedule-section,
.results-section {
    margin-bottom: 56px;
    width: 100%;
}

.section-head {
    margin-bottom: 24px;
    text-align: center;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--ice-white);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.panel-hint {
    font-size: 0.92rem;
    color: #9fb0c7;
    margin: 0;
    font-weight: 550;
}

/* Week Groups */
.schedule-week-group {
    margin-bottom: 40px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

.schedule-week-head h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--victory-gold);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    border-left: 4px solid var(--victory-gold);
    padding-left: 12px;
    line-height: 1.1;
}

.schedule-date-group {
    margin-bottom: 36px;
}

.schedule-date-group:last-child {
    margin-bottom: 0;
}

.schedule-date-head h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #9fb0c7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

/* 2-Column ticket card grid on desktop */
.schedule-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px 20px;
    width: 100%;
}

/* Symmetrical Matchup Card Layout */
.matchup-ticket-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 28px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

/* Dynamic brand-color tinted hover glows */
.matchup-ticket-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 
        inset 0 0 16px rgba(255, 255, 255, 0.02),
        -8px 0 24px color-mix(in srgb, var(--away-brand) 18%, transparent),
        8px 0 24px color-mix(in srgb, var(--home-brand) 18%, transparent);
}

.ticket-side {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ticket-side--away {
    justify-content: flex-start;
}

.ticket-side--home {
    justify-content: flex-end;
}

/* Large, uncontained transparent team logos */
.ticket-team-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-team-logo .team-mark {
    margin: 0;
    width: 100%;
    height: 100%;
}

.ticket-team-logo .team-mark-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ticket-team-logo .team-mark-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 0 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); /* Drop shadow to stand out elegantly */
    transition: transform 0.2s ease;
}

.matchup-ticket-card:hover .ticket-team-logo .team-mark-badge img {
    transform: scale(1.08); /* Micro-scale pop on hover */
}

.ticket-team-logo .team-monogram {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: var(--ice-white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

.ticket-team-name {
    color: var(--ice-white);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}


.ticket-team-info {
    display: flex;
    flex-direction: column;
}
.ticket-side--away .ticket-team-info {
    align-items: flex-start;
}
.ticket-side--home .ticket-team-info {
    align-items: flex-end;
}
.ticket-team-loc {
    font-size: 0.72rem;
    color: var(--cool-gray);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.ticket-mobile-header, .ticket-mobile-details {
    display: none;
}

/* Central match details styling */
.ticket-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
    border-right: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 0 12px;
    height: 100%;
    min-height: 52px;
}

.ticket-time-display {
    color: var(--victory-gold);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.ticket-vs-label {
    color: #9fb0c7;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-top: 3px;
    opacity: 0.5;
}

.schedule-no-results {
    text-align: center;
    color: #9fb0c7;
    font-size: 1.1rem;
    padding: 48px 0;
    font-weight: 550;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
    .schedule-game-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .schedule-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .schedule-timezone-note {
        max-width: none;
        text-align: left;
    }

    .schedule-week-group {
        padding: 20px;
    }
    
    .matchup-ticket-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 20px 16px;
    }
    
    .ticket-mobile-header {
        display: block;
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--ice-white);
        text-align: center;
    }
    
    .ticket-mobile-header span {
        color: var(--cool-gray);
        font-weight: 700;
        font-size: 0.95rem;
        margin: 0 6px;
    }
    
    .ticket-mobile-details {
        display: block;
        font-size: 0.8rem;
        color: var(--cool-gray);
        font-weight: 700;
        margin-top: 4px;
        text-align: center;
    }
    
    .ticket-center {
        border: none !important;
        padding: 0;
        min-height: auto;
    }
    
    .ticket-time-main {
        font-size: 1.15rem;
    }
    
    .ticket-side {
        display: none; /* Hide full sides on mobile for a clean stacked look */
    }
}

@media (max-width: 480px) {
    .schedule-week-group {
        padding: 14px;
    }

    .matchup-ticket-card {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
        padding: 14px 12px;
    }

    .ticket-side {
        min-width: 0;
        gap: 8px;
    }

    .ticket-center {
        padding: 0 6px;
    }

    .ticket-team-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.95rem;
    }

    .ticket-team-logo,
    .ticket-team-logo .team-mark-badge {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Centered completed score formatting */
.ticket-center.is-played {
    border-left-style: solid;
    border-right-style: solid;
    border-left-color: rgba(255, 255, 255, 0.08);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.ticket-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2px;
}

.score-num {
    font-size: 1.45rem;
    font-weight: 900;
    color: #9fb0c7;
    line-height: 1;
}

.score-num.is-winner {
    color: var(--victory-gold);
}

.score-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    font-weight: 700;
}

.ticket-status-label {
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Fading the loser and highlighting the winner */
.ticket-side.is-loser {
    opacity: 0.45;
}

.ticket-side.is-winner {
    opacity: 1;
}

.ticket-side.is-winner .ticket-team-name {
    font-weight: 900;
    color: var(--ice-white);
}

.ticket-time-main {
    display: block;
    color: var(--victory-gold);
    font-weight: 800;
}

.ticket-time-helper {
    display: block;
    font-size: 0.7rem;
    color: var(--cool-gray);
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide the @ if it still exists elsewhere but shouldn't be under time */
.ticket-vs-label {
    display: none;
}
