/* SpinAstro - Cosmic Theme CSS */
:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f2e;
    --accent-primary: #4a9eff;
    --accent-secondary: #ff6b9d;
    --accent-tertiary: #00d4aa;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8a9a;
    --border-color: #2a3441;
    --gradient-cosmic: linear-gradient(135deg, #4a9eff 0%, #ff6b9d 50%, #00d4aa 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 100%);
    --shadow-cosmic: 0 0 20px rgba(74, 158, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: cosmicFloat 20s ease-in-out infinite;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-nav.open {
    transform: translateY(0);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(74, 158, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-cosmic);
    border-radius: 1px;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    
    .main-nav {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        flex-direction: row;
        padding: 0;
        gap: 1rem;
    }
    
    .header-container {
        padding: 1.5rem 2rem;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
    animation: nebulaFloat 15s ease-in-out infinite;
}

@keyframes nebulaFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(74, 158, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-notices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notice-icon {
    font-size: 1.2rem;
}

/* Game Section */
.game-section {
    margin: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.section-header p {
    color: var(--text-secondary);
}

.game-container {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-cosmic);
}

.game-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    background: #000;
}

.game-info {
    margin-top: 1rem;
    text-align: center;
}

.game-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cosmic);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .hero-notices {
        flex-direction: row;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.rg-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rg-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rg-links a:hover {
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .rg-links {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-cosmic);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.cosmic-icon {
    font-size: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.age-notice {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-cosmic);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cosmic);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Play Page Styles */
.play-section {
    margin: 2rem 0;
}

.play-header {
    text-align: center;
    margin-bottom: 2rem;
}

.play-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.play-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.game-container-large {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-cosmic);
    margin-bottom: 3rem;
}

.game-frame-large {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: #000;
}

.game-instructions {
    margin-bottom: 3rem;
}

.game-instructions h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.instruction-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cosmic);
    border-color: var(--accent-primary);
}

.instruction-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.instruction-item h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.instruction-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-notice {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.notice-content h4 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.notice-content ul {
    list-style: none;
    padding: 0;
}

.notice-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.notice-content li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

@media (min-width: 768px) {
    .instructions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .play-header h1 {
        font-size: 3rem;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .game-frame-large {
        height: 450px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .play-header h1 {
        font-size: 2rem;
    }
}

/* Legal Pages Styles */
.legal-section {
    margin: 2rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section-content {
    margin-bottom: 2.5rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.legal-section-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.legal-section-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section-content ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section-content li {
    margin-bottom: 0.5rem;
}

.disclaimer-highlight {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid var(--accent-secondary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.disclaimer-highlight h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.warning-box {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.warning-box p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.resource-item {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent-tertiary);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.resource-item h4 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-tertiary);
    margin-bottom: 1rem;
}

.resource-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .legal-header h1 {
        font-size: 3rem;
    }
    
    .resource-links {
        grid-template-columns: repeat(3, 1fr);
    }
}