/* WhiteVue 360° Marketing Reel */

:root {
    --r-orange: #ff9c00;
    --r-black: #070707;
    --r-ink: #f5f5f3;
    --r-muted: rgba(255, 255, 255, 0.62);
    --font-d: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --font-b: "Source Sans 3", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

html, body { margin: 0; min-height: 100%; }

.reel-body {
    font-family: var(--font-b);
    background: #111;
    color: var(--r-ink);
    -webkit-font-smoothing: antialiased;
}

.reel-body.is-rtl { font-family: "IBM Plex Sans Arabic", var(--font-b); }

.accent-360 { color: var(--r-orange); }

.reel-chrome {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1.1rem;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.reel-back, .reel-chrome-right a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--font-d);
    font-size: 0.82rem;
    font-weight: 500;
}

.reel-back:hover, .reel-chrome-right a:hover { color: var(--r-orange); }

.reel-chrome-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.reel-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.reel-langs a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem !important;
}

.reel-langs a.is-active {
    border-color: var(--r-orange);
    color: var(--r-orange) !important;
}

.reel-langs img {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 1px;
}

.reel-stage {
    position: relative;
    width: min(1100px, 100% - 1.5rem);
    aspect-ratio: 16 / 9;
    margin: 1rem auto;
    border-radius: 18px;
    overflow: hidden;
    background: var(--r-black);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 156, 0, 0.2);
}

.reel-stage.is-fs {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    border: none;
}

.reel-bg { position: absolute; inset: 0; pointer-events: none; }

.reel-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
}

.reel-glow {
    position: absolute;
    width: 55%;
    height: 55%;
    top: -10%;
    inset-inline-end: -8%;
    background: radial-gradient(circle, rgba(255, 156, 0, 0.28), transparent 65%);
    animation: glowPulse 6s ease-in-out infinite;
}

.reel-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 156, 0, 0.18);
    border-radius: 50%;
    bottom: -80px;
    inset-inline-start: -60px;
    animation: orbitSpin 28s linear infinite;
}

.reel-orbit::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--r-orange);
    top: 20px;
    inset-inline-start: 50%;
    box-shadow: 0 0 18px var(--r-orange);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

.reel-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
    z-index: 2;
}

.reel-scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.reel-kicker {
    margin: 0 0 0.65rem;
    font-family: var(--font-d);
    font-size: clamp(0.72rem, 1.4vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--r-orange);
}

.reel-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-d);
    font-size: clamp(1.55rem, 4.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    max-width: 16ch;
    text-wrap: balance;
}

.reel-title.mega {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    max-width: 12ch;
}

.reel-sub {
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    color: var(--r-muted);
    max-width: 36ch;
    line-height: 1.5;
}

.reel-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.wv-logo-img.wv-wordmark--reel {
    height: clamp(36px, 5vw, 56px);
    width: auto;
    max-width: 260px;
}

.reel-360 {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--r-orange);
    letter-spacing: -0.04em;
    text-shadow: 0 0 24px rgba(255, 156, 0, 0.4);
}

.reel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
    max-width: 640px;
}

.reel-chips span {
    font-family: var(--font-d);
    font-size: clamp(0.78rem, 1.3vw, 0.95rem);
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    animation: chipIn 0.5s ease both;
}

.reel-chips.bad span { border-color: rgba(255, 90, 90, 0.35); color: #ffb4b4; }
.reel-chips.good span {
    border-color: rgba(255, 156, 0, 0.4);
    background: rgba(255, 156, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.reel-chips.good i { color: var(--r-orange); }

.reel-scene.is-active .reel-chips span:nth-child(1) { animation-delay: 0.15s; }
.reel-scene.is-active .reel-chips span:nth-child(2) { animation-delay: 0.3s; }
.reel-scene.is-active .reel-chips span:nth-child(3) { animation-delay: 0.45s; }
.reel-scene.is-active .reel-chips span:nth-child(4) { animation-delay: 0.6s; }

@keyframes chipIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.reel-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    max-width: 420px;
    font-family: var(--font-d);
    font-weight: 700;
    color: var(--r-orange);
}

.reel-meter-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.reel-meter-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffb84d, var(--r-orange));
    border-radius: inherit;
}

