/* ============================================
   FUTURISTIC LIVE DASHBOARD v5
   ============================================ */

:root {
    --dashboard-bg: rgba(10, 10, 15, 0.95);
    --glass-border: rgba(0, 240, 255, 0.3);
    --neon-cyan: #00f0ff;
    --neon-blue: #0066ff;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-green: #00ff88;
    --neon-red: #ff3366;
    --bg-glass: rgba(15, 15, 26, 0.8);
}

/* Dashboard Overlay */
#live-dashboard-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--dashboard-bg);
    backdrop-filter: blur(30px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

#live-dashboard-overlay.active {
    display: block;
    opacity: 1;
}

/* Dashboard Container - Real.app Style */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    animation: fade-in-up 0.6s ease-out;
}

/* Header - Real.app Style */
.dashboard-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-left {
    flex: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.dashboard-subtitle {
    color: #b8b8c8;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-red);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-dashboard-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Controls - Real.app Style */
.dashboard-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Sport Tabs - Real.app Style */
.sport-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.sport-tabs::-webkit-scrollbar {
    display: none;
}

.sport-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    border: none;
}

.sport-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sport-tab.active {
    background: rgba(34, 211, 238, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* View Tabs - Real.app Style */
.view-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.view-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.view-tab .tab-icon {
    font-size: 0.875rem;
}

.view-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.view-tab.active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Main Content Area - Real.app Style */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    align-content: start;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #94a3b8;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34, 211, 238, 0.2);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Game Card - Real.app Style */
.game-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover {
    background: rgba(15, 15, 26, 0.9);
    border-color: var(--neon-cyan);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3);
}

.game-card:hover::before {
    opacity: 1;
}

.game-status {
    font-size: 0.75rem;
    color: var(--neon-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-time {
    color: #94a3b8;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.countdown-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon-cyan);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.game-date {
    font-size: 0.7rem;
    color: #64748b;
    text-align: right;
    font-weight: 400;
}

/* Teams Container */
.teams-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    color: white;
}

.team-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.team-score.winner {
    color: var(--neon-green);
}

/* AI Prediction Bar */
.ai-prediction {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-label {
    font-size: 0.75rem;
    color: var(--neon-purple);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.prediction-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.prediction-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    position: relative;
}

.prediction-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: white;
    box-shadow: 0 0 10px white;
}

/* Stats Sidebar - Real.app Style */
.stats-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.social-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.social-icon {
    color: #1DA1F2;
    /* Twitter Blue */
}

.social-feed {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}

/* Custom Scrollbar */
.social-feed::-webkit-scrollbar {
    width: 4px;
}

.social-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.social-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.social-post {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-post:hover {
    border-color: rgba(29, 161, 242, 0.3);
    background: rgba(29, 161, 242, 0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.post-author {
    font-weight: 600;
    color: #e2e8f0;
}

.post-handle {
    color: #94a3b8;
    font-size: 0.8rem;
}

.post-content {
    color: #cbd5e1;
    line-height: 1.4;
}

.post-tags {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .stats-sidebar {
        display: none;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .view-tabs {
        gap: 0.5rem;
    }

    .view-tab {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .sport-tabs {
        gap: 0.5rem;
    }

    .sport-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.5rem;
    }

    .game-card {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .team-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.25rem;
    }

    .view-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .sport-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

/* UFC Visualization */
.ufc-fight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    /* Take up 2 columns if possible */
}

.fighters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    position: relative;
}

.fighter-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
    position: relative;
}

.fighter-image-container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.fighter-img {
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fighter-profile:hover .fighter-img {
    transform: scale(1.05);
}

.fighter-info {
    text-align: center;
    margin-top: 0.5rem;
}

.fighter-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.fighter-record {
    color: #94a3b8;
    font-size: 0.9rem;
}

.vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--neon-red);
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-style: italic;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    z-index: 10;
}

.fighter-stats-overlay {
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fighter-profile:hover .fighter-stats-overlay {
    opacity: 1;
}

.fighter-stats-overlay.left {
    left: 0;
}

.fighter-stats-overlay.right {
    right: 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #94a3b8;
}

.stat-value {
    color: var(--neon-cyan);
    font-weight: 600;
}

.tale-of-tape {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
}

.tape-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tape-label {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.tape-val {
    font-weight: 700;
    color: #e2e8f0;
    width: 30px;
    text-align: center;
}



.stat-box .value {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
}