/* =========================================================
   DARK BASE
   File: static/css/dark-mode/dark-base.css
   ========================================================= */

/* =========================================================
   GLOBAL DARK BACKGROUND
   یکپارچه‌سازی بک‌گراند کل سایت
   ========================================================= */

html[data-theme="dark"] {
    background: #020617;
}

[data-theme="dark"] body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(125, 167, 140, 0.13), transparent 32%),
        radial-gradient(circle at 92% 4%, rgba(217, 104, 104, 0.10), transparent 34%),
        radial-gradient(circle at 50% 38%, rgba(86, 182, 198, 0.08), transparent 42%),
        linear-gradient(135deg, #0f172a 0%, #020617 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--dark-text);
}

[data-theme="dark"] a {
    color: inherit;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] button,
[data-theme="dark"] select {
    font-family: inherit;
}

/* =========================================================
   DARK HEADER
   ========================================================= */

[data-theme="dark"] .site-header {
    background: transparent;
}

[data-theme="dark"] .header-shell {
    background: transparent;
}

[data-theme="dark"] .logo,
[data-theme="dark"] .main-nav,
[data-theme="dark"] .theme-toggle {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.035)
        );
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

[data-theme="dark"] .logo::before {
    background:
        radial-gradient(circle at top right, rgba(86, 182, 198, 0.14), transparent 42%),
        radial-gradient(circle at bottom left, rgba(183, 163, 227, 0.12), transparent 44%);
}

[data-theme="dark"] .logo:hover,
[data-theme="dark"] .main-nav:hover,
[data-theme="dark"] .theme-toggle:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.045)
        );
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.30),
        0 0 28px rgba(86, 182, 198, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .logo img {
    filter: drop-shadow(0 8px 18px rgba(86, 182, 198, 0.18));
}

[data-theme="dark"] .main-nav::before {
    background:
        radial-gradient(circle at 15% 0%, rgba(86, 182, 198, 0.11), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(183, 163, 227, 0.10), transparent 34%);
}

[data-theme="dark"] .main-nav a {
    color: #cbd5e1;
}

[data-theme="dark"] .main-nav a::before {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.035)
        );
}

[data-theme="dark"] .main-nav a::after {
    background: linear-gradient(90deg, #56B6C6, #B7A3E3);
}

[data-theme="dark"] .main-nav a:hover {
    color: #f8fafc;
}

[data-theme="dark"] .main-nav a:hover::before {
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================================================
   DARK THEME TOGGLE
   ========================================================= */

[data-theme="dark"] .theme-toggle {
    color: #f8fafc;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .theme-toggle-moon {
    opacity: 0;
    transform: scale(0.72) rotate(45deg);
}

[data-theme="dark"] .theme-toggle-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* =========================================================
   DARK HEADER CTA
   ========================================================= */

[data-theme="dark"] .header-cta {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 36%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 54%, #cbd5e1 100%);
    color: #0f172a;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.32),
        0 8px 22px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .header-cta:hover {
    box-shadow:
        0 28px 66px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(248, 250, 252, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

/* =========================================================
   DARK FOOTER MORPH TEXT
   ========================================================= */

[data-theme="dark"] .site-footer,
[data-theme="dark"] .footer-shell {
    background: transparent;
}

[data-theme="dark"] .footer-morph-strip,
[data-theme="dark"] .footer-morph-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .footer-word {
    color: #f8fafc;
}

[data-theme="dark"] .footer-morph-subtext {
    color: #94a3b8;
}

/* =========================================================
   DARK FOOTER GRID
   ========================================================= */

[data-theme="dark"] .footer-grid {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.070),
            rgba(255, 255, 255, 0.030)
        );
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}

[data-theme="dark"] .footer-logo {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.035)
        );
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

[data-theme="dark"] .footer-logo img {
    filter: drop-shadow(0 8px 18px rgba(86, 182, 198, 0.18));
}

[data-theme="dark"] .footer-brand p {
    color: #cbd5e1;
}

[data-theme="dark"] .footer-column h3,
[data-theme="dark"] .footer-contact h3 {
    color: #f8fafc;
}

[data-theme="dark"] .footer-column a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-column a:hover {
    color: #f8fafc;
}

[data-theme="dark"] .footer-contact-item span {
    color: #94a3b8;
}

[data-theme="dark"] .footer-contact-item strong,
[data-theme="dark"] .footer-contact-item a {
    color: #cbd5e1;
}

[data-theme="dark"] .footer-contact-item a:hover {
    color: #f8fafc;
}

/* =========================================================
   DARK FOOTER SOCIALS
   ========================================================= */

[data-theme="dark"] .footer-social-link {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
}

[data-theme="dark"] .footer-social-link:hover {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0f172a;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   DARK LIQUID FOOTER
   ========================================================= */

[data-theme="dark"] .liquid-footer {
    --liquid-bg: #ED5565;
    background: var(--liquid-bg);
}

[data-theme="dark"] .liquid-bubbles {
    background: var(--liquid-bg);
}

[data-theme="dark"] .liquid-bubble {
    background: var(--liquid-bg);
}

[data-theme="dark"] .liquid-footer-content {
    background: var(--liquid-bg);
    color: #F5F7FA;
}

[data-theme="dark"] .liquid-footer-links b {
    color: #ffffff;
}

[data-theme="dark"] .liquid-footer-links a {
    color: #F5F7FA;
}

[data-theme="dark"] .liquid-footer-links a:hover {
    color: #ffffff;
}

[data-theme="dark"] .liquid-footer-brand p {
    color: #F5F7FA;
}