/* ============================================
   WrongYou Games - Platform Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #0f0f0f;
    --bg-darker: #050505;
    --primary: #00ff00;
    --secondary: #00ffff;
    --accent: #ff00ff;
    --warning: #ffff00;
    --danger: #ff0000;
    --text-light: #ffffff;
    --text-dim: #cccccc;
    --border-color: #333333;
    
    --font-primary: 'Press Start 2P', monospace;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Starfield Background */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AwMDAwMDAQAkBgMBvR7jugAAAABJRU5ErkJggg==') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AwMDAwMDAQAkBgMBvR7jugAAAABJRU5ErkJggg==') repeat;
    animation: animateStars 100s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2P4//+/AwMDAwMDAQAkBgMBvR7jugAAAABJRU5ErkJggg==') repeat;
    animation: animateStars 150s linear infinite;
    opacity: 0.3;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Header */
.header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
}

.logo-container {
    margin-bottom: var(--spacing-sm);
}

.title {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 30px var(--primary);
}

.title .glitch {
    position: relative;
    display: inline-block;
    color: var(--primary);
    animation: glitch 3s infinite;
}

.title .subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: var(--spacing-xs);
    letter-spacing: 0.3em;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Glitch Animation */
@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

/* Hero Section */
.hero {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.hero .nes-container {
    background: rgba(0, 255, 0, 0.05);
    border-color: var(--primary);
}

.hero p {
    font-size: 0.8rem;
    line-height: 2;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

.section-title i {
    vertical-align: middle;
    margin-right: var(--spacing-xs);
}

/* Games Section */
.games-section {
    margin-bottom: var(--spacing-xl);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.game-card {
    background: rgba(15, 15, 15, 0.8);
    border: 4px solid var(--border-color);
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-status {
    position: absolute;
    top: -12px;
    right: var(--spacing-sm);
    padding: 4px 12px;
    font-size: 0.6rem;
    border-radius: 4px;
    font-weight: bold;
}

.game-status.available {
    background: var(--primary);
    color: var(--bg-dark);
    animation: pulse 2s infinite;
}

.game-status.coming-soon {
    background: var(--warning);
    color: var(--bg-dark);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-card h3 {
    font-size: 1.2rem;
    margin: var(--spacing-sm) 0;
    color: var(--primary);
}

.game-description {
    font-size: 0.7rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dim);
    min-height: 80px;
}

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

.game-btn {
    width: 100%;
    font-size: 0.8rem;
    padding: var(--spacing-sm);
}

/* Features Section */
.features-section {
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--secondary);
}

.feature i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.feature p {
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--text-dim);
}

/* CTA Section */
.cta-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.cta-section .nes-container {
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--accent);
}

.cta-section p {
    font-size: 0.8rem;
    line-height: 2;
    margin-bottom: var(--spacing-md);
}

.cta-btn {
    font-size: 1rem;
    padding: var(--spacing-md) var(--spacing-lg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 4px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.footer-content {
    margin-bottom: var(--spacing-md);
}

.footer-content p {
    font-size: 0.7rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.footer-note {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .title .subtitle {
        font-size: 0.9rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }

    .title {
        font-size: 1.5rem;
    }

    .header {
        padding: var(--spacing-md) 0;
    }
}

