/* ==========================================================================
   Amigasm Entertainment — Styles
   Color theme derived from the rainbow gradient in amigasmlogo.png
   ========================================================================== */

:root {
    /* Rainbow palette from the logo */
    --red: #ff1744;
    --orange: #ff6d00;
    --yellow: #ffd600;
    --green: #00e676;
    --cyan: #00e5ff;
    --blue: #2979ff;
    --purple: #aa00ff;
    --magenta: #f50057;

    /* Base colors — matched to logo background (#010010) */
    --bg-dark: #010010;
    --bg-card: #0a0a1c;
    --bg-section-alt: #060614;
    --text-primary: #e8e8f0;
    --text-secondary: #9a9ab0;
    --text-muted: #6a6a80;

    /* The full rainbow gradient */
    --rainbow: linear-gradient(90deg,
        var(--red),
        var(--orange),
        var(--yellow),
        var(--green),
        var(--cyan),
        var(--blue),
        var(--purple),
        var(--magenta)
    );
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(1, 0, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.site-logo {
    height: 36px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-logo {
    width: min(500px, 85vw);
    height: auto;
    margin-bottom: 1.5rem;
    filter: none;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* CRT scanline overlay */
.scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid var(--cyan);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2), inset 0 0 12px rgba(0, 229, 255, 0.05);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35), inset 0 0 15px rgba(0, 229, 255, 0.08);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Games Section
   ========================================================================== */

.games-section {
    background: var(--bg-section-alt);
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.games-section .section {
    padding: 0;
}

.game-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.game-card::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--rainbow);
}

.game-card-content {
    padding: 2.5rem;
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--cyan);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.game-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.game-badge.badge-unreleased {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.25);
    color: var(--red);
}

.game-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

.game-description strong {
    color: var(--text-primary);
}

.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.game-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-screenshot {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-content strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    text-align: center;
    background: var(--bg-section-alt);
    max-width: 100%;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
    .nav-links {
        gap: 1.25rem;
    }

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

    .site-logo {
        height: 28px;
    }

    .game-card-content {
        padding: 1.5rem;
    }

    .game-details {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .section {
        padding: 3.5rem 1rem;
    }
}
