/* =========================================
   WowoApp — Elite Coming Soon
========================================= */

:root {
    color-scheme: dark;
    /* Dark: warmer, NOT pitch black */
    --bg-deep: #131318;
    --bg-surface: #1a1a22;
    --bg-elevated: #242430;
    --text-primary: #eaeaf0;
    --text-muted: #9494a8;
    --accent: #8b6cff;
    --accent-hover: #a48bff;
    --accent-soft: rgba(139, 108, 255, 0.14);
    --accent-glow: rgba(139, 108, 255, 0.35);
    --glass-bg: rgba(36, 36, 48, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(20, 20, 28, 0.5);
    --social-bg: rgba(42, 42, 56, 0.7);
    --social-border: rgba(255, 255, 255, 0.1);
    --social-color: #c4c4d4;
    --footer-text: #8888a0;
}

[data-theme="light"] {
    color-scheme: light;
    --bg-deep: #f0f0f5;
    --bg-surface: #ffffff;
    --bg-elevated: #e6e6ee;
    --text-primary: #1a1a24;
    --text-muted: #5e5e74;
    --accent: #7054e0;
    --accent-hover: #5a3fc8;
    --accent-soft: rgba(112, 84, 224, 0.1);
    --accent-glow: rgba(112, 84, 224, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(230, 230, 238, 0.6);
    --social-bg: rgba(230, 230, 240, 0.8);
    --social-border: rgba(0, 0, 0, 0.08);
    --social-color: #4a4a60;
    --footer-text: #6a6a80;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden; position: relative;
    -webkit-font-smoothing: antialiased;
    /* Smooth theme transition */
    transition: background-color 0.5s ease, color 0.4s ease;
}

/* Smooth content transition for lang/theme changes */
.content-wrapper, .footer, .top-nav {
    transition: opacity 0.3s ease, background-color 0.5s ease, color 0.4s ease, border-color 0.4s ease;
}
.content-wrapper.transitioning { opacity: 0; transform: translateY(4px); }

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed; width: 280px; height: 280px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(139,108,255,0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9999; opacity: 0;
    transition: opacity 0.5s ease;
    will-change: left, top;
}
body:hover .cursor-glow { opacity: 1; }
[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(112,84,224,0.06) 0%, transparent 70%);
}

/* --- Mesh BG --- */
.mesh-bg {
    position: fixed; inset: 0; overflow: hidden;
    z-index: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}
.mesh-blob {
    position: absolute; border-radius: 50%;
    filter: blur(110px); will-change: transform;
}
.blob-1 {
    width: 40vw; height: 40vw; top: -12%; left: -8%;
    background: rgba(139, 108, 255, 0.14);
    animation: drift 22s ease-in-out infinite alternate;
}
.blob-2 {
    width: 30vw; height: 30vw; bottom: -8%; right: -8%;
    background: rgba(255, 100, 150, 0.09);
    animation: drift 22s ease-in-out infinite alternate-reverse;
}
.blob-3 {
    width: 22vw; height: 22vw; top: 50%; left: 55%;
    background: rgba(60, 200, 160, 0.07);
    animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(3%, 3%, 0) scale(1.06); }
}

/* --- Nav --- */
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 5%; position: relative; z-index: 100;
}
.logo-text {
    font-family: 'Outfit', sans-serif; font-weight: 900;
    font-size: 1.4rem; letter-spacing: 2px; text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.controls { display: flex; gap: 0.5rem; align-items: center; }

/* --- Pill Toggles --- */
.toggle-pill {
    display: flex; align-items: center;
    background: var(--social-bg);
    border: 1px solid var(--social-border);
    border-radius: 24px; padding: 3px;
    cursor: pointer; position: relative;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s,
                background-color 0.4s ease;
    user-select: none;
}
.toggle-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(139, 108, 255, 0.15);
}
.toggle-pill:active { transform: scale(0.94); }

/* Lang pill */
.lang-pill { width: 68px; height: 30px; }
.lang-pill .pill-slider {
    position: absolute; top: 3px;
    width: 30px; height: 24px; border-radius: 16px;
    background: var(--accent);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(139,108,255,0.45);
}
.lang-pill[data-lang="en"] .pill-slider { left: 3px; }
.lang-pill[data-lang="tr"] .pill-slider { left: 35px; }

