/* ============================================================
   المعهد الرقمي للفلكلور الجزائري
   صفحة رئيسية + سلايدر + أشرطة تفاعلية + أزرار مضيئة
   النسخة النهائية — CLEAN, FIXED, PRO
=========================================================== */

/* -------------------------
   ROOT VARIABLES
-------------------------- */
:root {
    --bg: #f2f4f7;
    --bg2: #ffffff;
    --text: #1f2933;
    --text-muted: #6b7280;
    --accent: #f59e0b;
    --accent-hover: #ea580c;

    --card: rgba(255,255,255,0.95);
    --glass: rgba(255,255,255,0.7);

    --border: rgba(148,163,184,0.4);
    --soft-shadow: 0 10px 30px rgba(15,23,42,0.10);

    --radius: 14px;
}

/* DARK MODE */
body.dark-mode {
    --bg: #020617;
    --bg2: #0f172a;
    --text: #e5e7eb;
    --text-muted: #9ca3af;

    --accent: #facc15;
    --accent-hover: #f59e0b;

    --card: rgba(15,23,42,0.9);
    --glass: rgba(15,23,42,0.7);

    --border: rgba(55,65,81,0.7);
    --soft-shadow: 0 18px 45px rgba(0,0,0,0.7);
}

/* -------------------------
   GLOBAL
-------------------------- */
* { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior:smooth;
}

body {
    background: radial-gradient(circle at top, #e5e7eb 0, #f2f4f7 35%, #e5e7eb 100%);
    color:var(--text);
    font-family:"Segoe UI", Tahoma, sans-serif;
    overflow-x:hidden;
    transition:background .35s, color .35s;
}

a {
    color:var(--accent);
    text-decoration:none;
}
a:hover {
    color:var(--accent-hover);
}

img {
    max-width:100%;
    display:block;
}

/* -------------------------
   HEADER
-------------------------- */
.site-header {
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    border-bottom:1px solid var(--border);
    box-shadow:0 12px 30px rgba(15,23,42,0.10);
    position:sticky;
    top:0;
    z-index:100;
}

.logo {
    width:54px;
    height:54px;
    border-radius:14px;
    object-fit:cover;
    box-shadow:0 10px 22px rgba(15,23,42,0.35);
}

.site-title {
    font-size:24px;
    font-weight:800;
    letter-spacing:0.5px;
    background:linear-gradient(120deg,#f97316,#facc15,#f97316);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    text-shadow:0 0 16px rgba(248,181,0,0.5);
}

.tagline {
    font-size:13px;
    color:var(--text-muted);
}

.lang-btn,
.theme-toggle,
.btn-outline-soft {
    border:1px solid var(--border);
    background:var(--glass);
    padding:7px 12px;
    border-radius:999px;
    cursor:pointer;
    font-size:13px;
    color:var(--text);
    transition:.25s;
}

.lang-btn:hover,
.theme-toggle:hover,
.btn-outline-soft:hover {
    background:rgba(0,0,0,0.05);
}

/* -------------------------
   GLOW BUTTON
-------------------------- */
.btn-glow {
    background: radial-gradient(circle at top left,#fde68a,#f59e0b);
    color:#111827;
    border:none;
    padding:9px 24px;
    border-radius:999px;
    font-weight:600;
    transition:.25s ease;
    font-size:14px;
    box-shadow:0 0 12px rgba(251,191,36,0.5);
}
.btn-glow:hover {
    transform:translateY(-2px) scale(1.02);
    box-shadow:0 0 22px rgba(251,191,36,0.85);
}

/* -------------------------
   HERO SLIDER
-------------------------- */
.hero-slider {
    width:100%;
    height:57vh;
    max-height:57vh;
    position:relative;
    overflow:hidden;
    z-index:1;
}

.hero-slide {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    opacity:0;
    transform:scale(1.10);
    transition:opacity 1.2s ease, transform 2s ease;
    pointer-events:none;
}
.hero-slide.active {
    opacity:1;
    transform:scale(1);
}

.hero-overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,64,175,0.45));
    z-index:2;
    pointer-events:none;
}

