/* ===============================================
   CSS Variables
   =============================================== */
:root {
    /* Colors */
    --primary-color: #d4af37;
    --primary-hover: #b8941f;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #9e9e9e;
    --bg-dark: #0f0f1e;
    --bg-card: #1e1e3f;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --border-color: rgba(212, 175, 55, 0.2);
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
}

/* ===============================================
   Reset & Base Styles
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent double scrollbars */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Force single scrollbar */
html {
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Remove any nested scrollbars */
.container,
.carousel-wrapper,
.carousel-container,
.casino-grid,
.nav-menu {
    overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-base);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ===============================================
   Container
   =============================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ===============================================
   Header & Navigation
   =============================================== */
.header {
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.logo-text {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.dropdown-icon {
    transition: transform var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    padding-left: var(--spacing-md);
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
        gap: 0;
        overflow-y: auto;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: var(--spacing-md);
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        color: var(--text-secondary) !important;
        transition: all var(--transition-fast);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--accent-color) !important;
        color: var(--primary-color) !important;
        padding-left: var(--spacing-lg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--accent-color);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        padding: 0;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .nav-item.has-dropdown .dropdown-icon {
        transition: transform var(--transition-fast);
    }
    
    .nav-item.has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        color: var(--text-secondary) !important;
        padding: var(--spacing-sm) var(--spacing-lg);
        transition: all var(--transition-fast);
    }
    
    .dropdown-menu a:hover {
        background: var(--bg-card) !important;
        color: var(--primary-color) !important;
        padding-left: calc(var(--spacing-lg) + var(--spacing-sm));
    }
}

/* ===============================================
   Modals
   =============================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-glow);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.modal-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

/* ===============================================
   Buttons
   =============================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* ===============================================
   Hero Section
   =============================================== */
.hero {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: var(--spacing-xxl) 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* ===============================================
   Sections
   =============================================== */
.carousel-section,
.features-section,
.casinos-page {
    padding: var(--spacing-xxl) 0;
}

.section-title,
.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* ===============================================
   Top Picks Scrollable Grid
   =============================================== */
.top-picks-section {
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--border-color);
}

.scrollable-grid {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--spacing-md) 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border-color);
}

.scrollable-grid::-webkit-scrollbar {
    height: 8px;
}

.scrollable-grid::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.scrollable-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scrollable-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.scrollable-grid .casino-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

/* Desktop: Make cards narrower in scrollable grid */
@media (min-width: 769px) {
    .scrollable-grid .casino-card {
        min-width: 250px;
        max-width: 250px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    /* Mobile carousel cards */
    .carousel-track .casino-card {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        height: auto; /* Allow natural height on mobile */
        padding: var(--spacing-md);
    }
    
    .carousel-track .casino-logo {
        height: auto;
        max-height: 50px;
        background: transparent;
        padding: 0;
    }
    
    .carousel-track .casino-name {
        font-size: 1.1rem;
    }
    
    .carousel-track .casino-bonus {
        font-size: 0.8rem;
        padding: var(--spacing-xs);
    }
    
    .carousel-track .casino-actions .btn {
        font-size: 0.8rem;
        padding: var(--spacing-xs);
    }
}

/* ===============================================
   Casino Cards
   =============================================== */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Carousel specific card styles */
.carousel-track .casino-card {
    min-width: 320px;
    max-width: 320px;
    width: 320px;
    height: auto; /* Allow natural height */
    flex-shrink: 0;
    margin-right: var(--spacing-md);
}

.casino-card.top-rated {
    position: relative;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.top-badge {
    position: absolute;
    top: -8px;
    right: var(--spacing-md);
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.ranking-number {
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.casino-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.casino-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    padding: var(--spacing-sm);
}

/* Carousel actions specific styling */
.carousel-track .casino-actions {
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.carousel-track .casino-actions .btn {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.details-btn {
    font-size: 0.85rem;
    padding: var(--spacing-sm) var(--spacing-md);
}

.casino-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

/* Carousel stats specific styling */
.carousel-track .casino-stats {
    display: flex; /* Show stats in carousel */
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.stat-value.win-rate {
    color: var(--success);
    font-weight: 700;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.casino-logo {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-sm);
    background: transparent;
    padding: 0;
}

/* Carousel logo specific styling */
.carousel-track .casino-logo {
    height: auto;
    max-height: 60px;
    margin-bottom: var(--spacing-sm);
    background: transparent;
    padding: 0;
}

.casino-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

/* Carousel name specific styling */
.carousel-track .casino-name {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--primary-color);
}

.casino-bonus {
    background: var(--accent-color);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Carousel bonus specific styling */
.carousel-track .casino-bonus {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.casino-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.casino-perks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.perk-badge {
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.casino-cta {
    width: 100%;
}

/* ===============================================
   Features Grid
   =============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.feature-card p {
    color: var(--text-secondary);
}

/* ===============================================
   Casinos Page - Filters
   =============================================== */
.filters-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.search-box {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#searchInput {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) * 3);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.category-chip {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rating-select {
    width: 100%;
    max-width: 300px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.results-info {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.results-info strong {
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    color: var(--text-secondary);
}

.no-results svg {
    color: var(--text-muted);
    margin: 0 auto var(--spacing-lg);
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background: var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

.disclaimer {
    font-size: 0.9rem;
    font-style: italic;
}

/* ===============================================
   Lazy Loading
   =============================================== */
img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[data-src].loaded {
    opacity: 1;
}

/* ===============================================
   Accessibility
   =============================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===============================================
   Casino Sections
   =============================================== */
.casino-section {
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--border-color);
}

.casino-section:last-of-type {
    border-bottom: none;
}

/* ===============================================
   Responsive Design
   =============================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .casino-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .casino-card {
        min-width: auto;
        max-width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .ranking-number {
        align-self: flex-start;
    }
    
    .casino-actions {
        flex-direction: column;
    }
    
    .casino-actions .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .filters-section {
        padding: var(--spacing-md);
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .casino-section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .casino-card {
        min-width: auto;
        padding: var(--spacing-md);
    }
    
    .casino-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .casino-actions {
        gap: var(--spacing-xs);
    }
    
    .casino-stats {
        font-size: 0.8rem;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ===============================================
   Print Styles
   =============================================== */
@media print {
    .header,
    .footer,
    .modal,
    .carousel-btn,
    .carousel-dots,
    .filters-section,
    .nav-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .casino-card {
        break-inside: avoid;
    }
}

/* ===============================================
   Fix Double Scrollbar Issue
   =============================================== */
/* Force single scrollbar - override any conflicting styles */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure no nested elements create scrollbars */
* {
    max-width: 100% !important;
}

.container,
.carousel-wrapper,
.carousel-container,
.casino-grid,
.nav-menu,
.dropdown-menu {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

