/* ===================================
   Game Details Page Styles
   =================================== */

.game-details-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Breadcrumbs / Navigation */
.navigation-links {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--dark-blue);
}

.back-link i {
    margin-right: 5px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===================================
   Game Header Card
   =================================== */
.game-header-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.game-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.league-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-blue);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.game-countdown {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.game-status-badge.final {
    background: #757575;
}

.game-status-badge.live {
    background: #e53935;
    gap: 6px;
}

.game-status-badge.started {
    background: #ff9800;
}

.game-status-badge .live-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.matchup-score {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 6px;
}

/* Matchup Layout */
.game-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 10px 0 20px;
}

.matchup-team {
    flex: 1;
    text-align: center;
}

.matchup-team .team-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.matchup-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.vs-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-secondary);
}

.game-time {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Header Actions */
.game-header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-button:hover {
    background: var(--border-gray);
}

.betmgm-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f5a623 0%, #e09617 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
}

.betmgm-primary-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

/* ===================================
   Tab Navigation
   =================================== */
.game-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.game-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.game-tab:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.game-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

.game-tab i {
    font-size: 18px;
}

.game-tab-content {
    /* default display controlled inline */
}

/* ===================================
   Best Odds Section
   =================================== */
.best-odds-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.best-odds-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.best-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.best-odds-card {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 18px;
}

.best-odds-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-blue);
    text-align: center;
}

.best-odds-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.best-odd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.best-odd-row:last-child {
    border-bottom: none;
}

.best-odd-row .team {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.odds-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.odds-value {
    font-weight: 600;
    font-size: 15px;
}

.odds-value.positive {
    color: #388e3c;
}

.odds-value.negative {
    color: #d32f2f;
}

.provider {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===================================
   Odds Comparison Table
   =================================== */
.odds-comparison-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.odds-comparison-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.odds-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.odds-comparison-table thead th {
    background: var(--primary-blue);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.odds-comparison-table thead th:first-child {
    border-radius: 0;
}

.odds-comparison-table thead th:last-child {
    border-radius: 0;
    text-align: center;
}

.odds-comparison-table tbody tr {
    border-bottom: 1px solid var(--border-gray);
    transition: background 0.15s;
}

.odds-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.odds-comparison-table tbody tr:hover {
    background: rgba(64, 81, 181, 0.03);
}

/* BetMGM highlighted row */
.odds-comparison-table tbody tr.betmgm-row {
    background: rgba(245, 166, 35, 0.06);
}

.odds-comparison-table tbody tr.betmgm-row:hover {
    background: rgba(245, 166, 35, 0.1);
}

/* Table cells */
.sportsbook-name {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
}

.betmgm-row .sportsbook-name {
    color: #e09617;
}

.star-icon {
    display: none;
}

.odds-cell {
    padding: 10px 16px;
    vertical-align: middle;
}

.odds-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
}

.odds-team-short {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    font-weight: 500;
}

.odds-val {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
}

.odds-val.positive {
    color: #388e3c;
}

.odds-val.negative {
    color: #d32f2f;
}

.no-odds {
    color: var(--text-secondary);
    font-size: 14px;
}

.action-cell {
    padding: 10px 16px;
    text-align: center;
    vertical-align: middle;
}

.bet-now-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5a623 0%, #e09617 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.bet-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(245, 166, 35, 0.3);
}

/* ===================================
   Line Movement Detail (tab content)
   =================================== */
.line-movement-detail {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.line-movement-detail h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.line-move-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.line-move-loading i {
    font-size: 24px;
    margin-right: 8px;
}

/* ===================================
   Responsive: Tablet (768px)
   =================================== */
@media (max-width: 768px) {
    .game-details-container {
        padding: 0 12px;
        margin: 12px auto;
    }

    /* Game header */
    .game-header-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .game-header-top {
        margin-bottom: 16px;
    }

    .game-matchup {
        flex-direction: column;
        gap: 12px;
        padding: 0 0 16px;
    }

    .matchup-team .team-name {
        font-size: 22px;
    }

    .matchup-vs {
        flex-direction: row;
        gap: 10px;
    }

    .vs-text {
        font-size: 18px;
    }

    /* Header actions */
    .game-header-actions {
        flex-direction: column;
        gap: 8px;
    }

    .betmgm-primary-cta,
    .share-button {
        width: 100%;
        justify-content: center;
    }

    /* Tabs */
    .game-tab {
        padding: 12px 10px;
        font-size: 14px;
    }

    .game-tab i {
        font-size: 16px;
    }

    /* Best odds */
    .best-odds-section {
        padding: 16px;
    }

    .best-odds-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Comparison table */
    .odds-comparison-section {
        padding: 16px;
    }

    .odds-comparison-table {
        min-width: 550px;
    }

    .odds-comparison-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }

    .sportsbook-name {
        padding: 10px 12px;
        font-size: 13px;
    }

    .odds-cell {
        padding: 8px 12px;
    }

    .odds-val {
        font-size: 13px;
    }

    /* Line movement detail */
    .line-movement-detail {
        padding: 16px;
    }
}

/* ===================================
   Responsive: Mobile (480px)
   =================================== */
@media (max-width: 480px) {
    .game-details-container {
        padding: 0 8px;
        margin: 8px auto;
    }

    .game-header-card {
        padding: 16px 12px;
    }

    .game-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .matchup-team .team-name {
        font-size: 19px;
    }

    .game-matchup {
        gap: 8px;
    }

    .game-time {
        font-size: 13px;
    }

    .game-tab {
        padding: 10px 8px;
        font-size: 13px;
        gap: 4px;
    }

    .best-odds-section {
        padding: 12px;
    }

    .best-odds-card {
        padding: 14px;
    }

    .best-odds-card h3 {
        font-size: 15px;
    }

    .best-odd-row .team {
        font-size: 13px;
    }

    .odds-value {
        font-size: 14px;
    }

    .odds-comparison-section {
        padding: 12px;
    }

    .odds-comparison-table {
        min-width: 500px;
    }

    .line-movement-detail {
        padding: 12px;
    }

    .breadcrumbs {
        font-size: 12px;
    }
}
