/* ===== COMBINED CONTROLS SECTION ===== */
.combined-controls {
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.controls-row {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
}

/* Language Button - Match theme button dimensions */
.language-toggle-btn {
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.1), rgba(1, 190, 110, 0.05));
    border: 1px solid rgba(1, 190, 110, 0.3);
    color: var(--white);
    padding: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 32px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    flex: none;
}

.language-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.2), rgba(1, 190, 110, 0.1));
    border-color: rgba(1, 190, 110, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 190, 110, 0.2);
}

/* Language button text states - higher specificity */
.language-toggle-btn .lang-text-compact {
    display: none !important;
}

/* Smooth hover effect for language toggle */
.language-toggle-btn:hover {
    transform: scale(1.05) !important;
    opacity: 0.9 !important;
}

/* Images don't need theme-specific filters since flags are naturally colorful */

/* Theme Toggle Button - Match language button dimensions */
.theme-toggle-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.1), rgba(1, 190, 110, 0.05));
    border: 1px solid rgba(1, 190, 110, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    flex: none;
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.2), rgba(1, 190, 110, 0.1));
    border-color: rgba(1, 190, 110, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 190, 110, 0.2);
}

/* Theme Icons - Ensure perfect centering */
.theme-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* SVG Icon Styles */
.theme-toggle-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Theme Icon States */
.theme-icon.sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.theme-icon.moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Dark theme shows moon, hides sun */
[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-surface), var(--dark-border));
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(0px);
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Icon for collapsed state - Show opposite theme */
.theme-switch-container::before {
    content: "☀️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 5;
}

/* Change icon based on theme - Show opposite */
[data-theme="light"] .theme-switch-container::before {
    content: "🌙";
}

