/* Games Index Page Styles */
:root {
    --games-primary: #667eea;
    --games-secondary: #764ba2;
    --games-accent: #f093fb;
    --games-success: #2ecc71;
    --games-warning: #f39c12;
    --games-dark: #2c3e50;
    --games-light: #ecf0f1;
    --sa-green: #007a4d;
    --sa-gold: #ffb612;
    --sa-black: #000000;
    --sa-blue: #002395;
}

body {
    background: linear-gradient(135deg, var(--games-primary) 0%, var(--games-secondary) 100%);
    min-height: 100vh;
}

/* Games Hero Section */
.games-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Featured Game Section */
.featured-game {
    padding: 80px 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--games-accent), var(--games-warning));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.featured-info h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.featured-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.game-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--games-success), #27ae60);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--games-success), #27ae60);
}

.cta-btn.secondary {
    background: linear-gradient(135deg, var(--games-accent), var(--games-primary));
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
}

.cta-btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

/* Featured Visual */
.featured-visual {
    position: relative;
}

.game-preview {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
}

.icon:nth-child(1) { top: 20%; left: 10%; }
.icon:nth-child(2) { top: 30%; right: 15%; }
.icon:nth-child(3) { top: 60%; left: 20%; }
.icon:nth-child(4) { top: 70%; right: 10%; }
.icon:nth-child(5) { top: 40%; left: 50%; }

.game-mockup {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(-5deg);
}

.mockup-screen {
    background: white;
    border-radius: 15px;
    padding: 20px;
    min-height: 200px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.mockup-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--games-primary);
    margin-bottom: 20px;
    text-align: center;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-stat {
    background: linear-gradient(135deg, var(--games-primary), var(--games-secondary));
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

/* Coming Soon Section */
.coming-soon {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.game-card.coming {
    opacity: 0.7;
    cursor: not-allowed;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.game-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.game-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.coming-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--games-warning), #e67e22);
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.benefit h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .cta-btn {
    margin: 0;
    min-width: 200px;
}

/* South African Theme Elements */
.sa-theme {
    background: linear-gradient(135deg, var(--sa-green), var(--sa-gold), var(--sa-blue));
}

.sa-accent {
    color: var(--sa-green);
    text-decoration: none;
}

.sa-accent:hover {
    color: var(--sa-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .featured-visual {
        order: -1;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .featured-info h2 {
        font-size: 2rem;
    }
    
    .featured-info p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .game-preview {
        height: 300px;
    }
    
    .floating-icons .icon {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .benefit,
    .game-card {
        padding: 25px 20px;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .game-preview {
        height: 250px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.game-card.coming {
    animation: pulse 2s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Focus Styles for Accessibility */
.cta-btn:focus,
.game-card:focus,
.benefit:focus {
    outline: 3px solid var(--games-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .games-hero,
    .cta-section {
        display: none;
    }
    
    .featured-content,
    .games-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
}