/* ===================================
   AALIVE Casino - Main Stylesheet
   Classic Vegas Casino Theme
=================================== */

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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #4a0000 50%, #1a0a0a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Classic Vegas Gold Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER & NAVIGATION
=================================== */

header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #FFD700;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    font-size: 16px;
}

.nav-menu a:hover {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldPulse 2s infinite;
    display: inline-block;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.7);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
}

/* ===================================
   HERO SECTION
=================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 80px;
}

.hero-text h1 {
    font-size: 3.5em;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: neonGlow 3s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from { filter: drop-shadow(0 0 10px #FFD700); }
    to { filter: drop-shadow(0 0 20px #FFA500); }
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

/* ===================================
   CONTENT SECTIONS
=================================== */

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Content Block Styles (Image + Text) */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.content-block:nth-child(even) {
    background: rgba(74, 0, 0, 0.7);
}

.content-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.content-text h3 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.content-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Content Grid (Icon + Title + Text) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid-item {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.grid-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.grid-item h4 {
    color: #FFD700;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* ===================================
   FOOTER
=================================== */

footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 3px solid #FFD700;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #FFD700;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
=================================== */

/* Improved color contrast */
.content-text p {
    color: #f0f0f0; /* Better contrast than pure white */
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1); /* Improved text shadow for contrast */
}

/* Enhanced focus states */
.nav-menu a:focus,
.cta-button:focus,
button:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    background-color: rgba(255, 215, 0, 0.1);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #FFD700;
    color: #000;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Focus states for better keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

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

/* Age verification and responsible gaming */
.age-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-verification-content {
    background: linear-gradient(135deg, #1a0a0a, #4a0000);
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.age-verification-content h2 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.age-verification-content p {
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.6;
}

.age-verification-content .warning {
    color: #ff4444;
    font-weight: bold;
    font-size: 1.1em;
    margin: 20px 0;
}

.age-verification-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.age-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-btn.confirm {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.age-btn.deny {
    background: #666;
    color: #fff;
}

.age-btn:hover {
    transform: translateY(-2px);
}

.age-notice {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    font-size: 0.9em;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.age-notice .close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    cursor: pointer;
    float: right;
    padding: 0 10px;
    margin-left: 15px;
}

.responsible-gaming-warning {
    background: linear-gradient(45deg, #ff6600, #ff4400);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    margin: 40px 0;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.responsible-gaming-warning h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.responsible-gaming-warning p {
    font-size: 1em;
    margin-bottom: 10px;
}

.responsible-gaming-links {
    margin-top: 15px;
}

.responsible-gaming-links a {
    color: #ffffff;
    text-decoration: underline;
    margin: 0 10px;
}

.responsible-gaming-links a:hover {
    color: #FFD700;
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.5em;
    }
    
    /* Content blocks */
    .content-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Content grid */
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2em;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    /* Hero text */
    .hero-text h1 {
        font-size: 2em;
    }
    
    .hero-text p {
        font-size: 1.1em;
    }
    
    /* Section title */
    .section-title {
        font-size: 1.8em;
    }
    
    /* Content text */
    .content-text h3 {
        font-size: 1.5em;
    }
    
    .content-text p {
        font-size: 1em;
    }
    
    /* Grid items */
    .grid-item {
        padding: 20px;
    }
    
    .grid-item h4 {
        font-size: 1.2em;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
=================================== */

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Preload critical resources */
.hero-bg {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}