/**
 * SPORTS LOUNGE STYLES
 * Premium social hub with neon sports bar aesthetic
 */

/* Leaderboard Live Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

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

/* ============================================
   REAL-TIME CHAT STYLES
   ============================================ */

.chat-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.chat-connection-status.connected {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.chat-connection-status.connected::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s infinite;
}

.chat-connection-status.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.chat-connection-status.fallback {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.chat-connection-status.disconnected::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.chat-message {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
    animation: slideInMessage 0.3s ease;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.02);
}

.chat-message.system-message {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
}

.chat-message.deleted {
    opacity: 0.5;
}

.message-avatar {
    font-size: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.message-text {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-message:hover .message-actions {
    opacity: 1;
}

.msg-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.msg-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.message-reactions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.reaction {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#typing-indicator {
    display: none;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 8px 16px;
    animation: fadeIn 0.3s ease;
}

.chat-error-toast {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MOBILE SIDEBAR TOGGLE
   ============================================ */

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
}

.mobile-sidebar-toggle.active {
    transform: rotate(90deg);
    background: #ef4444;
}

@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lounge-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-card);
        z-index: 999;
        padding: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .lounge-column.open {
        right: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.sports-lounge-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.6s ease;
    position: relative;
    z-index: 1;
}

/* Ensure all interactive elements are clickable */
.sports-lounge-container button,
.sports-lounge-container a,
.sports-lounge-container input,
.sports-lounge-container .lounge-tab {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HERO HEADER
   ============================================ */

.lounge-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.lounge-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lounge-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    50% { transform: translateX(50%) translateY(50%) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -1px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-text h1 i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 24px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.3);
}

.stat-badge i {
    font-size: 24px;
    color: white;
}

.stat-badge span {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.stat-badge small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.action-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease;
    animation-fill-mode: both;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: #6366f1;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.action-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.action-info {
    flex: 1;
}

.action-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.action-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.action-card > i {
    font-size: 24px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.action-card:hover > i {
    color: #6366f1;
    transform: translateX(4px);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.lounge-tabs {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    position: relative;
    z-index: 10; /* Ensure tabs are above other content */
}

.lounge-tab {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
}

.lounge-tab i {
    font-size: 20px;
    pointer-events: none; /* Let clicks pass through to button */
}

.lounge-tab span {
    pointer-events: none; /* Let clicks pass through to button */
}

.lounge-tab:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.lounge-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MAIN GRID LAYOUT
   ============================================ */

.lounge-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 24px;
}

.lounge-grid.two-column {
    grid-template-columns: 2fr 1fr;
}

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

/* ============================================
   LOUNGE CARDS
   ============================================ */

.lounge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lounge-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: #6366f1;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */

.pulse-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.activity-item.win {
    border-left-color: #10b981;
}

.activity-item.challenge {
    border-left-color: #f59e0b;
}

.activity-item.trivia {
    border-left-color: #6366f1;
}

.activity-item.tournament {
    border-left-color: #ec4899;
}

.activity-avatar {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.activity-content strong {
    color: #6366f1;
    font-weight: 600;
}

.activity-time {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.activity-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.activity-action {
    background: #6366f1;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-action:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* ============================================
   CHAT
   ============================================ */

.chat-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-categories::-webkit-scrollbar {
    display: none;
}

.chat-category-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-category-btn:hover {
    background: var(--bg-tertiary);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.chat-category-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.open-moderation-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.open-moderation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

.open-moderation-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: #6366f1;
}

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

.chat-input-container {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

#chat-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   FEATURED TOURNAMENT
   ============================================ */

.featured-tournament {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.tournament-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.tournament-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tournament-content p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.tournament-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tournament-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.btn-tournament-join {
    background: white;
    color: #f59e0b;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-tournament-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CHALLENGE BOARD
   ============================================ */

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    border-color: #6366f1;
    transform: translateX(4px);
}

.challenge-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.challenge-info {
    flex: 1;
}

.challenge-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.challenge-reward {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
}

/* ============================================
   LEADERBOARD
   ============================================ */

.btn-text {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px solid #fbbf24;
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.1));
    border: 2px solid #94a3b8;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(180, 83, 9, 0.1));
    border: 2px solid #cd7f32;
}

.rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.player-avatar {
    font-size: 24px;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.player-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-score {
    font-size: 16px;
    font-weight: 700;
    color: #6366f1;
}

/* ============================================
   USER PROFILE CARD
   ============================================ */

.profile-header {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.profile-avatar {
    font-size: 64px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.profile-status {
    position: absolute;
    bottom: 8px;
    right: calc(50% - 50px + 8px);
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.profile-status.online {
    animation: pulseGlow 2s infinite;
}

.profile-name {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.profile-title {
    text-align: center;
    font-size: 14px;
    color: #fbbf24;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.profile-stat {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.profile-stat .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #6366f1;
    display: block;
    margin-bottom: 4px;
}

.profile-stat .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.btn-profile {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ============================================
   MINI GAMES
   ============================================ */

.minigames-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.minigame-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minigame-btn:hover {
    background: var(--bg-tertiary);
    border-color: #6366f1;
    transform: translateY(-4px);
}

.game-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.minigame-btn span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   ACHIEVEMENTS
   ============================================ */

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: var(--bg-tertiary);
}

.achievement-item.new {
    border-left-color: #fbbf24;
    animation: shimmerAchievement 2s infinite;
}

@keyframes shimmerAchievement {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 16px 4px rgba(251, 191, 36, 0.3); }
}

.achievement-item.locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
}

.achievement-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.achievement-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.achievement-progress {
    font-size: 11px;
    color: #6366f1;
    font-weight: 600;
    margin-top: 4px;
}


/* ============================================
   GIFTING SYSTEM
   ============================================ */

.gift-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.gift-menu-content {
    background: #1f2937;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.gift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gift-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.gift-header button {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.gift-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gift-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    transform: translateY(-4px);
}

.gift-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.gift-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.gift-cost {
    font-size: 12px;
    color: #fbbf24;
    font-weight: 700;
}

.gift-btn {
    background: rgba(236, 72, 153, 0.1) !important;
    color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.3) !important;
}

.gift-btn:hover {
    background: rgba(236, 72, 153, 0.2) !important;
}

/* ============================================
   AVATARS & IMAGES
   ============================================ */

.avatar-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.1);
}

.shop-item:hover .avatar-preview {
    transform: scale(1.1) translateY(-4px);
}


@media (max-width: 1200px) {
    .lounge-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .sports-lounge-container {
        padding: 16px;
    }

    .lounge-hero {
        padding: 32px 24px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-around;
    }

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

    .right-column {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .chat-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hype-meter-container {
        width: 100%;
        justify-content: space-between;
    }

    .hype-bar {
        flex: 1;
        min-width: 80px;
    }
}

/* ============================================
   TRENDING TOPICS WORD CLOUD
   ============================================ */

.trending-topics-card {
    min-height: 150px;
}

.word-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    min-height: 100px;
}

.cloud-word {
    display: inline-block;
    color: #6366f1;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: default;
    padding: 2px 4px;
}

.cloud-word:hover {
    color: #8b5cf6;
    transform: scale(1.1);
}

.cloud-empty {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* ============================================
   HYPE METER STYLES
   ============================================ */

.hype-meter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hype-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.hype-bar {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hype-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.hype-percentage {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
}

/* Hype States */
.hype-meter-container.high .hype-fill {
    background: linear-gradient(90deg, #ec4899, #f59e0b);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

.hype-meter-container.extreme {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    animation: shake 0.5s infinite;
}

.hype-meter-container.extreme .hype-fill {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

/* ============================================
   COMMUNITY MOOD GAUGE
   ============================================ */

.community-mood-gauge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-icon {
    font-size: 14px;
}

.mood-text {
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .lounge-hero {
        padding: 24px 16px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        gap: 8px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .stat-badge {
        min-width: 80px;
        padding: 12px 16px;
    }

    .stat-badge span {
        font-size: 20px;
    }

    .action-card {
        padding: 16px;
    }

    .action-icon {
        font-size: 36px;
    }

    .lounge-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .lounge-grid.two-column {
        grid-template-columns: 1fr;
    }

    .community-mood-gauge, .hype-meter-container {
        font-size: 10px;
        padding: 4px 8px;
    }

    .hype-bar {
        width: 50px;
    }

    .word-cloud-container {
        padding: 8px;
    }

    .cloud-word {
        font-size: 10px !important;
    }
}

/* ============================================
   LIVE ODDS SIDEBAR
   ============================================ */

.live-odds-card {
    max-height: 600px;
    overflow-y: auto;
}

.live-odds-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.odds-loading, .odds-empty-state, .odds-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.odds-retry-btn {
    margin-top: 12px;
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.odds-retry-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.odds-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.odds-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.odds-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: var(--bg-tertiary);
    transform: translateX(2px);
}

.odds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.odds-sport-tag {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.odds-time {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.odds-matchup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.odds-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.odds-team-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.odds-value {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.odds-value.favorite {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.odds-value.underdog {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.odds-divider {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.odds-details {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.odds-detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.odds-detail-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.odds-bet-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.odds-bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Bet Modal */
.odds-bet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.odds-bet-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.odds-bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.odds-bet-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.odds-bet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.odds-bet-content {
    padding: 20px;
}

.odds-bet-matchup {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.odds-bet-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.odds-bet-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.odds-bet-option:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: var(--bg-tertiary);
}

.odds-bet-option.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.bet-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.bet-odds {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
}

.odds-bet-amount {
    margin-bottom: 20px;
}

.odds-bet-amount label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.odds-bet-amount input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.odds-bet-amount input:focus {
    outline: none;
    border-color: #6366f1;
}

.odds-bet-confirm {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.odds-bet-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ============================================
   CHAT ROOM SPECIFIC
   ============================================ */

/* ============================================
   CHAT SUMMARY & CATCH UP
   ============================================ */

.catch-up-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideInRight 0.3s ease, pulse-glow-orange 2s infinite;
    margin-right: 10px;
}

@keyframes pulse-glow-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 10px 4px rgba(245, 158, 11, 0.2); }
}

.chat-summary-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    margin: 10px 16px;
    padding: 16px;
    animation: slideInDown 0.4s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-badge {
    background: #6366f1;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.summary-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.summary-body p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.summary-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-meta span {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.summary-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.chat-container-full {
    height: 700px;
    display: flex;
    flex-direction: column;
}

.online-users {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   GAME ROOM SPECIFIC
   ============================================ */

.game-room-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.featured-game {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.game-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.game-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.game-content p {
    margin-bottom: 24px;
    font-size: 16px;
    opacity: 0.95;
}

.game-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.game-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

.btn-game-launch {
    background: white;
    color: #f59e0b !important;
    border: none;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-game-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    color: #f59e0b !important;
    text-decoration: none !important;
}

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

.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    border-color: #6366f1;
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.game-card.tournament-card {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), transparent);
}

.game-badge-small {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    animation: pulseGlow 2s infinite;
}

.game-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.game-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.game-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-game-play {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white !important;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
}

.btn-game-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-game-play.btn-tournament {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* ============================================
   LEADERBOARD TAB SPECIFIC
   ============================================ */

.leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.leaderboard-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
}

.filter-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 40px 20px;
}

.podium-place {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.podium-place:hover {
    transform: translateY(-8px);
}

.podium-1 {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), transparent);
    min-height: 320px;
}

.podium-2 {
    border-color: #94a3b8;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), transparent);
    min-height: 280px;
}

.podium-3 {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), transparent);
    min-height: 240px;
}

.podium-crown {
    font-size: 48px;
    margin-bottom: -20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.podium-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.podium-avatar {
    font-size: 72px;
    margin-bottom: 16px;
}

.podium-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.podium-score {
    font-size: 24px;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 8px;
}

.podium-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.leaderboard-full {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 200px;
}

.leaderboard-item.you {
    border: 2px solid #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

/* ============================================
   TROPHY ROOM SPECIFIC
   ============================================ */

.trophy-room-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.achievements-progress {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.achievement-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-value {
    font-size: 28px;
    font-weight: 800;
    color: #6366f1;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar-large {
    width: 100%;
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0 12px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.achievement-card.unlocked {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
}

.achievement-card.new {
    animation: shimmerAchievement 2s infinite;
}

.achievement-card.in-progress {
    border-color: #6366f1;
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.achievement-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fbbf24;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.achievement-icon-big {
    font-size: 72px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.achievement-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.achievement-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.achievement-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0 8px;
}

.achievement-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.achievement-reward {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
}

.daily-challenges-full {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.challenges-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.challenge-item.completed {
    opacity: 0.6;
}

.challenge-item.completed .challenge-icon {
    filter: grayscale(1);
}

/* ============================================
   TROPHY CASE SHOWCASE STYLES
   ============================================ */

.trophy-case-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px;
}

.trophy-case-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(99, 102, 241, 0.15));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.trophy-case-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.trophy-case-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.case-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

/* Championship Rings */
.rings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.ring-display {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ring-display:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

.ring-display.featured-ring {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), transparent);
}

.ring-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

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

.ring-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 20px auto;
    filter: drop-shadow(0 8px 24px rgba(251, 191, 36, 0.3));
    transition: all 0.3s ease;
}

.ring-display:hover .ring-image {
    transform: scale(1.1) rotateY(10deg);
}

.ring-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ring-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ring-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ring-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    margin-top: 8px;
}

.ring-badge.legendary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.ring-badge.epic {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ring-badge.locked-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* Locked Rings */
.locked-ring {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.locked-ring:hover {
    opacity: 0.7;
    filter: grayscale(0.6);
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.lock-overlay i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0.5;
}

.lock-overlay p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ring-silhouette {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
}

.progress-mini {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.ring-progress {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Trophies Showcase */
.trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 24px;
}

.trophy-display {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trophy-display:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.trophy-display.grand-trophy {
    grid-column: span 2;
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(99, 102, 241, 0.1));
}

.trophy-spotlight {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.2) 0%, transparent 60%);
    animation: pulseSpotlight 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseSpotlight {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.trophy-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 20px auto;
    filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.3));
    transition: all 0.3s ease;
}

.trophy-display:hover .trophy-image {
    transform: scale(1.15) rotateZ(5deg);
    filter: drop-shadow(0 12px 32px rgba(99, 102, 241, 0.5));
}

.trophy-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.trophy-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.trophy-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.trophy-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Locked Trophies */
.locked-trophy {
    opacity: 0.4;
    filter: grayscale(1);
}

.locked-trophy:hover {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.trophy-silhouette {
    width: 140px;
    height: 140px;
    margin: 20px auto;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
}

/* Special Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
}

.event-award {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.event-award:hover {
    transform: translateX(8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.award-icon {
    font-size: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.award-content {
    flex: 1;
}

.award-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.award-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.award-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.award-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.award-badge.seasonal {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.award-badge.special {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .trophy-case-header h1 {
        font-size: 32px;
    }
    
    .case-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .trophy-display.grand-trophy {
        grid-column: span 1;
    }
    
    .rings-grid,
    .trophies-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TAB BADGES
   ============================================ */

.tab-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
}

.tab-badge.live {
    background: #ef4444;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ============================================
   LIVE SCORES WIDGET
   ============================================ */

.live-scores-widget {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
    margin-bottom: 24px;
}

.score-leagues {
    display: flex;
    gap: 8px;
}

.score-leagues span {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.score-leagues span.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.score-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    animation: slideInRight 0.3s ease;
}

.score-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.score-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.score-status.live {
    color: #ef4444;
}

.score-status.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.score-teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.team-name-abbr {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.team-score-val {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
}

.score-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 6px;
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