/* Switch Icons for expanded state */
.theme-slider::after {
    content: "🌙";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

input:checked + .theme-slider::after {
    content: "☀️";
    left: 4px;
    right: auto;
    opacity: 1;
}

input:checked + .theme-slider {
    background: linear-gradient(135deg, var(--primary-green), #00a858);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(1, 190, 110, 0.3);
}

input:checked + .theme-slider:before {
    transform: translateX(44px);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Theme Switch Label - Completely removed */
.theme-switch-label {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* Expanded state - on sidebar hover */
.sidebar:hover .theme-switch-container {
    width: calc(50% - 6px);
    min-width: 80px;
    height: 38px;
    justify-content: flex-end;
    padding: 4px 8px 4px 4px;
    flex: 1;
}

/* Hide icon and show switch in expanded state */
.sidebar:hover .theme-switch-container::before {
    opacity: 0;
    visibility: hidden;
}

.sidebar:hover .theme-switch {
    display: inline-block;
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Enhanced hover effects */
.language-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.language-toggle-btn:hover::before {
    left: 100%;
}

/* Theme container hover effect - different pseudo-element */
.theme-switch-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.theme-switch-container:hover::after {
    left: 100%;
}

/* Expanded sidebar layout - maintain button centering */
.sidebar:hover .controls-row {
    justify-content: center;
    gap: var(--spacing-sm);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .combined-controls {
        padding: var(--spacing-sm);
    }
    
    .controls-row {
        gap: 2px;
    }
    
    .language-toggle-btn,
    .theme-switch-container {
        min-height: 32px;
        padding: var(--spacing-xs);
    }
    
    .theme-switch {
        width: 36px;
        height: 18px;
    }
    
    .theme-slider:before {
        height: 14px;
        width: 14px;
        left: 2px;
    }
    
    input:checked + .theme-slider:before {
        transform: translateX(18px);
    }
}

/* ===== LIGHT THEME SPECIFIC STYLES ===== */

/* Combined controls for light theme */
[data-theme="light"] .language-toggle-btn,
[data-theme="light"] .theme-switch-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
}

[data-theme="light"] .language-toggle-btn:hover,
[data-theme="light"] .theme-switch-container:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.9));
    border-color: rgba(1, 190, 110, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-text-compact,
[data-theme="light"] .theme-switch-label {
    color: #1A1A1A;
}

[data-theme="light"] .theme-slider {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Header fixes for light mode */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header .navbar-nav .nav-link {
    color: #1A1A1A !important;
}

[data-theme="light"] .header .navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

[data-theme="light"] .header .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sidebar fixes for light mode */
[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sidebar .nav-link {
    color: #1A1A1A;
}

[data-theme="light"] .sidebar .nav-link:hover,
[data-theme="light"] .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(1, 190, 110, 0.1), rgba(1, 190, 110, 0.05));
    color: var(--primary-green);
}

/* Hero slide text should NOT be affected - preserve original styling */
.hero-slide .hero-content h1,
.hero-slide .hero-content h2,
.hero-slide .hero-content p,
.hero-slide .hero-content .btn {
    /* Preserve hero text colors regardless of theme */
    color: inherit !important;
}

/* Page headers fixes for both themes */
[data-theme="light"] .page-header,
[data-theme="dark"] .page-header {
    background-image: url('../images/page-header.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="light"] .page-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .page-header {
    border-bottom: 1px solid rgba(1, 190, 110, 0.3);
}

[data-theme="light"] .page-header h1,
[data-theme="light"] .page-header h2,
[data-theme="light"] .page-header .page-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .page-header .breadcrumb-item a {
    color: var(--primary-green);
}

[data-theme="light"] .page-header .breadcrumb-item.active {
    color: #6C757D;
}

/* FAQ Page Light Mode Styles */
[data-theme="light"] .faq-categories-section {
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .category-tab {
    background-color: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
}

[data-theme="light"] .category-tab:hover {
    background-color: rgba(1, 190, 110, 0.1);
    border-color: var(--primary-green);
}

[data-theme="light"] .category-tab.active {
    background-color: var(--primary-green);
    color: #FFFFFF;
    border-color: var(--primary-green);
}

[data-theme="light"] .accordion-item {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .accordion-header {
    background-color: rgba(248, 249, 250, 0.9);
}

[data-theme="light"] .accordion-header:hover {
    background-color: rgba(1, 190, 110, 0.05);
}

[data-theme="light"] .accordion-header h3 {
    color: var(--primary-green) !important;
    font-weight: 600;
}

[data-theme="light"] .accordion-item.active .accordion-header {
    background-color: rgba(1, 190, 110, 0.1);
}

[data-theme="light"] .accordion-content {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .accordion-content p {
    color: #1A1A1A !important;
}

[data-theme="light"] .accordion-content ul li,
[data-theme="light"] .accordion-content ol li {
    color: #1A1A1A !important;
}

[data-theme="light"] .accordion-content a {
    color: var(--primary-green);
}

[data-theme="light"] .accordion-content a:hover {
    color: #00a858;
}

[data-theme="light"] .faq-accordion-section {
    background-color: rgba(255, 255, 255, 0.98);
}

/* FAQ Contact Section Light Mode Styles */
[data-theme="light"] .faq-contact-section {
    background-color: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .faq-contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .faq-contact-content h2 {
    color: #1A1A1A !important;
}

[data-theme="light"] .faq-contact-content p {
    color: #1A1A1A !important;
}

[data-theme="light"] .contact-option {
    background-color: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-option h3 {
    color: #1A1A1A;
}

[data-theme="light"] .contact-option p {
    color: #6C757D;
}

/* Merchandise banner fix for light mode - AGGRESSIVE OVERRIDE */
[data-theme="light"] .merch-banner {
    /* Remove any background-color that might override the background-image */
    background-color: transparent !important;
    /* Force the background image with highest priority */
    background-image: url('/images/merch-banner-bg.jpg') !important;
    /* Ensure the background image is visible and properly layered */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* Keep text white for readability on images in both themes */
    color: white !important;
}

/* Ultra-high specificity override for merch banners with inline styles */
[data-theme="light"] body .merch-banner[style*="background-image"] {
    background-color: transparent !important;
    background-image: url('/images/merch-banner-bg.jpg') !important;
}

/* Even higher specificity if needed */
[data-theme="light"] html body .merch-banner {
    background-image: url('/images/merch-banner-bg.jpg') !important;
    background-color: transparent !important;
}

/* EXCLUDE merch banner from ALL theme switching - keep same appearance in both themes */
[data-theme="light"] .merch-banner h2,
[data-theme="light"] .merch-banner p,
[data-theme="light"] .merch-banner .merch-content h2,
[data-theme="light"] .merch-banner .merch-content p {
    /* Force white text regardless of theme for readability on background images */
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .merch-banner .btn {
    /* Keep merch banner button styling consistent in both themes */
    background: #01BE6E !important;
    color: #FFFFFF !important;
    border: 2px solid #01BE6E !important;
    box-shadow: 0 4px 15px rgba(1, 190, 110, 0.4) !important;
}

[data-theme="light"] .merch-banner .btn:hover {
    /* Keep hover effect consistent */
    background: #00a858 !important;
    color: #FFFFFF !important;
    border-color: #00a858 !important;
    box-shadow: 0 8px 25px rgba(1, 190, 110, 0.6) !important;
    transform: translateY(-2px);
}

/* CRITICAL: Ensure merch banner overlay doesn't interfere with background images in light theme */
[data-theme="light"] .merch-banner::before {
    /* Reduce the overlay opacity in light theme so background images show better */
    background: linear-gradient(rgba(18, 33, 38, 0.5), rgba(18, 33, 38, 0.6)) !important;
    z-index: 1;
}

/* Ensure default gradient background remains consistent if no image */
[data-theme="light"] .merch-banner:not([style*="background-image"])::after {
    /* Keep the same gradient fallback in both themes */
    background: linear-gradient(135deg, #01BE6E 0%, #012A67 50%, #122126 100%) !important;
    z-index: 0;
}

/* Contact section improvements for light theme */
[data-theme="light"] .contact-section {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .contact-section .section-header h2 {
    color: #1A1A1A;
}

[data-theme="light"] .contact-info .info-item {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
}

[data-theme="light"] .contact-info .info-item i {
    color: var(--primary-green);
}

[data-theme="light"] .contact-form {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1A1A1A;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #6C757D;
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(1, 190, 110, 0.1);
}

/* Games calendar section for light theme */
[data-theme="light"] .games-calendar {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .games-calendar .section-header h2 {
    color: #1A1A1A;
}

/* EXCLUDE match cards from theme switching - keep dark design in both themes */
/* Match cards should maintain their dark design for consistency and readability */

/* Section headers for light theme */
[data-theme="light"] .section-header h2,
[data-theme="light"] .section-header h3 {
    color: #1A1A1A !important;
}

[data-theme="light"] .section-header p {
    color: #6C757D !important;
}

/* Navigation improvements for sidebar in light theme */
[data-theme="light"] .nav-item {
    color: #1A1A1A;
}

[data-theme="light"] .nav-item:hover {
    color: var(--primary-green);
    background: rgba(1, 190, 110, 0.1);
}

[data-theme="light"] .nav-text {
    color: inherit;
}

/* Special elements that should maintain visibility */

[data-theme="light"] .scroll-arrow {
    color: #1A1A1A;
}

[data-theme="light"] .scroll-indicator:hover .scroll-arrow {
    color: var(--primary-green);
    transform: translateY(2px);
}

[data-theme="light"] .scroll-text {
    color: #1A1A1A;
    opacity: 0.8;
}

[data-theme="light"] .scroll-indicator:hover .scroll-text {
    color: var(--primary-green);
    opacity: 1;
}

/* Sponsors tape improvements */
[data-theme="light"] .sponsors-tape {
    background: rgba(248, 249, 250, 0.95);
}

/* Loading screen for light theme */
[data-theme="light"] .loading-screen {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .loading-screen .loading-text {
    color: #1A1A1A;
}

[data-theme="light"] .loading-screen .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .loading-screen .progress-fill {
    background: var(--primary-green);
}

/* Text improvements for better readability */
[data-theme="light"] .text-light {
    color: #6C757D !important;
}

[data-theme="light"] .text-muted {
    color: #6C757D !important;
}

[data-theme="light"] .text-secondary {
    color: #6C757D !important;
}

/* Main content background */
[data-theme="light"] .main-content {
    background: rgba(255, 255, 255, 0.98);
}

/* Hero banner text preservation (keep original colors) */
.hero-content {
    /* Force hero content to maintain its original styling */
    background: inherit !important;
}

.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-content .btn {
    /* Preserve original hero text styling regardless of theme */
    color: inherit !important;
    text-shadow: inherit !important;
}

/* Ensure hero slides don't change */
.hero-slide {
    /* Preserve all hero slide styling */
    color: inherit !important;
    background: inherit !important;
}

.hero-slide * {
    /* Preserve all hero slide content styling */
    color: inherit !important;
}

/* CRITICAL: Preserve hero banner background images in light theme */
[data-theme="light"] .hero-banner {
    /* Keep the same dark background fallback but allow slide images to show */
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--cool-black) 100%) !important;
}

[data-theme="light"] .hero-slide {
    /* Ensure hero slide background images are preserved in light theme */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* Force the background image to display regardless of theme */
    background-blend-mode: normal !important;
}

[data-theme="light"] .hero-slides-container {
    /* Ensure the slides container doesn't interfere with background images */
    background: transparent !important;
}

[data-theme="light"] .hero-background,
[data-theme="light"] .hero-image-container,
[data-theme="light"] .hero-video-container {
    /* Ensure background containers maintain their styling */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure hero overlay doesn't get overridden */
[data-theme="light"] .hero-overlay {
    /* Maintain the same overlay regardless of theme for consistency */
    background: linear-gradient(
        135deg,
        rgba(18, 33, 38, 0.8) 0%,
        rgba(1, 190, 110, 0.1) 50%,
        rgba(18, 33, 38, 0.9) 100%
    ) !important;
}

/* Ensure hero content text remains readable on images */
[data-theme="light"] .hero-title {
    /* Force white text with green gradient for readability on images */
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #01BE6E 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .hero-subtitle {
    /* Force light text for readability on dark hero images */
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

[data-theme="light"] .hero-buttons .btn {
    /* Ensure hero buttons maintain their styling for visibility */
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Additional creative enhancements */
[data-theme="light"] .glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .hover-glow:hover {
    box-shadow: 0 0 20px rgba(1, 190, 110, 0.3);
}

/* Responsive text adjustments */
@media (max-width: 768px) {
    [data-theme="light"] .section-header h2 {
        color: #1A1A1A !important;
        font-size: 1.8rem;
    }
}

/* Card styling improvements for both themes */

/* Dark theme cards - white and grey gradient */
.card,
.team-card,
.news-card,
.creator-card,
.achievement-card,
.sponsor-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(169, 169, 169, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
}

.card:hover,
.team-card:hover,
.news-card:hover,
.creator-card:hover,
.achievement-card:hover,
.sponsor-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%,
        rgba(169, 169, 169, 0.15) 100%
    );
    border-color: rgba(1, 190, 110, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Light theme cards - clean white background with subtle shadows */
[data-theme="light"] .card,
[data-theme="light"] .team-card,
[data-theme="light"] .news-card,
[data-theme="light"] .creator-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .sponsor-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 249, 250, 0.9) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    color: #1A1A1A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .team-card:hover,
[data-theme="light"] .news-card:hover,
[data-theme="light"] .creator-card:hover,
[data-theme="light"] .achievement-card:hover,
[data-theme="light"] .sponsor-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 249, 250, 0.95) 100%
    );
    border-color: rgba(1, 190, 110, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card text improvements for light theme */
[data-theme="light"] .card-title,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5 {
    color: #1A1A1A !important;
}

[data-theme="light"] .card-text,
[data-theme="light"] .card p,
[data-theme="light"] .card .description {
    color: #495057 !important;
}

[data-theme="light"] .card .text-muted {
    color: #6C757D !important;
}

/* Section backgrounds for light mode */
[data-theme="light"] .section {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .section.alt-bg {
    background: rgba(248, 249, 250, 0.95);
}

/* Button improvements for light theme */
[data-theme="light"] .btn-outline-light {
    color: #1A1A1A;
    border-color: #6C757D;
}

[data-theme="light"] .btn-outline-light:hover {
    background-color: #1A1A1A;
    border-color: #1A1A1A;
    color: white;
}

/* Stats cards for light theme */
[data-theme="light"] .stats-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 249, 250, 0.8) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
}

[data-theme="light"] .stats-card .stat-number {
    color: var(--primary-green);
}

[data-theme="light"] .stats-card .stat-label {
    color: #6C757D;
}

/* Footer improvements for light theme */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(52, 58, 64, 0.9) 100%
    );
    color: white;
}

/* Keep footer dark in both themes for brand consistency */
[data-theme="light"] .footer h5,
[data-theme="light"] .footer p,
[data-theme="light"] .footer a {
    color: white !important;
}

/* Creative enhancements */

/* Glassmorphism effect for cards in light mode */
[data-theme="light"] .featured-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced hover effects for light theme */
[data-theme="light"] .interactive-element:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(1, 190, 110, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Special handling for images in light mode */
[data-theme="light"] .team-logo img,
[data-theme="light"] .sponsor-logo img {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
}

[data-theme="light"] .team-logo img:hover,
[data-theme="light"] .sponsor-logo img:hover {
    filter: brightness(1) contrast(1);
}

/* Legal pages text color fixes for light mode (exclude cookies-ar) */
[data-theme="light"] .legal-page .legal-content p,
[data-theme="light"] .legal-page .legal-intro p,
[data-theme="light"] .legal-page .legal-section p,
[data-theme="light"] .legal-page .legal-section ul li,
[data-theme="light"] .legal-page .legal-section ol li,
[data-theme="light"] .legal-page .contact-method p,
[data-theme="light"] .legal-page .contact-item span,
[data-theme="light"] .legal-page .legal-nav-link,
[data-theme="light"] .legal-page .legal-info-card p {
    color: #1A1A1A !important;
}

/* Exclude cookies-ar page from the above rule */
[data-theme="light"] body[class*="cookies-ar"] .legal-content p,
[data-theme="light"] body[class*="cookies-ar"] .legal-intro p,
[data-theme="light"] body[class*="cookies-ar"] .legal-section p,
[data-theme="light"] body[class*="cookies-ar"] .legal-section ul li,
[data-theme="light"] body[class*="cookies-ar"] .legal-section ol li {
    color: var(--sea-color) !important;
}

/* Ensure hero navigation buttons maintain original styling */
[data-theme="light"] .hero-nav {
    /* Force hero navigation to maintain original dark styling */
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
}

[data-theme="light"] .hero-nav:hover {
    background: rgba(1, 190, 110, 0.9) !important;
    transform: scale(1.1) !important;
}

[data-theme="light"] .hero-play-pause {
    /* Force hero play/pause button to maintain original dark styling */
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
}

[data-theme="light"] .hero-play-pause:hover {
    background: rgba(1, 190, 110, 0.2) !important;
    border-color: var(--primary-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(1, 190, 110, 0.3) !important;
}

/* Ensure scroll indicator container maintains original styling */
[data-theme="light"] .scroll-indicator-container {
    /* Force scroll indicator to maintain original styling */
    background: inherit !important;
    backdrop-filter: inherit !important;
    border: inherit !important;
    box-shadow: inherit !important;
}

[data-theme="light"] .scroll-indicator:hover .scroll-indicator-container {
    /* Force scroll indicator hover to maintain original styling */
    background: inherit !important;
    border-color: inherit !important;
    transform: inherit !important;
    box-shadow: inherit !important;
} 