/* Fonts & Custom Settings */
@font-face {
    font-family: 'RetroNumbers';
    src: local('Times New Roman'), local('Times'), local('Liberation Serif');
    unicode-range: U+0030-0039;
}

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

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-color: #3b82f6;
    --panel-bg: rgba(255, 255, 255, 0.04);
    --header-bg: rgba(0, 0, 0, 0.75);
    --border-color: rgba(255, 255, 255, 0.1);
    --arcade-gold: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'RetroNumbers', 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbars */
body::-webkit-scrollbar {
    display: none;
}
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Container limits viewport width to simulate CRT screen */
.faq-container {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 4rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: #050505;
}

/* Header styles matching Character Bio */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10010;
}

.back-button {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.2s;
    font-size: 0.75rem;
}

.back-button svg {
    width: 16px;
    height: 16px;
}

.back-button:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.header-title {
    grid-column: 2;
    font-size: 0.85rem;
    white-space: nowrap;
    margin: 0;
    font-family: 'RetroNumbers', 'Georgia', 'Times New Roman', Times, serif;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    justify-self: center;
}

.back-button,
.header-title {
    filter: url(#chromatic-aberration);
}

/* Content Sections */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
}

.faq-intro {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.faq-intro-title {
    font-size: 1.65rem; /* Increased size */
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-style: italic;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 255, 255, 0.25);
    filter: url(#chromatic-aberration);
}

.faq-intro-p {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: bold;
}

/* FAQ Item Blocks */
.faq-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.faq-question {
    font-size: 1.35rem; /* Increased size */
    font-weight: bold;
    color: #ffffff;
    font-style: italic;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 255, 255, 0.25);
    filter: url(#chromatic-aberration);
}

.faq-answer {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.6;
}

/* Side-by-side Layout for How you make?? */
.faq-row-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.faq-row-text {
    flex: 1 1 280px;
}

.faq-row-media {
    flex: 1 1 280px;
    width: 100%;
}

/* Aspect Ratio wrapper for responsive video iframe */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 10001; /* Lift above VHS overlay to remove scanlines filter */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Layout for Who are you? */
.who-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.who-text {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ffffff;
}

.who-images {
    display: flex;
    gap: 1rem;
}

.who-image-container {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.who-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Footer Close styling */
.faq-footer {
    text-align: center;
    margin-top: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.faq-footer p {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.6;
}

/* --- VHS CRT Scanline Overlays --- */
.vhs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 1px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    background-size: 100% 3px;
    animation: scanlines-scroll 10s linear infinite;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.vhs-overlay::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(1px);
    animation: tracking-roll 6s linear infinite;
    z-index: 3;
    opacity: 0;
}

.vhs-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 5;
}

@keyframes scanlines-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 120px; }
}

@keyframes tracking-roll {
    0% { top: -20px; opacity: 0; }
    8% { opacity: 0.5; }
    33% { top: 100%; opacity: 0.5; }
    34% { opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

/* YouTube Short Embed block styles */
.youtube-short-prompt {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 1.2rem;
}

.youtube-short-wrapper {
    width: 100%;
    max-width: 220px; /* Small layout width */
    margin: 0.8rem auto 0 auto;
    aspect-ratio: 9/16;
    height: 390px; /* Pretty small height */
    z-index: 10001; /* Lift above scanline overlays */
    position: relative;
}

.youtube-short-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: #000;
}
