/* ═══════════════════════════════════════════════════════════
   PRAT-IL — Professional Header & Footer
   Prime Video–style dark theme · RTL · Fully responsive
═══════════════════════════════════════════════════════════ */

/* ── Shared keyframes ────────────────────────────────────── */
@keyframes border-sweep {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes fade-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   1 · HEADER
════════════════════════════════════════════════════════════ */

/* Suppress the old two-row inner structure */
.site-header-top { display: none !important; }
.site-header-nav-row { display: none !important; }

/* ── Shell ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(13, 17, 23, .9);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transition: background .25s ease, box-shadow .25s ease;
    /* animated accent line */
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.site-header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%, #00a8e1 40%, #48c3e8 50%, #00a8e1 60%, transparent 100%
    );
    background-size: 200% auto;
    animation: border-sweep 6s linear infinite;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(13, 17, 23, .97);
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.site-header.scrolled::after { opacity: 1; }

/* ── Inner layout — single flex row ─────────────────────── */
.site-header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
    font-family: 'Outfit', 'Heebo', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: #fff;
    text-decoration: none;
    direction: ltr;
    flex-shrink: 0;
    margin-inline-end: 32px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: opacity .15s;
}

.logo:hover { opacity: .85; }

.logo span { color: #00a8e1; }

/* ── Main navigation ─────────────────────────────────────── */
.site-main-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 48px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 48px, #000 calc(100% - 24px), transparent 100%);
}
.site-main-nav::-webkit-scrollbar { display: none; }

.site-main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: .87rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    transition: color .15s;
    flex-shrink: 0;
}

.site-main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #00a8e1;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.site-main-nav .nav-link:hover { color: rgba(255,255,255,.9); }
.site-main-nav .nav-link.active { color: #fff; font-weight: 700; }
.site-main-nav .nav-link.active::after { transform: scaleX(1); }

/* ── Action buttons ──────────────────────────────────────── */
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-inline-start: 16px;
}

.hdr-icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    cursor: pointer;
    transition: color .15s, background .15s;
    text-decoration: none;
}

.hdr-icon-btn:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ── Hamburger ───────────────────────────────────────────── */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0 10px;
    transition: background .15s;
}

.site-header__hamburger:hover { background: rgba(255,255,255,.08); }

.site-header__hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: rgba(255,255,255,.75);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1),
                opacity   .3s cubic-bezier(.4,0,.2,1);
}

.site-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Live dot next to logo (added by JS) */
.logo-live-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00d46a;
    box-shadow: 0 0 6px #00d46a;
    margin-inline-start: 5px;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Mobile nav drawer ───────────────────────────────────── */
@media (max-width: 768px) {
    .site-header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .site-main-nav {
        /* slide-down drawer */
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 60px; left: 0; right: 0; bottom: 0;
        background: rgba(13,17,23,.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-mask-image: none;
        mask-image: none;
        /* hidden by default */
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.4,0,.2,1),
                    opacity   .25s ease;
        z-index: 998;
        height: auto;
    }

    .site-main-nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-main-nav .nav-link {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,.05);
        color: rgba(255,255,255,.65);
    }

    .site-main-nav .nav-link::after { display: none; }
    .site-main-nav .nav-link.active { color: #00a8e1; }
    .site-main-nav .nav-link:hover { background: rgba(255,255,255,.04); color: #fff; }

    .site-header__hamburger { display: flex; }

    .logo { margin-inline-end: auto; }
}

/* Light mode header */
:root.light .site-header {
    background: rgba(255,255,255,.92);
    border-bottom-color: rgba(0,0,0,.08);
}

:root.light .logo { color: #0f171e; }
:root.light .logo span { color: #00a8e1; }
:root.light .site-main-nav .nav-link { color: rgba(0,0,0,.55); }
:root.light .site-main-nav .nav-link:hover { color: rgba(0,0,0,.9); }
:root.light .site-main-nav .nav-link.active { color: #0f171e; }
:root.light .hdr-icon-btn { color: rgba(0,0,0,.6); }
:root.light .hdr-icon-btn:hover { background: rgba(0,0,0,.06); color: #0f171e; }

/* ════════════════════════════════════════════════════════════
   2 · FOOTER
════════════════════════════════════════════════════════════ */

.site-footer {
    position: relative;
    background: #0d1117;
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    line-height: 1.6;
}

/* Thin animated accent at the very top */
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px; inset-inline: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%, #00a8e1 30%, #48c3e8 50%, #00a8e1 70%, transparent 100%
    );
    background-size: 200% auto;
    animation: border-sweep 8s linear infinite;
}

/* ── Inner grid ───────────────────────────────────────────── */
.site-footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 32px 40px;
}

@media (max-width: 1024px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 48px 24px 36px;
    }
    .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 20px 28px;
    }
}

/* ── Brand column ─────────────────────────────────────────── */
.site-footer-brand .logo {
    font-size: 1.5rem;
    color: #fff;
    display: inline-flex;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #00a8e1;
    margin-bottom: 10px;
}

.site-footer-brand > p:not(.footer-tagline) {
    color: rgba(255,255,255,.38);
    font-size: .83rem;
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 20px;
}

/* Social icons */
.footer-social-links {
    display: flex;
    gap: 6px;
}

.footer-social-links a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.footer-social-links a:hover {
    background: rgba(0,168,225,.15);
    border-color: rgba(0,168,225,.3);
    color: #00a8e1;
    transform: translateY(-2px);
}

/* ── Nav columns ─────────────────────────────────────────── */
.footer-col { display: flex; flex-direction: column; gap: 0; }

