/* ============================================================
   Horoscopia — nav-footer.css
   Navigation, Language Switcher, Footer, and Mobile Overlay
   
   Usage: <link rel="stylesheet" href="/assets/css/nav-footer.css">
   ============================================================ */


/* ==========================================================
   1. NAVIGATION BAR
   ========================================================== */
.hero h1{
    text-align: left !important;
}



.addict-info {
    max-height: 40px;
    -webkit-transition: max-height 1s ease-out;
    -o-transition: max-height 1s ease-out;
    transition: max-height 1s ease-out;
    overflow: hidden;
    color: white;
    text-align: center;
    font-size: 14px;
    background: #662D8C !important;
    background: -o-linear-gradient(right, #ED1E79, #662D8C) !important;
    background: -webkit-gradient(linear, left top, right top, from(#ED1E79), to(#662D8C)) !important;
    background: -o-linear-gradient(left, #ED1E79, #662D8C) !important;
    background: linear-gradient(to right, #ED1E79, #662D8C) !important;
    margin-bottom: 7px;
}

/* production .nav.scrolled padding:10px 0 */
/* production .nav padding: 16px 0;  */

.nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000;
    /* padding: 16px 0; */
    padding: 0;
    background: rgba(11,13,26,0.85);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    transition: transform 0.3s ease, padding 0.3s, background 0.3s;
}

/* Hide nav when scrolling down */
.nav.nav-hidden {
    transform: translateY(-100%);
}

/* Show nav when scrolling up or at top */
.nav.nav-visible {
    transform: translateY(0);
}


.nav.scrolled {
    /* padding: 10px 0; */
    padding: 0;
    background: rgba(11,13,26,0.95);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 700; color: white;
    display: flex; align-items: center; gap: 10px;
}
.nav-logo img {
    width: 50px; height: 50px; object-fit: contain;
}

/* Desktop links */
.nav-links {
    display: flex; align-items: center; gap: 22px;
    white-space: nowrap;               /* never let items wrap to a 2nd line */
}
.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--c-text-muted);
    letter-spacing: 0.02em; transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: white; }

/* On desktop the Live button is icon-only (label length varies per language) */
.nav-links .nav-live span { display: none; }

/* CTA button (shared between desktop & mobile) */
.nav-cta {
    background: var(--c-gradient); color: white !important;
    padding: 9px 22px; border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block; text-decoration: none;
    white-space: nowrap;               /* keep the CTA on a single line */
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(135,87,226,0.35);
}

/* ---- Live button (broadcast icon) ---- */
.nav-live {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-text-muted) !important;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(254,44,85,0.28);
    background: rgba(254,44,85,0.06);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-live:hover {
    color: #fff !important;
    border-color: rgba(254,44,85,0.55);
    background: rgba(254,44,85,0.12);
}
.lf-menu-icon {
    width: 20px; height: 20px; display: block;
    overflow: visible;
}
.lf-menu-icon .stroke { stroke: #fe2c55; }
.lf-menu-icon .lf-wave {
    transform-origin: 12px 12px;
    animation: lf-wave-pulse 1.6s ease-in-out infinite;
}
.lf-menu-icon .lf-wave-r,
.lf-menu-icon .lf-wave-r2 { animation-delay: 0.1s; }
.lf-menu-icon .lf-wave-l2,
.lf-menu-icon .lf-wave-r2 { animation-delay: 0.2s; }
.lf-menu-icon .lf-live-dot {
    fill: #fe2c55;
    transform-origin: 12px 12px;
    animation: lf-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes lf-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.25); opacity: 0.75; }
}
@keyframes lf-wave-pulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .lf-menu-icon .lf-wave,
    .lf-menu-icon .lf-live-dot { animation: none; }
}

/* Mobile menu Live row: keep the animated icon aligned like the text glyphs */
.mobile-nav-live .mobile-nav-icon { display: inline-flex; }
.mobile-nav-live .lf-menu-icon { width: 24px; height: 24px; }


/* ==========================================================
   2. LANGUAGE SWITCHER (Desktop dropdown)
   ========================================================== */
