/* ============================================================
   ستايل الإشعارات والمفضلة - Reynx Studio
   الإشعارات: كل ستايلها في main.css (مركز تحت الجرس + موحّد)
   المفضلة v11 — MONO COMMAND DECK (نفس شكل صفحة الكارت):
   هيرو: eyebrow mono + عنوان بتدرّج أبيض + سطر وصف + قراءة عدّاد HUD
   حالة الفراغ بلا صندوق = أيقونة دائرية + نص + زرار واحد أبيض
   خلفية داكنة متعددة الطبقات #060607 (توهج + فينييت + حبيبات) بـbody.fav-deck
   النافبار أبيض كامل — اللوغو مقلوب للأبيض بـbrightness(0) invert(1)
   اتشالت من v6: ماركيه + شرائح حيّة + وهج متابِع + دليل تمرير
                 + مدارات الشعار + الخطوات الثلاث + جدار الشبح + نبضة النجمة
   الثيم صارم: أبيض / رمادي / أسود فقط — أرقام JetBrains Mono
   ============================================================ */

/* ══════════════════════════════════════════════
   [0] ثيم COMMAND DECK الداكن — مقصور على صفحة المفضلة
   n-f.css مشترك مع account/cart الغامقين — عشان كده كل القواعد
   هنا مربوطة بـ body.fav-deck بدل html/body العام.
   نفس خلفية الكارت: حبيبات matte + توهج علوي + فينييت حواف
   ══════════════════════════════════════════════ */
body.fav-deck {
    background-color: #060607 !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
        radial-gradient(1000px 540px at 50% -6%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 70%),
        radial-gradient(1200px 820px at 50% 36%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .55)) !important;
    background-repeat: repeat, no-repeat, no-repeat;
    color: #ffffff;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

