/* JAMMIX - Clean Recreation
   Pure HTML/CSS/JS - No frameworks
   Dark theme with coral accents

   v3 - Correct font (Gotham Womans) and styling */

/* ================================
   Custom Fonts
   ================================ */
@font-face {
    font-family: 'Gotham Womans';
    src: url('fonts/gotham-womans.woff2') format('woff2'),
         url('fonts/gotham-womans.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ================================
   CSS Variables
   ================================ */
:root {
    --bg-primary: #1D1D1D;
    --bg-secondary: #262626;
    --bg-hero: #1D1D1D;
    --text-primary: #FFFFFF;
    --text-muted: #ADADAD;
    --text-gray: #D0D0D0;
    --text-dark: #1D1D1D;
    --accent-coral: #EC7969;
    --accent-pink: #F26687;
    --focus-blue: #116dff;
    --container-width: 980px;
    --header-height: 55px;
    --font-hero: 'Gotham Womans', 'Oswald', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Questrial', sans-serif;
    --font-ui: 'Inter', 'DIN Next W01 Light', sans-serif;
}

/* ================================
   Reset & Base
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-muted);
}

a:focus-visible {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

/* ================================
   Two-Column Layout (Desktop)
   Left: content (44%), Right: sticky image (56%)
   ChatGPT exact specs: grid 44%/56%, gap 64px
   ================================ */
.main-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 72px;
    display: grid;
    grid-template-columns: 44% 56%;
    gap: 64px;
    align-items: start;
    background-color: var(--bg-primary);
}

.content-column {
    min-width: 0; /* Prevents weird overflow squeezing */
}

.image-column {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: calc(var(--header-height) + 7px + 40px);
    align-self: flex-start;
    height: fit-content;
}

.image-column .product-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
}

/* ================================
   Header (55px height, dark logo)
   ================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--accent-coral);
    border-bottom: 7px solid var(--accent-pink);
    height: var(--header-height);
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1240px;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
}

.header-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 24px;
}

.nav-col-guide {
    justify-self: flex-start;
}

.nav-col-purchase {
    justify-self: center;
}

.nav-col-social {
    justify-self: flex-end;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.08em;
    text-decoration: underline;
}

.nav-link:hover {
    color: var(--bg-secondary);
}

/* Social link in header - dark color */
.header-nav .social-link {
    color: var(--text-dark);
}

.header-nav .social-link:hover {
    color: var(--bg-secondary);
}

.btn-primary {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    height: 32px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.btn-primary:hover {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

/* ================================
   Hero Section (#262626 background)
   ================================ */
.hero {
    padding: 72px 0 28px;
    background-color: transparent;
    overflow: visible;
    position: relative;
}

.hero-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0;
    display: flex;
    position: relative;
    align-items: flex-start;
}

.hero-content {
    flex: 1;
    padding-top: 0;
    z-index: 1;
    max-width: 560px;
}

/* Hero title - Gotham Womans stencil font, WHITE */
.hero-title {
    font-family: var(--font-hero);
    font-size: 152px;
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 8px;
    color: #D0D0D0;
    letter-spacing: normal;
}

/* Tagline - Oswald 55px bold, CORAL */
.hero-tagline {
    font-family: var(--font-heading);
    font-size: 55px;
    font-weight: 700;
    color: var(--accent-coral);
    margin-bottom: 16px;
    line-height: 1.1;
}

/* Platforms - Oswald 74px, WHITE, stacked (no bullets) */
.hero-platforms {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    align-items: flex-start;
}

.hero-platforms .platform-line {
    font-family: var(--font-heading);
    font-size: 74px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.0;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 360px;
}

.compatibility-badge {
    max-width: 280px;
}

/* "for MiSTer" badge container */
.mister-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mister-for {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--accent-coral);
}

/* Mobile product image - hidden on desktop (shown via fixed panel) */
.mobile-product-image {
    display: none;
    margin-top: 24px;
}

.hero-image {
    position: absolute;
    right: 20px;
    top: 0;
}

.product-image {
    max-width: 556px;
    width: 556px;
}

/* ================================
   Section Titles
   ================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ================================
   Features Section (SINGLE COLUMN)
   ================================ */
.features {
    padding: 24px 0 40px;
    background-color: transparent;
}

.features-container {
    max-width: 560px;
    margin: 0;
}

/* Single column layout - matches original */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.45;
    padding-left: 20px;
    position: relative;
}

.features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

/* ================================
   Showcase Sections
   ================================ */
.showcase {
    padding: 32px 20px;
    background-color: var(--bg-primary);
}

.showcase-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.showcase-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 700px;
}

/* Gallery - single column stacked images */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    opacity: 0.85;
}

/* ================================
   Specs Section
   ================================ */
.specs {
    padding: 32px 20px;
    background-color: var(--bg-primary);
}

.specs-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.specs-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.specs-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-coral);
}

/* ================================
   Footer
   ================================ */
.site-footer {
    padding: 40px 20px;
    background-color: var(--bg-secondary);
    border-top: 1px solid #333;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-hero);
    font-size: 97px;
    font-weight: 400;
    color: var(--accent-coral);
    margin: 0;
    line-height: 1;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link svg {
    display: block;
}

/* ================================
   Lightbox (for gallery images)
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: 300;
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet: Collapse to single column */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 20px;
    }

    .image-column {
        display: none; /* Hide right column image on smaller screens */
    }

    .mobile-product-image {
        display: block; /* Show product image inline on mobile */
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .features {
        padding: 64px 40px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 100px;
    }

    .hero-platforms {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-platforms .platform-line {
        font-size: 40px;
    }

    .hero-description {
        max-width: 100%;
    }

    .compatibility-badge {
        margin: 0 auto;
    }

    .product-image {
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 8px;
        padding: 8px 10px;
        align-items: flex-start;
    }

    .site-header {
        height: auto;
    }

    .header-nav {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-col-purchase,
    .nav-col-social {
        justify-self: flex-start;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-platforms {
        flex-direction: column;
        gap: 4px;
    }

    .hero-platforms .platform-line {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .features {
        padding: 40px 20px;
    }

    .showcase,
    .specs {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
