/* website.css - Shared styles for Edge of Stars website pages */

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

:root {
    --color-bg-dark: #000011;
    --color-bg-medium: #001122;
    --color-bg-light: #002244;
    --color-primary: #00FF88;
    --color-primary-dim: #00AA66;
    --color-secondary: #00AAFF;
    --color-accent: #FFAA00;
    --color-text: #CCFFEE;
    --color-text-dim: #88BBAA;
    --color-danger: #FF4444;
    --font-main: 'Courier New', 'Lucida Console', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== Animated Starfield Background ===== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

.stars-medium {
    background-image:
        radial-gradient(2px 2px at 100px 50px, rgba(0,255,136,0.8), transparent),
        radial-gradient(2px 2px at 200px 150px, rgba(0,170,255,0.8), transparent),
        radial-gradient(2px 2px at 300px 250px, rgba(255,170,0,0.6), transparent);
    background-size: 400px 400px;
    animation: drift 60s linear infinite;
}

.stars-large {
    background-image:
        radial-gradient(3px 3px at 150px 100px, rgba(0,255,136,0.9), transparent),
        radial-gradient(3px 3px at 350px 300px, rgba(0,170,255,0.9), transparent);
    background-size: 600px 600px;
    animation: drift 90s linear infinite reverse;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 17, 34, 0.95);
    border-bottom: 1px solid var(--color-primary-dim);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary);
}

.navbar-brand:hover {
    color: var(--color-primary);
}

.brand-icon {
    font-size: 1.75rem;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active,
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-cta {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Main Content ===== */
main {
    padding-top: 80px; /* Account for fixed navbar */
}

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

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--color-primary), 0 0 60px rgba(0, 255, 136, 0.5);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 30px var(--color-primary), 0 0 60px rgba(0, 255, 136, 0.5); }
    50% { text-shadow: 0 0 40px var(--color-primary), 0 0 80px rgba(0, 255, 136, 0.7); }
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    font-weight: bold;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(0, 34, 68, 0.5);
    border: 1px solid var(--color-primary-dim);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

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

.feature-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* ===== Screenshots Gallery ===== */
.screenshots-container {
    position: relative;
    overflow: hidden;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    position: relative;
    border: 2px solid var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-bg-medium);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
}

.screenshot-placeholder .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 17, 0.9);
    padding: 0.75rem 1rem;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ===== Stats Section ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-value {
    font-size: 3rem;
    color: var(--color-accent);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.stat-label {
    color: var(--color-text-dim);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.8), rgba(0, 17, 34, 0.9));
    border-top: 1px solid var(--color-primary-dim);
    border-bottom: 1px solid var(--color-primary-dim);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--color-text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 17, 34, 0.95);
    border-top: 1px solid var(--color-primary-dim);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--color-text-dim);
    font-size: 0.85rem;
}

.footer-tech {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-primary-dim);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* ===== Page Headers ===== */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 34, 68, 0.5), transparent);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-description {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Content Cards ===== */
.content-card {
    background: rgba(0, 34, 68, 0.5);
    border: 1px solid var(--color-primary-dim);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card ul {
    list-style: none;
    padding-left: 1rem;
}

.content-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ===== Controls Table ===== */
.controls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.controls-table th,
.controls-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.controls-table th {
    color: var(--color-primary);
    font-weight: normal;
    background: rgba(0, 0, 0, 0.3);
}

.controls-table td:first-child {
    width: 150px;
}

.key {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* ===== Tips Box ===== */
.tips-box {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tips-box h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-box ul {
    list-style: none;
}

.tips-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips-box li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* ===== Victory Conditions ===== */
.victory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.victory-card {
    background: rgba(0, 34, 68, 0.5);
    border: 1px solid var(--color-primary-dim);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.victory-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.victory-name {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.victory-desc {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 17, 34, 0.98);
        flex-direction: column !important;
        padding: 1rem 2rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--color-primary-dim);
    }

    .navbar-nav.active {
        display: flex !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

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

    .page-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-dim { color: var(--color-text-dim); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