.reel-scene.is-active .reel-meter-bar i {
    animation: fillMeter 2.8s ease forwards 0.35s;
}

@keyframes fillMeter { to { width: 100%; } }

.reel-journey {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.reel-journey article {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 156, 0, 0.28);
    border-radius: 14px;
    padding: 0.9rem 0.75rem;
    animation: chipIn 0.5s ease both;
}

.reel-scene.is-active .reel-journey article:nth-child(1) { animation-delay: 0.1s; }
.reel-scene.is-active .reel-journey article:nth-child(2) { animation-delay: 0.25s; }
.reel-scene.is-active .reel-journey article:nth-child(3) { animation-delay: 0.4s; }
.reel-scene.is-active .reel-journey article:nth-child(4) { animation-delay: 0.55s; }

.reel-journey strong {
    display: block;
    font-family: var(--font-d);
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: var(--r-orange);
    margin-bottom: 0.35rem;
}

.reel-journey span {
    font-size: clamp(0.75rem, 1.2vw, 0.88rem);
    color: var(--r-muted);
    line-height: 1.35;
}

.reel-list {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.25rem;
    max-width: 720px;
}

.reel-list li {
    position: relative;
    padding-inline-start: 1.25rem;
    font-family: var(--font-d);
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 500;
}

.reel-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--r-orange);
    font-weight: 700;
}

.reel-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1.2rem;
    max-width: 700px;
}

.reel-why div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 156, 0, 0.08);
    border: 1px solid rgba(255, 156, 0, 0.25);
    font-family: var(--font-d);
    font-size: clamp(0.8rem, 1.3vw, 0.98rem);
    font-weight: 500;
}

.reel-why i {
    color: var(--r-orange);
    font-size: 1.2rem;
}

.reel-cta-btn {
    display: inline-flex;
    margin-top: 1.25rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--r-orange);
    color: #0a0a0a;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(255, 156, 0, 0.3);
}

.reel-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-top: 1.1rem;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--r-muted);
    font-family: var(--font-d);
}

.reel-controls {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    padding: 0.75rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.reel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-family: var(--font-d);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.reel-btn.primary {
    background: var(--r-orange);
    border-color: var(--r-orange);
    color: #0a0a0a;
}

.reel-btn:hover { filter: brightness(1.08); }

.reel-time {
    margin-inline-start: auto;
    font-family: var(--font-d);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-variant-numeric: tabular-nums;
}

.reel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 6;
}

.reel-progress i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--r-orange);
}

.reel-download-bar {
    width: min(1100px, 100% - 1.5rem);
    margin: 0 auto 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.reel-mp4 {
    width: 100%;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(255, 156, 0, 0.25);
}

.reel-script-panel {
    width: min(1100px, 100% - 1.5rem);
    margin: 0 auto 2.5rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.15rem 1.25rem 1.35rem;
}

.reel-script-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.reel-script-head h3 {
    margin: 0;
    font-family: var(--font-d);
    font-size: 1.05rem;
}

.reel-script-head span {
    font-size: 0.78rem;
    color: var(--r-orange);
    font-family: var(--font-d);
    font-weight: 600;
}

.reel-hint {
    margin: 0.55rem 0 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.reel-script-panel pre {
    margin: 0 0 0.9rem;
    white-space: pre-wrap;
    font-family: var(--font-b);
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 1rem;
}

@media (max-width: 800px) {
    .reel-stage { aspect-ratio: 9 / 14; max-height: 78vh; }
    .reel-journey, .reel-list, .reel-why { grid-template-columns: 1fr; }
    .reel-title { max-width: none; }
    .reel-langs span, .reel-langs a { font-size: 0; }
    .reel-langs a { padding: 0.3rem; }
    .reel-langs img { width: 18px; height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .reel-glow, .reel-orbit, .reel-chips span, .reel-journey article, .reel-meter-bar i {
        animation: none !important;
    }
    .reel-scene { transition: none; }
}
