/* ============================================
   SOCIALV V3 - VIDEO REFERRALS
   ============================================ */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-400: #888888;
    --gray-800: #1a1a1a;
    --violet: #8B5CF6;
    --violet-dark: #6D28D9;
    --violet-light: #A78BFA;
    --lime: #BFFF00;
    --gradient-holographic: linear-gradient(135deg, #8B5CF6 0%, #8B5CF6 25%, #F59E0B 50%, #10B981 75%, #06B6D4 100%);
    --gradient-violet: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --nav-height: 60px;
    --mobile-cta-height: 80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-display); background: var(--black); color: var(--white); overflow-x: hidden; line-height: 1.5; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 2px; }
::selection { background: var(--violet); color: var(--white); }

/* LOADER */
.loader { position: fixed; inset: 0; background: var(--black); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-size: 2rem; font-weight: 800; letter-spacing: 0.2em; margin-bottom: 2rem; background: var(--gradient-holographic); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 2s ease infinite; }
.loader-bar { width: 200px; height: 2px; background: var(--gray-800); border-radius: 1px; overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: var(--gradient-holographic); background-size: 200% 100%; animation: loading 1.5s ease forwards, shimmer 1s ease infinite; }
@keyframes loading { to { width: 100%; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* NAVIGATION */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; z-index: 100; background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%); }
.nav-logo { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.1em; }
.logo-text { color: var(--white); }
.logo-accent { color: var(--violet); }
.nav-login { font-size: 0.875rem; font-weight: 500; color: var(--white); text-decoration: none; padding: 0.5rem 1.25rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; transition: all 0.15s ease; }
.nav-login:hover { background: var(--white); color: var(--black); }

/* MAIN LAYOUT */
.main { display: flex; min-height: 100vh; }

/* VIDEO FEED */
.feed { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.video-slide { position: relative; width: 100%; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; padding: 2rem; padding-bottom: calc(var(--mobile-cta-height) + 2rem); opacity: 0; transition: opacity 0.5s ease; }
.video-slide.active, .video-slide.visible { opacity: 1; }
.video-container { position: absolute; inset: 0; overflow: hidden; }
.video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 30%, transparent 60%, rgba(0,0,0,0.5) 100%); pointer-events: none; }
.video-meta { position: relative; z-index: 10; max-width: 400px; }
.video-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.15em; padding: 0.375rem 0.75rem; background: var(--violet); border-radius: 100px; margin-bottom: 0.75rem; }
.video-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.video-caption { font-size: 1rem; opacity: 0.9; margin-bottom: 0.75rem; }
.video-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.video-tags span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--lime); opacity: 0.8; }
.video-sound { position: absolute; bottom: calc(var(--mobile-cta-height) + 2rem); right: 1.5rem; width: 48px; height: 48px; border: none; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; z-index: 20; }
.video-sound:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.video-sound svg { width: 20px; height: 20px; color: var(--white); }
.feed-progress { position: fixed; right: 1rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 50; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.15s ease; }
.dot:hover { background: rgba(255,255,255,0.6); }
.dot.active { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.scroll-indicator { position: fixed; bottom: calc(var(--mobile-cta-height) + 1rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 50; pointer-events: none; transition: opacity 0.3s ease; }
.scroll-indicator.hidden { opacity: 0; }
.scroll-indicator span { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid rgba(255,255,255,0.5); border-bottom: 2px solid rgba(255,255,255,0.5); transform: rotate(45deg); animation: bounce 2s ease infinite; }
@keyframes bounce { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(5px); } }

/* CONTENT PANEL - Hidden on mobile */
.content-panel { display: none; }

/* MOBILE CTA */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; height: var(--mobile-cta-height); padding: 1rem; background: linear-gradient(to top, var(--black) 80%, transparent 100%); z-index: 90; }
.btn-mobile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--gradient-violet); border-radius: 16px; font-size: 1.125rem; font-weight: 700; color: var(--white); text-decoration: none; overflow: hidden; }
.btn-mobile:active { transform: scale(0.98); }
.btn-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(139,92,246,0.4) 0%, transparent 60%); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; background: var(--gradient-violet); border-radius: 100px; font-size: 1rem; font-weight: 600; color: var(--white); text-decoration: none; transition: all 0.15s ease; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(139,92,246,0.4); }
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

