﻿/* ============================================
   MY WRONG TIMELINE — Main Stylesheet
   Mobile-first responsive design
   ============================================ */

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

:root {
    --midnight: #0b0c2a;
    --deep-blue: #12143a;
    --portal-gold: #f7b731;
    --portal-amber: #e8a317;
    --neon-cyan: #38d9f5;
    --soft-white: #eef0f6;
    --muted: #7b7ea8;
    --card-bg: #181a42;
    --card-border: #2a2d5e;
    --danger: #ff5757;
    --success: #2ecc71;
    --radius: 16px;
    --radius-sm: 10px;
    --nav-height: 64px;
    --font-display: 'Lilita One', cursive;
    --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }

body {
    font-family: var(--font-body);
    background: var(--midnight);
    color: var(--soft-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--portal-gold); }

/* --- Google Translate (inside nav) --- */
.nav-translate { margin-left: 4px; line-height: 1; }
.nav-translate .goog-te-gadget { font-size: 0; line-height: 0; }
.nav-translate .goog-te-gadget .goog-te-combo {
    background: var(--card-bg);
    color: var(--muted);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 5px 8px;
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.nav-translate .goog-te-gadget .goog-te-combo:hover,
.nav-translate .goog-te-gadget .goog-te-combo:focus {
    border-color: var(--portal-gold);
}
/* Hide Google's injected top banner frame */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
/* Hide "Powered by" text Google injects */
.goog-te-gadget > span { display: none !important; }
.goog-logo-link { display: none !important; }

/* --- Navigation --- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: rgba(11, 12, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: var(--nav-height);
}
.main-nav.scrolled {
    border-bottom-color: var(--card-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.logo-my { color: var(--soft-white); }
.logo-wrong { color: var(--portal-gold); margin: 0 2px; }
.logo-timeline { color: var(--neon-cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}
.nav-links a {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-links a:hover { color: var(--soft-white); }
.nav-cta {
    background: var(--portal-gold) !important;
    color: var(--midnight) !important;
    padding: 6px 14px;
    font-size: 0.75rem !important;
    border-radius: 50px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    transition: transform 0.2s, background 0.2s !important;
}
.nav-cta:hover { transform: scale(1.05); background: var(--portal-amber) !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--soft-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 40%, rgba(56, 217, 245, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 70% 60%, rgba(247, 183, 49, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 900px 600px at 50% 100%, rgba(11, 12, 42, 1) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 15% 90%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.5), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-badge {
    display: inline-block;
    background: rgba(247, 183, 49, 0.15);
    border: 1px solid rgba(247, 183, 49, 0.3);
    color: var(--portal-gold);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .gold { color: var(--portal-gold); }
.hero h1 .cyan { color: var(--neon-cyan); }
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 32px;
    font-weight: 600;
}
.hero-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--portal-gold);
    color: var(--midnight);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}
.btn-primary:hover { transform: scale(1.05); background: var(--portal-amber); color: var(--midnight); }
.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--soft-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    border: 2px solid var(--card-border);
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn-outline:hover { transform: scale(1.05); border-color: var(--neon-cyan); color: var(--soft-white); }
.hero-town {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    opacity: 0.7;
    margin-top: 24px;
}

/* --- Subscribe Section --- */
.subscribe-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}
.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--portal-gold), transparent);
    border-radius: 2px;
}
.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--portal-gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 12px;
}
.section-desc {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 36px;
    font-weight: 600;
}

.subscribe-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
}
.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--card-border);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--soft-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s;
    min-width: 0;
}
.subscribe-form input[type="email"]::placeholder { color: var(--muted); }
.subscribe-form input[type="email"]:focus { border-color: var(--portal-gold); }
.subscribe-form button {
    padding: 14px 28px;
    background: var(--portal-gold);
    color: var(--midnight);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}
.subscribe-form button:hover { transform: scale(1.05); background: var(--portal-amber); }
.subscribe-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 24px;
}
.subscribe-msg.success { color: var(--success); }
.subscribe-msg.error { color: var(--danger); }
.subscribe-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.7;
}

/* --- Teaser Video --- */
.teaser-section {
    padding: 0 20px 80px;
    text-align: center;
}
.teaser-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.teaser-placeholder {
    color: var(--muted);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 40px;
}
.teaser-placeholder i { font-size: 3rem; display: block; margin-bottom: 16px; color: var(--portal-gold); }