.footer-col__title,
.site-footer-inner > nav > h4,
.footer-social-col > h4 {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-col a,
.site-footer-inner > nav a {
    display: block;
    padding: 6px 0;
    color: rgba(255,255,255,.52);
    text-decoration: none;
    font-size: .86rem;
    transition: color .15s, padding-inline-end .15s;
    border-radius: 4px;
}

.footer-col a:hover,
.site-footer-inner > nav a:hover {
    color: #fff;
    padding-inline-end: 4px;
}

/* Platform links */
.footer-platform-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 6px 12px !important;
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 6px !important;
    color: rgba(255,255,255,.55) !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    transition: background .2s, border-color .2s, color .2s !important;
}

.footer-platform-link:hover {
    background: rgba(0,168,225,.1) !important;
    border-color: rgba(0,168,225,.25) !important;
    color: #00a8e1 !important;
    padding-inline-end: 12px !important;
}

/* Live widget (injected by JS) */
.footer-live-widget {
    margin-top: 16px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(0,168,225,.12);
    border-radius: 10px;
    padding: 12px 14px;
}

.footer-live-widget-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 8px;
}

.footer-live-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: .5px solid rgba(255,255,255,.05);
    font-size: .8rem;
}

.footer-live-row:last-child { border-bottom: none; }
.footer-live-name { color: rgba(255,255,255,.58); }

.footer-live-status {
    display: flex; align-items: center; gap: 5px;
    color: #00d46a;
    font-size: .72rem;
    font-weight: 700;
}

.footer-live-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00d46a;
    box-shadow: 0 0 5px #00d46a;
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Reveal animation ─────────────────────────────────────── */
.footer-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.footer-reveal.is-visible { opacity: 1; transform: none; }

/* ── Bottom bar ───────────────────────────────────────────── */
.site-footer-divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    max-width: 1280px;
    margin: 0 auto;
}

.site-footer-bottom,
.site-footer-bottom-bar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 600px) {
    .site-footer-bottom,
    .site-footer-bottom-bar { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}

.footer-copyright {
    font-size: .75rem;
    color: rgba(255,255,255,.28);
    flex-shrink: 0;
}

.footer-legal-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-nav a {
    font-size: .75rem;
    color: rgba(255,255,255,.28);
    text-decoration: none;
    transition: color .15s;
}

.footer-legal-nav a:hover { color: rgba(255,255,255,.7); }

.footer-legal-nav span { color: rgba(255,255,255,.15); font-size: .7rem; }

.footer-legal-note,
.legal {
    font-size: .73rem;
    color: rgba(255,255,255,.22);
    line-height: 1.55;
    max-width: 480px;
}

/* ════════════════════════════════════════════════════════════
   3 · CONTENT & CARD UPGRADES
════════════════════════════════════════════════════════════ */

/* Scroll progress */
#scroll-progress {
    position: fixed; top: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a8e1, #48c3e8);
    z-index: 1002;
    transition: width 80ms linear;
    width: 0%;
    pointer-events: none;
}

/* Catalog hero */
.catalog-hero {
    text-align: center;
    padding: 56px 24px 28px;
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,168,225,.09);
    border: 1px solid rgba(0,168,225,.22);
    color: #00a8e1;
    font-size: .76rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.catalog-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
}

.catalog-title span {
    color: #00a8e1;
    -webkit-text-fill-color: #00a8e1;
}

.catalog-subtitle {
    font-size: .98rem;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Show card hover */
.show-card {
    will-change: transform;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}

.show-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,168,225,.1) !important;
    border-color: rgba(0,168,225,.18) !important;
}

/* Button ripple */
.show-action-btn {
    position: relative;
    overflow: hidden;
}

.show-action-btn .btn-ripple,
.spotlight-btn .btn-ripple,
.filter-tab .btn-ripple {
    position: absolute;
    border-radius: 50%;
    width: 60px; height: 60px;
    margin-top: -30px; margin-left: -30px;
    background: rgba(255,255,255,.22);
    animation: ripple .5s ease-out forwards;
    pointer-events: none;
}

/* Upgraded back-to-top */
.back-to-top {
    border-radius: 50% !important;
    background: #00a8e1 !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(0,168,225,.4) !important;
    width: 44px !important; height: 44px !important;
}

.back-to-top:hover {
    background: #0398c8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,168,225,.5) !important;
}

/* Toast */
#catalog-toast {
    background: #1a242f !important;
    border: 1px solid rgba(0,168,225,.2) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.5) !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.9) !important;
    font-size: .85rem !important;
}

/* Kan-box image */
.kan-box-img {
    object-fit: contain;
    padding: 25px;
    background: #0c0e17;
}

/* AdSense */
.adsbygoogle { display: block; }

/* ════════════════════════════════════════════════════════════
   4 · LIGHT MODE
════════════════════════════════════════════════════════════ */
:root.light .site-footer {
    background: #f0f4f8;
    color: rgba(0,0,0,.65);
}

:root.light .footer-col a,
:root.light .site-footer-inner > nav a { color: rgba(0,0,0,.55); }
:root.light .footer-col a:hover,
:root.light .site-footer-inner > nav a:hover { color: #0f171e; }
:root.light .site-footer-brand > p:not(.footer-tagline) { color: rgba(0,0,0,.4); }
:root.light .footer-social-links a { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: rgba(0,0,0,.5); }
:root.light .footer-copyright,
:root.light .footer-legal-nav a { color: rgba(0,0,0,.35); }
:root.light .site-footer-divider { background: rgba(0,0,0,.08); }
