/* ==========================================
     HERO BANNER STYLES (DAY & NIGHT)
     ========================================== */
  .article-hero-banner {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }

  .article-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.4s ease;
  }

  /* کنترل نمایش شب و روز براساس تم */
  .article-hero-night {
    display: none;
  }

  /* اگر کلاس dark یا تم شب فعال باشد */
  body.dark-theme .article-hero-day,
  [data-theme="dark"] .article-hero-day {
    display: none;
  }

  body.dark-theme .article-hero-night,
  [data-theme="dark"] .article-hero-night {
    display: block;
  }

  .article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
  }

  .article-hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 750px;
  }

  .article-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .article-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .article-hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
  }

  /* ==========================================
     BODY & LAYOUT STYLES
     ========================================== */
  .article-single-page {
    padding: 40px 0 80px 0;
    max-width: 850px;
    margin: 0 auto;
    direction: rtl;
  }

  .article-body {
    line-height: 1.9;
    font-size: 1.1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary-color, #7BAE3F);
  }

  .article-body ul, .article-body ol {
    margin-right: 25px;
    margin-bottom: 25px;
  }

  .article-body li {
    margin-bottom: 10px;
  }

  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--primary-color, #7BAE3F);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
  }

  .back-btn:hover {
    transform: translateX(5px);
  }

/* =========================================================
   SHARED MYFIT ARTICLE BACKGROUND ANIMATION
   Apply this same stylesheet to every article page.
   ========================================================= */

.article-single-page {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

/* ثابت و همیشه قابل‌مشاهده؛ فقط نورها آرام حرکت می‌کنند */
.article-single-page::before,
.article-single-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.article-single-page::before {
    background:
        radial-gradient(520px 420px at 8% 18%, rgba(123,174,63,.10), transparent 72%),
        radial-gradient(620px 500px at 88% 76%, rgba(155,203,85,.09), transparent 74%),
        radial-gradient(420px 330px at 58% 34%, rgba(85,124,46,.055), transparent 72%);
    filter: blur(18px);
    transform: translate3d(0,0,0) scale(1.05);
    animation: myfitAmbientMove 22s ease-in-out infinite alternate;
}

.article-single-page::after {
    z-index: -1;
    opacity: .55;
    background:
        linear-gradient(115deg,
            transparent 0%,
            transparent 38%,
            rgba(123,174,63,.035) 47%,
            rgba(155,203,85,.055) 50%,
            rgba(123,174,63,.035) 53%,
            transparent 62%,
            transparent 100%);
    background-size: 180% 180%;
    animation: myfitLightSweep 18s ease-in-out infinite;
}

@keyframes myfitAmbientMove {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1.05);
    }
    50% {
        transform: translate3d(1.5%, 1%, 0) scale(1.09);
    }
    100% {
        transform: translate3d(-.5%, 2%, 0) scale(1.06);
    }
}

@keyframes myfitLightSweep {
    0% {
        background-position: 120% 40%;
    }
    50% {
        background-position: 50% 58%;
    }
    100% {
        background-position: -20% 42%;
    }
}

/* ==========================================
   LIGHT THEME - VISIBLE ANIMATION
   ========================================== */

[data-theme="light"] .article-single-page::before {
    background:
        radial-gradient(
            480px 400px at 7% 18%,
            rgba(123, 174, 63, 0.24),
            transparent 72%
        ),
        radial-gradient(
            580px 460px at 90% 78%,
            rgba(155, 203, 85, 0.20),
            transparent 74%
        ),
        radial-gradient(
            420px 340px at 58% 32%,
            rgba(85, 124, 46, 0.10),
            transparent 72%
        );

    filter: blur(16px);
    opacity: 1;

    animation: myfitAmbientMove 18s ease-in-out infinite alternate;
}


[data-theme="light"] .article-single-page::after {
    opacity: .55;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 35%,
            rgba(123, 174, 63, 0.035) 45%,
            rgba(123, 174, 63, 0.10) 50%,
            rgba(123, 174, 63, 0.035) 55%,
            transparent 65%,
            transparent 100%
        );

    background-size: 180% 180%;

    animation: myfitLightSweep 14s ease-in-out infinite;
}

[data-theme="dark"] .article-single-page::before {
    background:
        radial-gradient(520px 420px at 8% 18%, rgba(155,203,85,.13), transparent 72%),
        radial-gradient(620px 500px at 88% 76%, rgba(123,174,63,.095), transparent 74%),
        radial-gradient(420px 330px at 58% 34%, rgba(85,124,46,.07), transparent 72%);
}

[data-theme="dark"] .article-single-page::after {
    opacity: .50;
}

@media (max-width: 700px) {
    .article-single-page::before {
        background:
            radial-gradient(320px 270px at 8% 16%, rgba(123,174,63,.12), transparent 74%),
            radial-gradient(360px 300px at 92% 78%, rgba(155,203,85,.09), transparent 74%);
        animation-duration: 26s;
    }

    .article-single-page::after {
        animation-duration: 20s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-single-page::before,
    .article-single-page::after {
        animation: none;
    }
}