/* --- Social Platforms --- */
.platforms-section {
    padding: 60px 20px 80px;
    text-align: center;
}
.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--soft-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.platform-pill:hover {
    transform: translateY(-3px);
    border-color: var(--portal-gold);
    background: rgba(247,183,49,0.08);
    color: var(--soft-white);
}
.platform-pill i { font-size: 1.2rem; }

/* --- Characters Preview (Homepage) --- */
.characters-preview {
    padding: 80px 20px;
    text-align: center;
}
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.char-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.char-card:hover { transform: translateY(-6px); border-color: var(--portal-gold); }
.char-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-gold), var(--neon-cyan));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--midnight);
    overflow: hidden;
}
.char-avatar img { width: 100%; height: 100%; object-fit: cover; }
.char-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.char-card .char-tagline { color: var(--portal-gold); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.char-card .char-bio { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* --- About Page --- */
.page-hero {
    padding: 120px 20px 60px;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 16px;
}
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; font-weight: 600; }
.content-section {
    padding: 40px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}
.content-section h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--portal-gold); margin-bottom: 16px; }
.content-section p { color: var(--soft-white); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.75; }
.content-section .highlight-box {
    background: var(--card-bg);
    border-left: 4px solid var(--portal-gold);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 28px 0;
}
.content-section .highlight-box p { margin-bottom: 0; color: var(--muted); font-style: italic; }

/* --- Characters Page (full) --- */
.char-full-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.char-full-card {
    display: flex;
    gap: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s;
}
.char-full-card:hover { border-color: var(--portal-gold); }
.char-full-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-gold), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--midnight);
    overflow: hidden;
}
.char-full-avatar img { width: 100%; height: 100%; object-fit: cover; }
.char-full-info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.char-full-info .char-tagline { color: var(--portal-gold); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.char-full-info .char-bio { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* --- Plainview Coming Soon --- */
.plainview-placeholder { text-align: center; padding: 80px 20px; }
.plainview-placeholder .map-frame {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--card-bg);
    border: 2px dashed var(--card-border);
    border-radius: var(--radius);
    padding: 80px 40px;
}
.plainview-placeholder .map-frame i { font-size: 3rem; color: var(--portal-gold); margin-bottom: 16px; }
.plainview-placeholder .map-frame p { color: var(--muted); font-weight: 700; }

/* --- Footer --- */
.site-footer {
    background: var(--deep-blue);
    border-top: 1px solid var(--card-border);
    padding: 60px 20px 30px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-brand { margin-bottom: 32px; }
.footer-brand .logo-my, .footer-brand .logo-wrong, .footer-brand .logo-timeline {
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.footer-tagline { color: var(--muted); font-size: 0.9rem; margin-top: 6px; font-style: italic; }
.footer-links {
    display: flex;
    gap: 60px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--portal-gold);
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-col a:hover { color: var(--soft-white); }
.footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--muted);
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}
.footer-social a:hover {
    border-color: var(--portal-gold);
    color: var(--portal-gold);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; }
.footer-easter { font-style: italic; opacity: 0.5; margin-top: 4px; }

/* --- 404 Page --- */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

/* ============================================
   RESPONSIVE — Mobile breakpoints
   ============================================ */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #0b0c2a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 8999;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }
    .nav-cta { margin-top: 8px; }
    .nav-translate { margin-left: 0; margin-top: 16px; }

    .hero { min-height: 80vh; padding: 40px 16px; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

    .subscribe-form { flex-direction: column; }
    .subscribe-form input[type="email"],
    .subscribe-form button { width: 100%; }

    .char-full-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
    .char-full-avatar { width: 100px; height: 100px; font-size: 2.2rem; }

    .footer-links { flex-direction: column; gap: 28px; }

    .platform-pill { padding: 10px 18px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hero-badge { font-size: 0.65rem; padding: 5px 14px; }
    .hero-cta-row { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }
    .char-grid { grid-template-columns: 1fr; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* --- Print --- */
@media print {
    .main-nav, .footer-social, .nav-translate, .subscribe-section, .nav-toggle { display: none; }
    body { background: #fff; color: #000; }
}

/* Auth nav button */
.nav-auth-btn {
    padding: 6px 14px;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-auth-btn:hover {
    color: var(--soft-white);
    border-color: var(--portal-gold);
}