/*
===========================================
STICK JUMP GAME - CSS ARCHITECTURE: UTILITY-FIRST
===========================================
Design System: Space Theme with Animated Gradients
Created: November 6, 2025
===========================================
*/

/* ==================== CSS VARIABLES - SPACE THEME ==================== */
:root {
    /* Space Theme Color Palette */
    --galaxy-purple: #5e1675;
    --star-white: #f0f0f0;
    --nebula-pink: #ff006e;
    --planet-blue: #1982c4;
    --cosmic-orange: #ff6700;
    --space-black: #0a0a0a;
    
    /* Neutral Shades */
    --deep-space: #1a1a2e;
    --dark-matter: #16213e;
    --asteroid-gray: #94a1b2;
    
    /* Typography */
    --font-heading: 'Space Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-8: 3rem;
    --sp-10: 4rem;
    
    /* Border Radius */
    --rounded: 8px;
    --rounded-lg: 16px;
    --rounded-full: 9999px;
}

/* ==================== UTILITY CLASSES ==================== */

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

/* Flex Direction */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Gap */
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--sp-2); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.px-6 { padding-left: var(--sp-6); padding-right: var(--sp-6); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.py-6 { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.py-8 { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.py-10 { padding-top: var(--sp-10); padding-bottom: var(--sp-10); }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Max Width */
.max-w-container { max-width: 1200px; }
.max-w-content { max-width: 800px; }
.max-w-narrow { max-width: 600px; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Size */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: 3rem; }

/* Font Weight */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Color */
.text-white { color: var(--star-white); }
.text-purple { color: var(--galaxy-purple); }
.text-pink { color: var(--nebula-pink); }
.text-blue { color: var(--planet-blue); }
.text-orange { color: var(--cosmic-orange); }
.text-gray { color: var(--asteroid-gray); }

/* Background Color */
.bg-black { background-color: var(--space-black); }
.bg-deep { background-color: var(--deep-space); }
.bg-dark { background-color: var(--dark-matter); }
.bg-purple { background-color: var(--galaxy-purple); }
.bg-blue { background-color: var(--planet-blue); }
.bg-transparent { background-color: transparent; }

/* Border Radius */
.rounded { border-radius: var(--rounded); }
.rounded-lg { border-radius: var(--rounded-lg); }
.rounded-full { border-radius: var(--rounded-full); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-999 { z-index: 999; }
.z-9999 { z-index: 9999; }

/* ==================== ANIMATED GRADIENT BACKGROUNDS ==================== */

.animated-gradient {
    background: linear-gradient(45deg, var(--galaxy-purple), var(--nebula-pink), var(--planet-blue), var(--cosmic-orange));
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient-slow {
    background: linear-gradient(135deg, var(--deep-space), var(--galaxy-purple), var(--planet-blue));
    background-size: 300% 300%;
    animation: gradient-shift 20s ease infinite;
}

.animated-gradient-card {
    background: linear-gradient(to bottom right, rgba(94, 22, 117, 0.2), rgba(25, 130, 196, 0.2));
    backdrop-filter: blur(10px);
}

/* ==================== BASE STYLES ==================== */

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

body {
    font-family: var(--font-body);
    color: var(--star-white);
    background: var(--space-black);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ==================== OUTLINE MORPH BUTTONS ==================== */

.interactive-button {
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--nebula-pink);
    color: var(--nebula-pink);
    border-radius: var(--rounded);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--nebula-pink);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.interactive-button:hover {
    color: var(--space-black);
}

.interactive-button:hover::before {
    transform: scaleX(1);
}

.interactive-button-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

.interactive-button-secondary {
    border-color: var(--cosmic-orange);
    color: var(--cosmic-orange);
}

.interactive-button-secondary::before {
    background: var(--cosmic-orange);
}

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

.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.navigation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--nebula-pink);
}

.navigation-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navigation-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation-link:hover {
    color: var(--nebula-pink);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--star-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--space-black), var(--deep-space));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--nebula-pink), var(--cosmic-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--asteroid-gray);
}

.game-showcase-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-lg);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    transition: all 0.3s ease;
}

.game-showcase-card:hover {
    transform: translateY(-5px);
    border-color: var(--nebula-pink);
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.3);
}

.game-preview-image {
    width: 100%;
    border-radius: var(--rounded-lg);
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cosmic-orange);
}

.game-description {
    margin-bottom: 2rem;
    color: var(--asteroid-gray);
    line-height: 1.8;
}

/* ==================== FEATURES SECTION ==================== */

.features-section {
    padding: 4rem 2rem;
    background: var(--deep-space);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--star-white), var(--asteroid-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: rgba(94, 22, 117, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-lg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(94, 22, 117, 0.2);
    transform: translateY(-5px);
    border-color: var(--nebula-pink);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--nebula-pink);
}

.feature-description {
    color: var(--asteroid-gray);
    line-height: 1.6;
}

/* ==================== FAQ SECTION ==================== */

.faq-section {
    padding: 4rem 2rem;
    background: var(--space-black);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-lg);
    margin-bottom: 2rem;
}

.faq-question {
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--star-white);
}

.faq-answer {
    padding: 0 2rem 2rem;
    display: none;
    color: var(--asteroid-gray);
    line-height: 1.8;
}

.faq-answer.active {
    display: block;
}

.faq-toggle-icon {
    transition: transform 0.3s ease;
}

.faq-toggle-icon.rotated {
    transform: rotate(180deg);
}

/* ==================== CTA SECTION ==================== */

.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--star-white);
    margin-bottom: 2rem;
}

.cta-description {
    color: var(--asteroid-gray);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

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

.site-footer {
    background: var(--deep-space);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 2rem;
    color: var(--nebula-pink);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link:hover {
    color: var(--nebula-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--asteroid-gray);
}

/* ==================== COOKIE BANNER ==================== */

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark-matter);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--rounded-lg);
    padding: 2rem;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.cookie-text {
    margin-bottom: 2rem;
    color: var(--asteroid-gray);
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* ==================== BLOG STYLES ==================== */

.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--nebula-pink);
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--asteroid-gray);
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.blog-excerpt {
    margin-bottom: 2rem;
    color: var(--asteroid-gray);
    line-height: 1.6;
}

/* ==================== ARTICLE STYLES ==================== */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--star-white);
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--asteroid-gray);
}

.article-body {
    color: var(--asteroid-gray);
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--nebula-pink);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-navigation {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* ==================== CONTACT FORM ==================== */

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--star-white);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--rounded);
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(26, 26, 46, 0.6);
    color: var(--star-white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--nebula-pink);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== MODAL ==================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--dark-matter);
    padding: 3rem;
    border-radius: var(--rounded-lg);
    text-align: center;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .navigation-container {
        padding: 1rem;
    }
    
    .navigation-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navigation-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .interactive-button {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    
    .interactive-button-large {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

