/* ===================================
   Limeade Games - Main Stylesheet
   =================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Based on logo */
    --color-bg-dark: #0f0f1a;
    --color-bg-section: #161625;
    --color-bg-card: #1e1e30;
    --color-bg-card-hover: #252540;
    --color-lime: #b9d835;
    --color-lime-dark: #6fb541;
    --color-lime-glow: rgba(185, 216, 53, 0.3);
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
    --color-text-dark: #707080;
    --color-border: #2a2a40;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--color-lime);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-lime-dark);
}

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

ul, ol {
    list-style: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-lime);
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-lime);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-section) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, var(--color-lime-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(111, 181, 65, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: var(--color-lime);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--color-lime);
    color: var(--color-bg-dark);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px var(--color-lime-glow);
}

.cta-button:hover,
.cta-button:focus {
    background: var(--color-lime-dark);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--color-lime-glow);
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    bottom: -100px;
    right: -100px;
    opacity: 0.1;
    pointer-events: none;
}

.lime-slice {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--color-lime) 0deg 30deg,
        var(--color-lime-dark) 30deg 60deg,
        var(--color-lime) 60deg 90deg,
        var(--color-lime-dark) 90deg 120deg,
        var(--color-lime) 120deg 150deg,
        var(--color-lime-dark) 150deg 180deg,
        var(--color-lime) 180deg 210deg,
        var(--color-lime-dark) 210deg 240deg,
        var(--color-lime) 240deg 270deg,
        var(--color-lime-dark) 270deg 300deg,
        var(--color-lime) 300deg 330deg,
        var(--color-lime-dark) 330deg 360deg
    );
    clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}

/* ===================================
   Games Section
   =================================== */
.games-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-section);
}

.games-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

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

.game-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--color-border);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card.featured {
    border-color: var(--color-lime);
    box-shadow: 0 0 30px var(--color-lime-glow);
}

.game-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-lime);
    color: var(--color-bg-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon .game-badge {
    background: var(--color-text-dark);
    color: var(--color-text);
}

.game-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.game-icon {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-icon-wrapper.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-icon {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-bg-card-hover) 0%, var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

.game-info {
    text-align: center;
}

.game-info h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.game-tagline {
    color: var(--color-lime);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.game-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.game-features {
    text-align: left;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
}

.game-features li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.game-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-lime);
    border-radius: 50%;
}

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

.store-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-bg-dark);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.store-button:hover,
.store-button:focus {
    background: var(--color-lime);
    color: var(--color-bg-dark);
    border-color: var(--color-lime);
}

.notify-button {
    display: inline-block;
    background: transparent;
    color: var(--color-lime);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    border: 2px solid var(--color-lime);
    transition: all var(--transition-base);
}

.notify-button:hover,
.notify-button:focus {
    background: var(--color-lime);
    color: var(--color-bg-dark);
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-dark);
}

.about-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    color: var(--color-text-muted);
    font-size: 1.15rem;
}

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

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

.value-card:hover {
    border-color: var(--color-lime);
    transform: translateY(-3px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-lime-dark) 100%);
    border-radius: 50%;
}

.value-icon svg {
    color: var(--color-bg-dark);
}

.value-card h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-section);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.contact-intro {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-card);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
}

.contact-link:hover,
.contact-link:focus {
    color: var(--color-lime);
    background: var(--color-bg-card-hover);
}

.contact-link svg {
    color: var(--color-lime);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-bg-card);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.social-link:hover,
.social-link:focus {
    background: var(--color-lime);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
    border-color: var(--color-lime);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--color-bg-dark);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

.copyright {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--color-lime);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-section);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-lg);
        transition: right var(--transition-base);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-xl);
    }

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

    .game-icon,
    .placeholder-icon {
        width: 150px;
        height: 150px;
    }

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

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .game-card {
        padding: var(--spacing-md);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-lime: #c5e800;
        --color-border: #505060;
    }

    .game-card,
    .value-card {
        border-width: 2px;
    }
}

/* Animation Classes */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for grid items */
.games-grid .animate-in:nth-child(1) { animation-delay: 0s; }
.games-grid .animate-in:nth-child(2) { animation-delay: 0.1s; }

.values-grid .animate-in:nth-child(1) { animation-delay: 0s; }
.values-grid .animate-in:nth-child(2) { animation-delay: 0.1s; }
.values-grid .animate-in:nth-child(3) { animation-delay: 0.2s; }
.values-grid .animate-in:nth-child(4) { animation-delay: 0.3s; }

/* Print Styles */
@media print {
    .site-header,
    .hero-decoration,
    .cta-button,
    .store-links,
    .notify-button,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .game-card,
    .value-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