/* NAVBAR — أبيض على الخلفية الداكنة (نفس ناف بار صفحة الكارت) */
body.fav-deck .navbar,
body.fav-deck .navbar::before,
body.fav-deck .navbar::after {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.fav-deck .nav-links a { color: rgba(255, 255, 255, .88); }
body.fav-deck .nav-links a:hover,
body.fav-deck .nav-links a.active { color: #fff; }
body.fav-deck .search-btn,
body.fav-deck .action-icon,
body.fav-deck .lang-btn { color: rgba(255, 255, 255, .9); }
body.fav-deck .search-btn:hover,
body.fav-deck .action-icon:hover,
body.fav-deck .lang-btn:hover,
body.fav-deck .action-icon.active { color: #fff; }
body.fav-deck .logo-img {
    filter: brightness(0) invert(1);
    opacity: 1;
}
body.fav-deck .login-btn-alt {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff !important;
}
body.fav-deck .login-btn-alt:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .6);
    color: #fff !important;
}
body.fav-deck .hamburger-icon span { background: #fff; }

/* ══════════════════════════════════════════════
   [1] SHELL + HERO — نظيف ومضبوط
   ══════════════════════════════════════════════ */
.fav-shell {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.fav-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 140px 24px 64px;
    text-align: center;
    overflow: hidden;
}

.fav-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.fav-hero-particles [data-container] {
    position: absolute;
    inset: 0;
}
.fav-hero-particles canvas {
    display: block;
}

.fav-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

/* دخول خفيف متتابع */
.fav-hero-inner > * {
    opacity: 0;
    transform: translateY(16px);
    animation: favIn .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.fav-hero-inner > *:nth-child(1) { animation-delay: .1s; }
.fav-hero-inner > *:nth-child(2) { animation-delay: .22s; }
.fav-hero-inner > *:nth-child(3) { animation-delay: .34s; }
.fav-hero-inner > *:nth-child(4) { animation-delay: .46s; }

@keyframes favIn {
    to { opacity: 1; transform: none; }
}

/* eyebrow — سطر mono صغير بدون شارة */
.fav-eyebrow {
    display: block;
    font-family: 'JetBrains Mono', 'Cairo', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 18px;
}
html[dir="rtl"] .fav-eyebrow {
    letter-spacing: 0;
    text-transform: none;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* العنوان — تدرّج مونو خفيف */
.fav-title {
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: #101114;
    font-size: clamp(40px, 6.4vw, 72px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    background: linear-gradient(105deg, #ffffff 30%, #9aa1a9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
html[dir="rtl"] .fav-title {
    letter-spacing: 0;
}

.fav-desc {
    color: rgba(255, 255, 255, .68);
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    max-width: 460px;
    margin: 0 auto;
}

/* قراءة العدّاد — أداة قياس HUD بنفس ستايل قراءة صفحة الكارت */
.fav-readout {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(8, 8, 8, .72);
    margin-top: 28px;
    overflow: hidden;
}
.fav-readout-cell {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 13px 26px;
    min-width: 150px;
    align-items: center;
}
.fav-readout-cell b {
    font-family: 'JetBrains Mono', 'Cairo', monospace;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
}
.fav-readout-cell strong {
    font-family: 'JetBrains Mono', 'Cairo', monospace;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
html[dir="rtl"] .fav-readout-cell b {
    letter-spacing: 0;
    text-transform: none;
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 11px;
}

/* ══════════════════════════════════════════════
   [2] BODY — الجريد
   ══════════════════════════════════════════════ */
.fav-body {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    min-height: 30vh;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.fav-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(.2, .7, .3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    animation: favIn .5s cubic-bezier(.2, .7, .3, 1) both;
}
.fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.3);
}
.fav-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.06);
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.45s ease;
}
.fav-card:hover img {
    filter: grayscale(0);
}
.fav-card-ph {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 26px;
}
.fav-card-body {
    position: relative;
    z-index: 2;
    padding: 16px;
}
.fav-card-title {
    color: #ffffff;
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.fav-card-type {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'JetBrains Mono', 'Cairo', monospace;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 3px 10px;
    border-radius: 20px;
}
html[dir="rtl"] .fav-card-type {
    font-family: 'Cairo', 'Poppins', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: 11.5px;
}

.fav-remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0a0b0d;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s, transform 0.2s;
}
html[dir="rtl"] .fav-remove-btn {
    left: auto;
    right: 12px;
}
.fav-remove-btn:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
}

/* ══════════════════════════════════════════════
   [3] حالة الفراغ — بلا صندوق (سيمبل ومودرن)
   ══════════════════════════════════════════════ */
.fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 460px;
    margin: 8px auto 0;
    padding: 24px 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* أيقونة دائرية صغيرة بدل الشعار المداري */
.fav-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.fav-empty-icon i {
    font-size: 20px;
    color: #ffffff;
}

.fav-empty-title {
    color: #ffffff;
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
html[dir="rtl"] .fav-empty-title {
    letter-spacing: 0;
}
.fav-empty-hint {
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 360px;
    margin: 0;
}

.fav-cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.fav-empty-cta {
    display: inline-block;
    color: #0a0b0d;
    background: #f2f4f6;
    border: 1px solid #f2f4f6;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'JetBrains Mono', 'Cairo', monospace;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
html[dir="rtl"] .fav-empty-cta {
    font-family: 'Cairo', 'Poppins', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
}
.fav-empty-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.fav-empty-cta:focus-visible {
    outline: 2px solid #f2f4f6;
    outline-offset: 3px;
}

/* ---------- زرار "أضف للمفضلة" العام (استخدمه على أي عنصر بالموقع) ---------- */
.favorite-toggle-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.favorite-toggle-btn:hover {
    transform: scale(1.08);
}
.favorite-toggle-btn.is-favorited i {
    font-weight: 900; /* fa-solid look */
    color: #fff;
}

/* ---------- زرار الفيفوريت فوق صور صفحة الأعمال (البورتفوليو) ---------- */
.sv-portfolio-item .favorite-toggle-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.sv-portfolio-item .favorite-toggle-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* ---------- زرار الفيفوريت فوق صور الجاليري (خدمة معينة) ---------- */
.sv-gallery-item {
    position: relative;
}
.sv-gallery-item .favorite-toggle-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.sv-gallery-item .favorite-toggle-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* ---------- موبايل ---------- */
@media (max-width: 992px) {
    .fav-hero {
        min-height: 64vh;
        padding: 130px 20px 56px;
    }
    .fav-body {
        padding: 40px 20px 48px;
    }
}
@media (max-width: 576px) {
    .fav-hero {
        min-height: 60vh;
        padding: 120px 16px 52px;
    }
    .fav-body {
        padding: 36px 16px 44px;
    }
    .fav-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    .fav-empty {
        padding-top: 16px;
    }
    .fav-cta-row {
        flex-direction: column;
        width: 100%;
    }
    .fav-empty-cta {
        text-align: center;
        padding: 13px 24px;
    }
}

/* ---------- حركة مخفّضة — كل التأثيرات بتتقف ---------- */
@media (prefers-reduced-motion: reduce) {
    .fav-hero-inner > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .fav-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .fav-card img {
        transition: none !important;
    }
    .fav-card,
    .fav-empty-cta,
    .fav-remove-btn,
    .favorite-toggle-btn {
        transition: none !important;
    }
    .fav-card:hover,
    .fav-empty-cta:hover,
    .fav-remove-btn:hover {
        transform: none !important;
    }
}

/* ============================================================
   [7] FOOTER — نفس فوتر باقي الصفحات بالظبط (لوحة سوداء)
   ============================================================ */
.rx-footer,
footer.rx-footer {
    --rxf-stone-line: rgba(255, 255, 255, .12);
    --rxf-white: #f2f4f6;

    width: min(1240px, calc(100% - 96px));
    margin: 0 auto;
    padding: 24px 0 42px;
    background: transparent;
    color: var(--rxf-white);
}

.rx-footer-box {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    max-width: 1160px;
    margin: 0 auto;
    padding: 42px 62px 24px;
    direction: ltr;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.rx-footer-box * { box-sizing: border-box; }

/* اللوحة سودا خالص */
.rx-footer-box::before { display: none; }

/* حقل Antigravity جوّه الفوتر */
.rx-footer-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.rx-footer-particles [data-container] { position: absolute; inset: 0; }
.rx-footer-particles canvas { display: block; }
.rx-footer-box > :not(.rx-footer-particles) { position: relative; z-index: 1; }

.rx-footer-brand-row {
    position: relative;
    z-index: 1;
    direction: ltr;
    text-align: left;
    margin: 0 0 30px;
}

/* العربية: اللوحة كلها بتنقلب RTL */
html[dir="rtl"] .rx-footer-box { direction: rtl; text-align: right; }
html[dir="rtl"] .rx-footer-brand-row { direction: rtl; text-align: right; }

.rx-footer-logo {
    width: 96px;
    height: 36px;
    background-color: #f2f4f6;
    -webkit-mask-image: url('../assets/images/logo.png');
    mask-image: url('../assets/images/logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.rx-footer-cols {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.rx-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rx-footer-col h4 {
    margin: 0 0 4px;
    font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.rx-footer-col a,
.rx-footer-col p {
    display: block;
    width: fit-content;
    margin: 0;
    font-size: .85rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color .25s ease, transform .3s ease;
    color: rgba(255, 255, 255, .72);
}

.rx-footer-col a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.rx-footer-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 24px 0 15px;
    background: rgba(255, 255, 255, .12);
}

.rx-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.rx-footer-copy,
.rx-footer-note {
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

.rx-footer-social { display: flex; gap: 10px; }

.rx-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: .8rem;
    text-decoration: none;
    transition: all .3s ease;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .8);
}

.rx-footer-social a:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0b0d;
    transform: translateY(-2px);
}

/* ---------- فوتر ريسپونسف ---------- */
@media (max-width: 992px) {
    .rx-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
    .rx-footer-box { padding: 38px 34px 24px; }
    .rx-footer-brand-row { margin-bottom: 26px; }
    .rx-footer-divider { margin: 20px 0 14px; }
}
@media (max-width: 640px) {
    .rx-footer,
    footer.rx-footer { width: calc(100% - 38px); }
    .rx-footer-box { padding: 32px 22px 24px; }
}
@media (max-width: 576px) {
    .rx-footer-cols { grid-template-columns: repeat(2, 1fr); }
    .rx-footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- فوتر RTL: خط Cairo + ايقونات FA + عناوين مونو ---------- */
html[dir="rtl"] footer.rx-footer,
html[dir="rtl"] footer.rx-footer * {
    font-family: 'Cairo', 'Poppins', 'Inter', Arial, sans-serif !important;
}
html[dir="rtl"] footer.rx-footer i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
html[dir="rtl"] footer.rx-footer i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
html[dir="rtl"] footer.rx-footer i.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
html[dir="rtl"] footer.rx-footer i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
html[dir="rtl"] footer.rx-footer .rx-footer-col h4 {
    font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace !important;
}