.hero-content {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#f9fafb;
    padding:0 16px;
    z-index:5;
    pointer-events:auto;
}

.hero-box {
    background:rgba(15,23,42,0.75);
    border-radius:20px;
    padding:22px 28px;
    box-shadow:0 18px 40px rgba(15,23,42,0.8);
    max-width:720px;
    position:relative;
}

.hero-box h1 {
    font-size:28px;
    margin-bottom:8px;
}
.hero-box p {
    font-size:15px;
    color:#e5e7eb;
}

/* arrows */
.hero-arrow {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(15,23,42,0.65);
    border:1px solid rgba(248,250,252,0.4);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:6;
}
.hero-arrow.left { left:16px; }
.hero-arrow.right { right:16px; }

/* dots */
.hero-dots {
    position:absolute;
    bottom:14px;
    width:100%;
    display:flex;
    justify-content:center;
    gap:8px;
    z-index:6;
}

.hero-dot {
    height:11px;
    width:11px;
    background:rgba(148,163,184,0.7);
    border-radius:999px;
    cursor:pointer;
    transition:.25s;
}

.hero-dot.active {
    width:22px;
    background:#f97316;
}

/* -------------------------
   INTERACTIVE STRIPS
-------------------------- */
.interactive-section {
    margin:40px auto;
}

.strip-title {
    font-size:22px;
    font-weight:700;
}

.strip-sub {
    font-size:14px;
    color:var(--text-muted);
    margin-bottom:14px;
}

.strip-container {
    position:relative;
}

.strip {
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}
.strip::-webkit-scrollbar {
    height:6px;
}
.strip::-webkit-scrollbar-thumb {
    background:linear-gradient(90deg,#f97316,#facc15);
    border-radius:999px;
}

/* cards */
.strip-card {
    min-width:220px;
    background:var(--card);
    border-radius:var(--radius);
    border:1px solid var(--border);
    padding:12px;
    box-shadow:var(--soft-shadow);
    transition:.25s;
}
.strip-card:hover {
    transform:translateY(-3px);
}

.strip-card img {
    height:140px;
    object-fit:cover;
    border-radius:var(--radius);
}

/* strip arrows */
.strip-arrow {
    position:absolute;
    top:40%;
    width:36px;
    height:36px;
    border-radius:50%;
    border:1px solid var(--border);
    background:var(--glass);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:10;
}
.strip-arrow.left { left:0; }
.strip-arrow.right { right:0; }

/* -------------------------
   CART PANEL
-------------------------- */
.cart-panel {
    width:340px;
    background:var(--bg2);
    border-left:1px solid var(--border);
    position:fixed;
    top:0; right:-340px;
    height:100vh;
    padding:16px;
    box-shadow:-12px 0 40px rgba(15,23,42,0.35);
    transition:.3s;
    z-index:200;
}
.cart-panel.open {
    right:0;
}

/* -------------------------
   FOOTER
-------------------------- */
.footer {
    background:var(--bg2);
    padding:14px;
    border-top:1px solid var(--border);
    text-align:center;
    font-size:13px;
    color:var(--text-muted);
    margin-top:40px;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width:768px) {
    .hero-slider {
        height:48vh;
        max-height:48vh;
    }

    .hero-box h1 {
        font-size:20px;
    }

    .hero-box p {
        font-size:13px;
    }

    .strip-card {
        min-width:180px;
    }

    .strip-card img {
        height:115px;
    }

    .logo {
        width:48px;
        height:48px;
    }

    .site-title {
        font-size:20px;
    }
}
/* إصلاح تغطية السلايدر */
.hero-slider,
.hero-slide,
.hero-overlay {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* إعادة تفعيل النقر داخل المحتوى */
.hero-content *,
header *,
.strip *,
.btn,
a,
button {
    pointer-events: auto !important;
    z-index: 10 !important;
}

/* السلايدر نفسه لا يبقى فوق الصفحة */
.hero-slider {
    position: relative !important;
}

/* السماح بالنقر على عناصر خارج السلايدر */
body > *:not(.hero-slider) {
    position: relative;
    z-index: 20;
}

