/* Game Ratings - Module Colors: #667eea (primary) / #764ba2 (secondary) */

:root {
    --game-primary: #667eea;
    --game-secondary: #764ba2;
    --game-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card:hover {
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transition: background 0.2s ease;
}

/* Custom scroll bar for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--game-gradient);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--game-primary);
}

/* Animations */
/* @keyframes - Moved to theme files */
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-pills {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 16px !important;
        font-size: 0.9rem;
    }
}

/* ================== DARK THEME OVERRIDES ================== */
/* IMPORTANT: These styles ONLY apply when .theme-indigo-dark class is present */

/* Navigation Pills - Dark Theme */
.theme-indigo-dark .nav-pills {
    background: rgba(30, 41, 59, 0.8) !important;
}

.theme-indigo-dark .nav-link:not(.active) {
    color: var(--text-secondary, #cbd5e1) !important;
}

.theme-indigo-dark .nav-link:not(.active):hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--text-primary, #f1f5f9) !important;
}

/* Cards - Dark Theme */
.theme-indigo-dark .card {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    color: var(--text-primary, #f1f5f9) !important;
}

.theme-indigo-dark .card:hover {
    border-color: var(--primary-light, #818cf8) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.theme-indigo-dark .card-header,
.theme-indigo-dark .card-footer {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    color: var(--text-primary, #f1f5f9) !important;
}

/* Tables - Dark Theme */
.theme-indigo-dark .table {
    color: var(--text-primary, #f1f5f9) !important;
}

.theme-indigo-dark .table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.15) !important;
}

.theme-indigo-dark .table thead th {
    color: var(--text-secondary, #cbd5e1) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}

.theme-indigo-dark .table tbody td {
    border-color: rgba(51, 65, 85, 0.5) !important;
    color: var(--text-primary, #f1f5f9) !important;
}

/* Scrollbar - Dark Theme */
.theme-indigo-dark .table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8) !important;
}

.theme-indigo-dark .table-responsive::-webkit-scrollbar-thumb {
    background: var(--game-gradient) !important;
}

.theme-indigo-dark .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, #6366f1) !important;
}
