/* 
    Antigravity Theme - Signal Box Studio
    Dark, Cinematic, Minimalist
*/

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-text: #e0e0e0;
    --color-text-muted: #888888;
    --color-primary: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Imprint Accents */
    --accent-arcane-heart: #8B5CF6;
    --accent-broadsword: #78716C;
    --accent-surface-tension: #14B8A6;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 64px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-sm) 0;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 var(--space-sm) 0;
}

/* ========================================
   Layout: Viewport Structure
   ======================================== */
.gh-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.gh-main {
    flex: 1 0 auto;
}

/* ========================================
   Shell: Header
   ======================================== */
.gh-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.gh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
}

.gh-header-logo img {
    height: 40px;
    width: auto;
    filter: invert(1);
    /* Invert black logo to white for dark header */
}

.gh-header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.gh-header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.gh-header-nav a:hover {
    color: var(--color-primary);
}

.gh-header-nav .gh-btn-subscribe {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
}

.gh-header-nav .gh-btn-subscribe:hover {
    opacity: 0.9;
}

/* ========================================
   Hero Header (Signal Box)
   ======================================== */
.gh-hero {
    position: relative;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-elevated));
    border-bottom: 1px solid var(--color-border);
}

.gh-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gh-hero-logo {
    max-width: 300px;
    margin: 0 auto var(--space-md);
    filter: invert(1);
}

.gh-hero-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* ========================================
   Imprint Modules
   ======================================== */
.imprint-module {
    padding: var(--space-lg) 0;
}

.imprint-module:nth-child(even) {
    background: var(--color-bg-elevated);
}

.imprint-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Imprint Header/Banner */
.imprint-header {
    margin-bottom: var(--space-lg);
    border-radius: 8px;
    overflow: hidden;
    /* FIX: Allow height to adapt to image aspect ratio effectively */
    display: flex;
    justify-content: center;
}

.imprint-header img {
    width: 100%;
    height: auto;
    /* FIX: changed from max-height: 200px + object-fit: cover 
       to just max-width constraints so the full banner shows without clipping */
    max-width: 100%;
    object-fit: contain;
}

/* Podcast Grid */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.podcast-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.podcast-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.podcast-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.podcast-card-content {
    padding: var(--space-sm);
}

.podcast-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.podcast-card-author {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.podcast-card-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.podcast-card-cta:hover {
    opacity: 0.9;
}

/* Placeholder State (Surface Tension) */
.imprint-placeholder {
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ========================================
   Shell: Footer
   ======================================== */
.gh-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.gh-footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.gh-footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.gh-footer-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Email Signup Form */
.gh-subscribe-form {
    display: flex;
    gap: var(--space-xs);
    max-width: 400px;
    margin: 0 auto var(--space-md);
}

.gh-subscribe-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 1rem;
}

.gh-subscribe-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.gh-subscribe-form button {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gh-subscribe-form button:hover {
    opacity: 0.9;
}

.gh-footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gh-header-nav {
        gap: var(--space-sm);
    }

    .gh-header-nav a {
        font-size: 0.75rem;
    }

    .podcast-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .gh-subscribe-form {
        flex-direction: column;
    }

    .gh-hero {
        padding: var(--space-lg) var(--space-md);
    }
}