.lang-switcher {
    position: relative; font-size: 0.8125rem;
}
.lang-toggle {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    padding: 6px 12px; border-radius: 10px;
    font-size: 0.8125rem; font-family: inherit;
    cursor: pointer; transition: all 0.25s ease;
    white-space: nowrap;
}
.lang-toggle:hover,
.lang-switcher.open .lang-toggle {
    background: rgba(255,255,255,0.08);
    border-color: rgba(164,108,243,0.3);
    color: #e2e4f0;
}
.lang-toggle .lang-globe {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
}
.lang-toggle .lang-globe svg {
    width: 16px; height: 16px; stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.lang-toggle .lang-flag {
    font-size: 1rem; line-height: 1;
}
.lang-toggle .lang-label {
    font-weight: 500; letter-spacing: 0.02em;
}
.lang-toggle .lang-chevron {
    display: flex; align-items: center; margin-left: 2px;
    transition: transform 0.3s ease;
}
.lang-toggle .lang-chevron svg {
    width: 12px; height: 12px; stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.lang-switcher.open .lang-toggle .lang-chevron {
    transform: rotate(180deg);
}
.lang-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #181c35; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 6px;
    min-width: 200px; z-index: 200;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(135,87,226,0.08);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.lang-switcher.open .lang-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}
.lang-dropdown-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px 6px;
    font-size: 0.625rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--c-text-muted);
}
.lang-dropdown-header svg {
    width: 12px; height: 12px; stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    font-size: 0.8125rem; color: var(--c-text);
    cursor: pointer; transition: background 0.18s ease;
    text-decoration: none; position: relative;
}
.lang-option:hover {
    background: rgba(255,255,255,0.06);
}
.lang-option.active {
    background: rgba(135,87,226,0.12);
    color: white;
}
.lang-option .lf {
    font-size: 1.15rem; line-height: 1; flex-shrink: 0;
    width: 22px; text-align: center;
}
.lang-option .ln { font-weight: 500; flex: 1; }
.lang-option .lc {
    font-size: 0.6875rem; color: var(--c-text-muted);
    font-weight: 500; letter-spacing: 0.04em;
}


/* ==========================================================
   3. HAMBURGER BUTTON
   ========================================================== */
.hamburger {
    display: none;
    background: none; border: none;
    padding: 8px; cursor: pointer;
    z-index: 110;
    flex-direction: column;
    gap: 5px; align-items: center; justify-content: center;
    width: 40px; height: 40px;
}
.hamburger-line {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    transform-origin: center;
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide old mobile-menu button */
.mobile-menu { display: none !important; }


/* ==========================================================
   4. FULLSCREEN MOBILE OVERLAY (Stripe-style)
   ========================================================== */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(11, 13, 26, 0.98);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-overlay.open {
    opacity: 1; visibility: visible;
}
.mobile-overlay-inner {
    min-height: 100%;
    display: flex; flex-direction: column;
    padding: 0 24px;
}

/* Overlay header */
.mobile-overlay-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-close {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    cursor: pointer; transition: all 0.25s;
}
.mobile-close:hover {
    background: rgba(135, 87, 226, 0.15);
    border-color: rgba(135, 87, 226, 0.3);
    color: #fff;
}

/* Nav links inside overlay */
.mobile-nav-links {
    display: flex; flex-direction: column;
    padding: 32px 0 24px; flex: 1;
}
.mobile-nav-link {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 8px;
    font-size: 1.25rem; font-weight: 600; color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.3s;
    /* Staggered entrance */
    opacity: 0; transform: translateY(16px);
}
.mobile-overlay.open .mobile-nav-link {
    opacity: 1; transform: translateY(0);
}
.mobile-overlay.open .mobile-nav-link[data-delay="1"] { transition: opacity 0.4s 0.08s, transform 0.4s 0.08s, color 0.2s, padding-left 0.3s; }
.mobile-overlay.open .mobile-nav-link[data-delay="2"] { transition: opacity 0.4s 0.14s, transform 0.4s 0.14s, color 0.2s, padding-left 0.3s; }
.mobile-overlay.open .mobile-nav-link[data-delay="3"] { transition: opacity 0.4s 0.20s, transform 0.4s 0.20s, color 0.2s, padding-left 0.3s; }
.mobile-overlay.open .mobile-nav-link[data-delay="4"] { transition: opacity 0.4s 0.26s, transform 0.4s 0.26s, color 0.2s, padding-left 0.3s; }
.mobile-overlay.open .mobile-nav-link[data-delay="5"] { transition: opacity 0.4s 0.32s, transform 0.4s 0.32s, color 0.2s, padding-left 0.3s; }

.mobile-nav-link:hover {
    color: #a46cf3; padding-left: 16px;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-icon {
    font-size: 0.875rem; color: #8757E2;
    width: 24px; text-align: center; opacity: 0.7;
}

/* CTA inside overlay */
.mobile-nav-cta { padding: 8px 0 28px; }
.mobile-cta-btn {
    display: block; text-align: center; width: 100%;
    padding: 16px 28px; font-size: 1rem; border-radius: 999px;
}

/* Language grid inside overlay */
.mobile-lang-section {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-lang-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 14px;
}
.mobile-lang-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mobile-lang {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 8px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8125rem; font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none; transition: all 0.2s;
}
.mobile-lang:hover {
    background: rgba(135, 87, 226, 0.08);
    border-color: rgba(135, 87, 226, 0.25);
    color: #fff;
}
.mobile-lang.active {
    background: rgba(135, 87, 226, 0.12);
    border-color: rgba(135, 87, 226, 0.3);
    color: #fff;
}

/* Bottom links inside overlay */
.mobile-bottom-links {
    padding: 20px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.mobile-bottom-links a {
    font-size: 0.75rem; color: rgba(255,255,255,0.25);
    text-decoration: none; transition: color 0.2s;
}
.mobile-bottom-links a:hover { color: rgba(255,255,255,0.6); }
.mobile-dot { color: rgba(255,255,255,0.15); margin: 0 8px; }


/* ==========================================================
   5. FOOTER
   ========================================================== */
.footer {
    background: var(--c-bg-card);
    border-top: 1px solid var(--c-border);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand p {
    font-size: 0.875rem; color: var(--c-text-muted);
    margin-top: 12px; line-height: 1.5;padding-right: 40px;
}
.footer h4 {
    font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-text-muted); margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.footer-links a {
    display: block; font-size: 0.875rem; color: var(--c-text);
    padding: 4px 0; transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-accent-1); }
.footer-bottom {
    border-top: 1px solid var(--c-border); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--c-text-muted); }
.footer-legal { display: flex; flex-direction: column; gap: 3px; }
.footer-legal p { line-height: 1.5; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--c-bg-elevated);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted);
    transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--c-accent-1); color: white; }
