/**
 * Game Day Experience Styles
 * Live game page with scores, chat, polls, and tickets
 */

/* Game Header */
.game-header {
    background: var(--brand-navy-900);
    color: var(--neutral-white);
    padding: var(--space-6) 0;
    border-bottom: var(--border-width-4) solid var(--brand-gold-900);
}

.game-header-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--space-5);
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.team-logo {
    width: 80px;
    height: 80px;
}

.team-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    text-align: center;
}

.team-record {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    opacity: 0.9;
}

.matchup-vs {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--brand-gold-900);
}

.game-time {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    opacity: 0.95;
}

/* Live Scoreboard */
.live-scoreboard-section {
    background: var(--neutral-white);
    border-bottom: var(--border-width-1) solid var(--neutral-800);
    padding: var(--space-5) 0;
}

.scoreboard-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.live-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--neutral-100);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.score-team {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.score-team-logo {
    width: 60px;
    height: 60px;
}

.score-team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-team-name {
    font-size: 18px;
    font-weight: 600;
    color: #48494A;
}

.score-team-score {
    font-size: 36px;
    font-weight: 700;
    color: #48494A;
}

.score-divider {
    font-size: 28px;
    font-weight: 600;
    color: #999;
    padding: 0 20px;
}

.score-period {
    text-align: center;
    padding: 0 20px;
}

.period-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.period-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #48494A;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Game Day Tabs */
.gameday-tabs-section {
    background: #FFFFFF;
    border-bottom: 1px solid #1E1F21;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gameday-tabs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gameday-tab {
    flex: 1;
    min-width: 120px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gameday-tab:hover {
    background: #EDEEF0;
    color: #48494A;
}

.gameday-tab.active {
    color: #48494A;
    border-bottom-color: #FFB81C;
}

/* Tab Content */
.gameday-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.gameday-panel {
    display: none;
}

.gameday-panel.active {
    display: block;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.overview-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #48494A;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FFB81C;
}

.moments-list,
.info-list,
.social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Chat Container */
.chat-container {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: calc(100vh - 400px);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #1E1F21;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #48494A;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
}

.status-indicator.connected {
    background: #28a745;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.welcome-message p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #041E42;
    margin-bottom: 8px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-username {
    font-weight: 600;
    color: #041E42;
    font-size: 14px;
}

.chat-timestamp {
    font-size: 12px;
    color: #999;
}

.chat-text {
    color: #333;
    line-height: 1.5;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #FFB81C;
}

.chat-send-btn {
    width: var(--button-height-lg);
    height: var(--button-height-lg);
    min-height: var(--button-height-lg);
    border-radius: var(--radius-full);
    background: var(--brand-gold-900);
    border: none;
    color: var(--neutral-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    transition: all 0.3s ease;
}

.chat-send-btn:hover:not(:disabled) {
    background: #e5a519;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #ddd;
    cursor: not-allowed;
}

/* Polls Container */
.polls-container {
    max-width: 800px;
    margin: 0 auto;
}

.polls-title {
    font-size: 24px;
    font-weight: 600;
    color: #041E42;
    margin-bottom: 24px;
    text-align: center;
}

.polls-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Container */
.stats-container {
    max-width: 900px;
    margin: 0 auto;
}

.stats-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #041E42;
    margin-bottom: 24px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #041E42;
}

/* Tickets Container */
.tickets-container {
    max-width: 800px;
    margin: 0 auto;
}

.tickets-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #041E42;
    margin-bottom: 24px;
    text-align: center;
}

.tickets-info {
    display: grid;
    gap: 24px;
}

.ticket-cta,
.venue-info {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.ticket-cta h4,
.venue-info h4 {
    font-size: 22px;
    font-weight: 600;
    color: #041E42;
    margin-bottom: 12px;
}

.ticket-cta p {
    color: #666;
    margin-bottom: 24px;
}

.btn-tickets {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gold-900);
    color: var(--brand-navy-900);
    padding: 0 var(--button-padding-x-lg);
    min-height: var(--button-height-lg);
    border-radius: var(--button-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-tickets:hover {
    background: var(--brand-gold-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.affiliate-disclosure {
    margin-top: 16px;
    color: #999;
}

.venue-info p {
    color: #666;
    margin-bottom: 12px;
}

.venue-link {
    display: inline-block;
    color: #041E42;
    text-decoration: underline;
    margin-top: 8px;
}

.venue-link:hover {
    color: #FFB81C;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFB81C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-matchup {
        flex-direction: column;
        gap: 12px;
    }

    .team-logo {
        width: 60px;
        height: 60px;
    }

    .team-name {
        font-size: 16px;
    }

    .live-score {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .score-team {
        width: 100%;
        justify-content: space-between;
    }

    .score-divider {
        display: none;
    }

    .score-period {
        padding: 0;
        width: 100%;
    }

    .gameday-tabs {
        justify-content: flex-start;
    }

    .gameday-tab {
        min-width: 100px;
        padding: 12px 16px;
        font-size: 14px;
    }

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

    .chat-container {
        height: 500px;
    }

    .tickets-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 16px 0;
    }

    .scoreboard-container {
        padding: 0 12px;
    }

    .gameday-content {
        padding: 16px 12px;
    }

    .overview-card,
    .ticket-cta,
    .venue-info {
        padding: 20px 16px;
    }
}