/* ============================================
   DESKTOP STYLES (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    .main { flex-direction: row; }
    
    .feed { width: 42%; max-width: 460px; position: sticky; top: 0; height: 100vh; }
    .video-slide { padding: 3rem; padding-bottom: 3rem; }
    .video-sound { bottom: 3rem; right: 2rem; }
    .feed-progress { display: none; }
    .scroll-indicator { bottom: 2rem; left: 21%; }
    .mobile-cta { display: none; }

    /* Content Panel */
    .content-panel { display: block; flex: 1; background: var(--black); border-left: 1px solid rgba(255,255,255,0.05); overflow-y: auto; height: 100vh; }
    .content-inner { max-width: 600px; margin: 0 auto; padding: 5rem 3rem 3rem; }

    /* HERO */
    .content-hero { margin-bottom: 2rem; }
    .headline { font-size: 3.5rem; font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 1rem; }
    .headline-line { display: block; width: fit-content; }
    .headline-line.accent { font-size: 0.8em; background: var(--gradient-holographic); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 3s ease infinite; }
    .subheadline { font-size: 1.25rem; color: var(--gray-400); }
    .highlight { color: var(--white); font-weight: 500; }

    /* DEFINITION */
    .definition-block { margin-bottom: 2rem; padding: 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
    .definition-term { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .term { font-size: 1rem; font-weight: 700; }
    .term.purple { color: var(--violet); }
    .phonetic { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray-400); }
    .pos { font-family: var(--font-mono); font-size: 0.6rem; font-style: italic; color: var(--lime); background: rgba(191,255,0,0.1); padding: 0.15rem 0.4rem; border-radius: 100px; }
    .definition-meaning { font-size: 0.875rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 0.75rem; }
    .definition-meaning em { color: var(--white); font-style: normal; font-weight: 600; }
    .definition-origin { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.35); }
    .definition-origin span { text-transform: uppercase; letter-spacing: 0.08em; }

    /* STATS */
    .stats-block { display: flex; gap: 3rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-number { display: block; font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: var(--lime); line-height: 1; margin-bottom: 0.25rem; }
    .stat-label { font-size: 0.875rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.02em; }

    /* CTA */
    .cta-block { margin-bottom: 3rem; }

    /* AI SECTION */
    .ai-block { margin-bottom: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .ai-header { margin-bottom: 1.5rem; }
    .ai-label { display: block; font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 0.375rem; }
    .ai-title { font-size: 1.25rem; font-weight: 700; }
    .ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .ai-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 0.75rem; background: rgba(139,92,246,0.04); border: 1px solid rgba(139,92,246,0.12); border-radius: 12px; transition: all 0.2s ease; }
    .ai-card:hover { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.25); transform: translateY(-2px); }
    .ai-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(139,92,246,0.15); border-radius: 10px; margin-bottom: 0.75rem; }
    .ai-icon svg { width: 20px; height: 20px; color: var(--violet-light); }
    .ai-card h3 { font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.375rem; }
    .ai-card p { font-size: 0.6875rem; color: var(--gray-400); line-height: 1.45; }

    /* INDUSTRIES */
    .industries-block { margin-bottom: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .industries-label { display: block; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 0.75rem; }
    .industries-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .industries-tags span { font-size: 0.7rem; padding: 0.4rem 0.75rem; background: var(--gray-800); border: 1px solid rgba(139,92,246,0.3); border-radius: 100px; color: rgba(255,255,255,0.7); transition: all 0.15s ease; }
    .industries-tags span:hover { background: var(--violet); border-color: var(--violet); color: var(--white); }

    /* FOOTER */
    .panel-footer { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .footer-contact { margin-bottom: 1rem; font-size: 0.75rem; color: var(--gray-400); }
    .footer-contact a { color: var(--white); text-decoration: none; }
    .footer-contact a:hover { color: var(--violet-light); }
    .footer-links { display: flex; gap: 1.25rem; margin-bottom: 1rem; }
    .footer-links a { font-size: 0.6875rem; color: var(--gray-400); text-decoration: none; }
    .footer-links a:hover { color: var(--white); }
    .footer-copyright { font-size: 0.625rem; color: rgba(255,255,255,0.3); }
}

/* LARGE DESKTOP */
@media (min-width: 1400px) {
    .feed { max-width: 500px; }
    .content-inner { max-width: 640px; padding: 5rem 4rem 3rem; }
    .headline { font-size: 4rem; }
    .stat-number { font-size: 3.5rem; }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (hover: hover) {
    .video-slide:hover .video-meta { transform: translateY(-5px); }
    .video-meta { transition: transform 0.3s ease; }
}

/* ============================================
   DEMO MODAL
   ============================================ */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.demo-modal.active { display: flex; }

.demo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.demo-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    color: #888;
    cursor: pointer;
    transition: color 0.15s ease;
}
.demo-modal-close:hover { color: #333; }

.demo-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #F59E0B;
    margin-bottom: 0.5rem;
}

.demo-modal-subtitle {
    font-size: 1rem;
    color: #8B5CF6;
    margin-bottom: 1.5rem;
}

.demo-form .form-group {
    margin-bottom: 1.25rem;
}

.demo-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8B5CF6;
    margin-bottom: 0.375rem;
}

.demo-form .required { color: #EF4444; }

.demo-form input,
.demo-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-form input:focus,
.demo-form select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.demo-form input::placeholder { color: #9ca3af; }

.demo-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #8B5CF6;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.demo-submit-btn:hover {
    background: #7C3AED;
    transform: translateY(-2px);
}
