/* Astralory.xyz - Cosmic Stars Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
    --astral-void: #030712;
    --astral-deep: #0f172a;
    --astral-indigo: #6366f1;
    --astral-violet: #8b5cf6;
    --astral-star: #fbbf24;
    --astral-text: #e2e8f0;
    --astral-dim: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--astral-void);
    color: var(--astral-text);
    line-height: 1.7;
    position: relative;
}

/* Star background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, 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(2px 2px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 200px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 350px 150px, #fff, transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Header */
.cosmic-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 1rem 0;
}

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

.astral-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--astral-star);
    text-decoration: none;
    letter-spacing: 1px;
}

.menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-trigger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--astral-indigo);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-trigger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.star-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.star-nav a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--astral-dim);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.star-nav a:hover {
    color: var(--astral-text);
    background: rgba(99, 102, 241, 0.2);
}

/* Cosmos Section */
.cosmos {
    min-height: 100vh;
    padding: 9rem 2rem 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        var(--astral-void);
}

.cosmos-inner {
    max-width: 900px;
}

.cosmos h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--astral-star) 0%, var(--astral-violet) 50%, var(--astral-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cosmos-desc {
    font-size: 1.2rem;
    color: var(--astral-dim);
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.stellar-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.stellar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--astral-violet);
    font-size: 0.9rem;
}

/* Game Station */
.station {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--astral-deep) 0%, var(--astral-void) 100%);
}

.station-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    color: var(--astral-star);
    margin-bottom: 2rem;
}

.station-pod {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--astral-deep);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.1);
}

.station-screen {
    width: 100%;
    height: 620px;
    border: none;
    border-radius: 10px;
    background: #000;
}

/* Constellations */
.constellations {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.const-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: var(--astral-star);
    margin-bottom: 3rem;
}

.const-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.const-item {
    background: linear-gradient(145deg, var(--astral-deep), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 2.5rem;
    transition: all 0.4s;
}

.const-item:hover {
    border-color: var(--astral-indigo);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.const-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.const-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--astral-violet);
    margin-bottom: 1rem;
}

.const-item p {
    color: var(--astral-dim);
    line-height: 1.8;
}

/* Galaxy Info */
.galaxy-info {
    padding: 5rem 2rem;
    background: var(--astral-deep);
}

.galaxy-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.galaxy-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: var(--astral-star);
    margin-bottom: 2rem;
}

.galaxy-info p {
    color: var(--astral-dim);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

/* Footer */
.cosmic-foot {
    background: var(--astral-void);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 2rem;
    text-align: center;
}

.foot-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--astral-star);
    margin-bottom: 1.5rem;
}

.foot-resources {
    margin-bottom: 1.5rem;
}

.foot-resources h4 {
    font-size: 0.9rem;
    color: var(--astral-text);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.foot-resources a {
    color: var(--astral-dim);
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.foot-resources a:hover {
    color: var(--astral-indigo);
}

.foot-legal {
    color: var(--astral-dim);
    font-size: 0.85rem;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.age-gate.dismissed {
    display: none;
}

.gate-panel {
    background: var(--astral-deep);
    border: 2px solid var(--astral-indigo);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.25);
}

.gate-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--astral-star);
    margin-bottom: 1rem;
}

.gate-panel p {
    color: var(--astral-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.astral-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.astral-btn.primary {
    background: linear-gradient(135deg, var(--astral-indigo), var(--astral-violet));
    color: white;
}

.astral-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.astral-btn.outline {
    background: transparent;
    color: var(--astral-dim);
    border: 2px solid var(--astral-dim);
}

.astral-btn.outline:hover {
    border-color: var(--astral-indigo);
    color: var(--astral-indigo);
}

/* Page Layout */
.page-top {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: 
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        var(--astral-void);
}

.page-top h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--astral-star);
}

.page-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--astral-violet);
    margin: 2.5rem 0 1rem;
}

.page-content p {
    color: var(--astral-dim);
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.page-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    color: var(--astral-dim);
    margin-bottom: 0.7rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-trigger {
        display: block;
    }

    .star-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--astral-deep);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s;
        border-left: 1px solid rgba(99, 102, 241, 0.2);
    }

    .star-nav.open {
        right: 0;
    }

    .star-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    }

    .station-screen {
        height: 400px;
    }

    .stellar-badges {
        flex-direction: column;
        align-items: center;
    }

    .gate-actions {
        flex-direction: column;
    }

    .foot-resources a {
        display: block;
        margin: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .astral-logo {
        font-size: 1.4rem;
    }

    .cosmos h1 {
        font-size: 2rem;
    }

    .station-screen {
        height: 320px;
    }

    .station-pod {
        padding: 1rem;
    }
}