.lang-pill .pill-label {
    position: relative; z-index: 2;
    width: 30px; text-align: center;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 0.65rem; letter-spacing: 0.5px;
    transition: color 0.3s ease; line-height: 24px;
}
.lang-pill[data-lang="en"] .pill-label:first-of-type { color: #fff; }
.lang-pill[data-lang="en"] .pill-label:last-of-type  { color: var(--text-muted); }
.lang-pill[data-lang="tr"] .pill-label:first-of-type { color: var(--text-muted); }
.lang-pill[data-lang="tr"] .pill-label:last-of-type  { color: #fff; }

/* Theme pill */
.theme-pill { width: 58px; height: 30px; }
.theme-pill .pill-slider {
    position: absolute; top: 3px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(139,108,255,0.45);
}
[data-theme="dark"] .theme-pill .pill-slider  { left: 3px; }
[data-theme="light"] .theme-pill .pill-slider { left: 31px; }

.theme-pill .pill-icon {
    position: relative; z-index: 2;
    width: 24px; text-align: center;
    font-size: 0.7rem; line-height: 24px;
    transition: color 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] .theme-pill .pill-icon:first-child  { color: #fff; transform: rotate(0deg); }
[data-theme="dark"] .theme-pill .pill-icon:last-child   { color: var(--text-muted); transform: rotate(0deg); }
[data-theme="light"] .theme-pill .pill-icon:first-child { color: var(--text-muted); transform: rotate(-40deg); }
[data-theme="light"] .theme-pill .pill-icon:last-child  { color: #fff; transform: rotate(360deg); }

/* --- Layout --- */
.container {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 0.5rem 5% 4rem; position: relative; z-index: 10;
    max-width: 1060px; margin: 0 auto; width: 100%;
}
@media (min-width: 920px) {
    .container {
        flex-direction: row-reverse;
        justify-content: space-between; gap: 3rem;
    }
    .mascot-wrapper { flex: 0 0 42%; }
    .content-wrapper { flex: 1; text-align: left; }
    .social-links { justify-content: flex-start; }
}

/* --- Media Area --- */
.mascot-wrapper {
    position: relative; width: 100%; max-width: 400px;
    margin-bottom: 2rem; display: flex;
    justify-content: center; align-items: center;
}
.glow-circle {
    position: absolute; width: 240px; height: 240px;
    background: var(--accent); border-radius: 50%;
    filter: blur(90px); opacity: 0.18; z-index: 0;
    animation: pulseGlow 5s ease-in-out infinite alternate;
    will-change: transform, opacity;
}
@keyframes pulseGlow {
    0%   { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.12); opacity: 0.28; }
}
.mascot-media {
    width: 100%; max-width: 340px; height: auto;
    max-height: 58vh; object-fit: contain;
    border-radius: 22px; z-index: 2;
    will-change: transform;
    animation: levitate 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
@keyframes levitate {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -10px, 0); }
}

/* --- Vote Bubbles --- */
.vote-bubble {
    position: absolute; z-index: 5;
    width: 48px; height: 48px;
    display: flex; justify-content: center; align-items: center;
    background: var(--social-bg); border: 1px solid var(--social-border);
    backdrop-filter: blur(10px); border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease, background 0.3s ease;
    will-change: transform;
    animation: bobVote 5s cubic-bezier(0.45,0,0.55,1) infinite alternate;
}
.vote-bubble:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 8px 24px var(--accent-glow);
    background: var(--accent-soft);
}
.vote-bubble:active { transform: scale(0.85) !important; }
.vote-bubble.popped { animation: popBurst 0.5s ease forwards !important; }
@keyframes popBurst {
    0%   { transform: scale(1); opacity: 1; }
    40%  { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}
.vote-bubble.respawn { animation: respawnIn 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards !important; }
@keyframes respawnIn {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.vote-left { top: 12%; left: -8%; animation-duration: 6s; }
.vote-right { bottom: 12%; right: -8%; animation-duration: 5s; animation-direction: alternate-reverse; }
@keyframes bobVote {
    0%   { transform: translate3d(0,0,0); }
    100% { transform: translate3d(0,-8px,0); }
}

/* Pop counter — no stacking, resets */
.pop-counter {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent); color: #fff;
    font-size: 0.55rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.pop-counter.visible { opacity: 1; transform: scale(1); }
.pop-counter.pulse { animation: counterPulse 0.3s ease; }
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Particles */
.particle {
    position: fixed; width: 6px; height: 6px;
    border-radius: 50%; pointer-events: none; z-index: 9998;
    animation: particleFly 0.6s ease-out forwards;
}
@keyframes particleFly {
    0%   { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0); }
}

/* --- Content --- */
.content-wrapper {
    text-align: center; max-width: 500px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.badge-label {
    display: inline-block;
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2.5px; color: var(--accent);
    background: var(--accent-soft);
    padding: 0.3rem 0.9rem; border-radius: 20px;
    margin-bottom: 1.1rem; border: 1px solid rgba(139,108,255,0.15);
}

.main-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08; margin-bottom: 1rem; font-weight: 800;
    letter-spacing: -0.5px;
}
.main-title .highlight {
    background: linear-gradient(135deg, var(--accent), #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.95rem; line-height: 1.65;
    color: var(--text-muted); margin-bottom: 1.75rem;
    font-weight: 400;
}

/* --- Store Badges --- */
.store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.35rem;
}
.store-badge {
    width: 176px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 0.78rem;
    padding: 0.62rem 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.store-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.13), transparent 42%);
    pointer-events: none;
}
.store-icon {
    width: 29px;
    min-width: 29px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.store-icon i {
    font-size: 1.85rem;
    line-height: 1;
}
.store-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.store-kicker {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0;
    opacity: 0.82;
    white-space: nowrap;
}
.store-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}
.store-badge-apple {
    background: linear-gradient(180deg, #17171b 0%, #050507 100%);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12);
}
.store-badge-apple:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.38);
    box-shadow: 0 20px 42px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.16);
}
.store-badge-google {
    cursor: default;
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.store-badge-google .store-icon i {
    background: linear-gradient(135deg, #34a853 0%, #34a853 28%, #fbbc05 29%, #fbbc05 52%, #ea4335 53%, #ea4335 72%, #4285f4 73%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.store-badge-google .store-kicker,
.store-badge-google .store-name {
    opacity: 0.72;
}
.store-status {
    position: absolute;
    top: 6px;
    right: 7px;
    z-index: 2;
    padding: 0.14rem 0.4rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* --- Social (VISIBLE, centered) --- */
.social-links {
    display: flex; gap: 0.6rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.social-icon {
    display: flex; justify-content: center; align-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--social-bg);
    border: 1px solid var(--social-border);
    color: var(--social-color);
    font-size: 1rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon:hover {
    color: #fff; background: var(--accent);
    border-color: var(--accent); transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* --- Footer (VISIBLE) --- */
.footer {
    position: relative; width: 100%;
    padding: 1rem 5%;
    border-top: 1px solid var(--social-border); z-index: 10;
    transition: border-color 0.4s, background-color 0.4s;
}
.footer-content {
    max-width: 1060px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem; font-size: 0.75rem; color: var(--footer-text);
    transition: color 0.4s;
}
.footer-links {
    display: flex; gap: 1rem 1.5rem;
    flex-wrap: wrap; justify-content: center;
}
.footer-links a {
    color: var(--footer-text); text-decoration: none;
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }
@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; }
}

/* --- Responsive --- */

/* Mobile first: stacked layout */
@media (max-width: 480px) {
    .top-nav { padding: 0.8rem 4%; }
    .logo-text { font-size: 1.1rem; letter-spacing: 1.5px; }
    .controls { gap: 0.35rem; }
    .lang-pill { width: 60px; height: 28px; }
    .lang-pill .pill-slider { width: 26px; height: 22px; }
    .lang-pill[data-lang="tr"] .pill-slider { left: 31px; }
    .lang-pill .pill-label { width: 26px; font-size: 0.6rem; line-height: 22px; }
    .theme-pill { width: 52px; height: 28px; }
    .theme-pill .pill-slider { width: 22px; height: 22px; }
    [data-theme="light"] .theme-pill .pill-slider { left: 27px; }
    .theme-pill .pill-icon { width: 22px; font-size: 0.65rem; line-height: 22px; }

    .container {
        padding: 0.5rem 5% 2rem;
        flex-direction: column;
    }
    .content-wrapper { max-width: 100%; order: 1; }
    .mascot-wrapper { order: 2; max-width: 220px; margin-bottom: 1rem; margin-top: 0.5rem; }
    .mascot-media { border-radius: 16px; max-height: 45vh; }

    .badge-label { font-size: 0.58rem; letter-spacing: 2px; padding: 0.25rem 0.75rem; }
    .main-title { font-size: 1.7rem; margin-bottom: 0.75rem; }
    .subtitle { font-size: 0.82rem; margin-bottom: 1.25rem; }
    .store-links { gap: 0.55rem; }
    .store-badge { width: min(100%, 182px); min-height: 52px; }
    .store-icon { width: 26px; min-width: 26px; }
    .store-icon i { font-size: 1.62rem; }
    .store-kicker { font-size: 0.53rem; }
    .store-name { font-size: 1.02rem; }

    .social-links { margin-top: 0.4rem; gap: 0.5rem; }
    .social-icon { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 8px; }

    /* Vote bubbles: smaller & safe position */
    .vote-bubble { width: 34px; height: 34px; font-size: 0.9rem; }
    .vote-left { top: 5%; left: -4%; }
    .vote-right { bottom: 5%; right: -4%; }
    .pop-counter { width: 15px; height: 15px; font-size: 0.5rem; }

    .footer { padding: 0.8rem 4%; }
    .footer-content { font-size: 0.68rem; }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 919px) {
    .container { padding: 1rem 5% 3rem; flex-direction: column; }
    .content-wrapper { max-width: 500px; order: 1; }
    .mascot-wrapper { max-width: 300px; order: 2; margin-top: 0.5rem; }
    .mascot-media { max-height: 50vh; }
    .vote-left { top: 8%; left: -5%; }
    .vote-right { bottom: 8%; right: -5%; }
}