.footer-social svg { flex-shrink: 0; }

/* Mini footer (for quiz and simple pages) */
.footer-mini {
    text-align: center; padding: 20px 24px;
    font-size: 0.75rem; color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-mini a {
    color: rgba(255,255,255,0.35); text-decoration: none;
    transition: color 0.2s;
}
.footer-mini a:hover { color: rgba(255,255,255,0.7); }


/* ==========================================================
   6. STORE BUTTONS (App Store / Google Play)
   ========================================================== */
.store-buttons {
    display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center;
}
.store-btn {
    display: inline-flex; align-items: center; gap: 14px;
    background: white;
    max-width: 210px !important;
    color: #000;
    padding: 10px 15px !important;
    border-radius: 16px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.store-btn svg {
    width: 32px; height: 32px;
    flex-shrink: 0;
}
.store-btn div {
    display: flex; flex-direction: column;
    align-items: flex-start; line-height: 1.1;
}
.store-btn span {
    font-size: 0.6875rem; /* 11px */
    font-weight: 400;
    color: #000;
    margin-bottom: 2px;
}
.store-btn b {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #000;
    letter-spacing: -0.02em;
}

/* Responsive - stack on mobile */
@media (max-width: 640px) {
    .store-buttons {
        flex-direction: column;
        width: 100%;
    }
    .store-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================
   7. DOWNLOAD MODAL
   ========================================================== */
.dl-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    visibility: hidden;
    transition: visibility 0.4s;           /* holds children visible while closing */
}
.dl-modal.open {
    visibility: visible;
}
/* Backdrop fades AND blurs together via its own transition — the blur ramps
   smoothly instead of snapping in at the end of a parent opacity fade. */
.dl-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease,
                backdrop-filter 0.4s ease,
                -webkit-backdrop-filter 0.4s ease;
}
.dl-modal.open .dl-modal-backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dl-modal-content {
    position: relative;
    background: linear-gradient(170deg, #181c35 0%, #12152a 100%);
    border: 1px solid rgba(135, 87, 226, 0.15);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 440px; width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(135,87,226,0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
}
.dl-modal.open .dl-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.dl-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s;
}
.dl-modal-close:hover {
    background: rgba(135, 87, 226, 0.15);
    border-color: rgba(135, 87, 226, 0.3);
    color: #fff;
}
.dl-modal-icon {
    font-size: 3rem; margin-bottom: 16px;
}
.dl-modal-title {
    font-size: 1.5rem; color: #fff;
    margin-bottom: 10px;
}
.dl-modal-desc {
    font-size: 0.875rem; color: #8b8fa8;
    line-height: 1.7; margin-bottom: 28px;
    max-width: 360px; margin-left: auto; margin-right: auto;
}
.dl-modal-buttons {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}
.dl-modal-buttons .store-btn {
    justify-content: center;
    max-width: 210px;
    width: 100%;
}
.dl-modal-free {
    font-size: 0.6875rem; color: rgba(255,255,255,0.25);
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .dl-modal-content { padding: 36px 24px; }
    .dl-modal-title { font-size: 1.25rem; }
}






/* ==========================================================
   #. SHARE
   ========================================================== */
.quiz-share-section {
    margin: 20px 0;
    padding: 8px 0 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.share-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: #a78bfa;
    background: rgba(167,139,250,0.1);
}
.share-btn.x:hover { border-color: #000; color: #000; background: rgba(255,255,255,0.9);}
.share-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-btn.copy:hover { border-color: #a78bfa; color: #a78bfa; }

@media (max-width: 480px) {
    .share-btn {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}






/* ==========================================================
   8. RESPONSIVE — Nav & Footer
   ========================================================== */
/* Nav collapses to the hamburger below 1150px — the desktop bar only shows
   when there's room for the widest translated menu (9 languages vary a lot). */
@media (max-width: 1150px) {
    .nav-links { display: none !important; }
    .hamburger { display: flex; }
}
@media (min-width: 1151px) {
    .hamburger { display: none; }
    .mobile-overlay { display: none !important; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer{padding: 30px;}
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}