/* Zarin Chart 1.5.0: release metadata for durable collection; visual styles are unchanged. Reason: identify the installed integration version. */
/* Zarin Chart 1.4.4 — ingestion/provider settings release alignment.
 * Logic/reason: browser/admin assets and generated source configuration now follow the 1.4.4 Provider Adapter contract.
 * Fix: publish metadata version 1.4.4 so WordPress cache-busting stays aligned with ZARINCHARTS_THEME_VERSION.
 * Regression guard: bump this metadata together with inc/theme-setup.php whenever browser-visible/runtime contracts change.
 */
/* Zarin Chart 1.4.3 — settings-panel release/cache alignment.
 * Logic/reason: centralized configuration changes runtime/admin behavior, so metadata must not remain on the 1.4.2 realtime-only release.
 * Fix: publish theme metadata version 1.4.3 so WordPress cache-busting matches ZARINCHARTS_THEME_VERSION.
 * Regression guard: bump this metadata together with inc/theme-setup.php whenever browser-visible/runtime contracts change.
 */
/* Phase 4: invalidate cached chart transport and template settings together; mixed-version assets could otherwise keep the old synthetic Datafeed. */
/* Merge 1.3.1: invalidate cached theme assets after the coordinated template merge; prior archive retained version 1.2.0. */
/* Phase 2: publish auth integration version alongside runtime assets. Phase 1: align the theme header with runtime version 1.2.0; styling is unchanged. */
/*
Theme Name: Zarin Chart Theme
Description: قالب اختصاصی صرافی و بازارهای مالی با Tailwind CSS
Author: توسعه‌دهنده
Version: 1.6.6
Requires at least: 6.2
Requires PHP: 8.2
Text Domain: ZarinCharts-theme
*/

/* Regular */
@font-face {
  font-family: 'IRANYekan';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('assets/font/iranyekan-regular.woff') format('woff');
}

/* Medium */
@font-face {
  font-family: 'IRANYekan';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('assets/font/iranyekan-medium.woff') format('woff');
}

/* Bold */
@font-face {
  font-family: 'IRANYekan';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('assets/font/iranyekan-bold.woff') format('woff');
}

body {
  font-family: 'IRANYekan', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

/* Market editorial split: analysis remains primary; the cached blog feed is secondary. */
.zc-asset-editorial {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
}
.zc-asset-editorial--single { grid-template-columns: minmax(0, 1fr) !important; }
.zc-asset-news__all {
  flex: 0 0 auto;
  border-radius: .5rem;
  background: var(--zch-soft);
  padding: .45rem .65rem;
  color: var(--zch-blue);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}
.zc-asset-news__list { display: grid; padding: .35rem 1.1rem .75rem; }
.zc-asset-news__item { padding: 1rem .15rem; border-bottom: 1px solid var(--zch-line); }
.zc-asset-news__item:last-child { border-bottom: 0; }
.zc-asset-news__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; color: var(--zch-muted); font-size: .68rem; }
.zc-asset-news__meta > span { border-radius: .45rem; background: var(--zch-gold-soft); padding: .22rem .48rem; color: var(--zch-gold); font-weight: 800; }
.zc-asset-news__item h3 { margin: 0; color: var(--zch-ink); font-size: .9rem; font-weight: 900; line-height: 1.9; }
.zc-asset-news__item h3 a { color: inherit; text-decoration: none; }
.zc-asset-news__item h3 a:hover { color: var(--zch-blue); }
.zc-asset-news__item p { display: -webkit-box; margin: .25rem 0 0; overflow: hidden; color: var(--zch-muted); font-size: .75rem; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zc-asset-news__empty { display: grid; min-height: 13rem; place-items: center; align-content: center; gap: .55rem; padding: 1.5rem; text-align: center; }
.zc-asset-news__empty > span { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .65rem; background: var(--zch-soft); color: var(--zch-muted); }
.zc-asset-news__empty strong { color: var(--zch-ink); font-size: .88rem; }
.zc-asset-news__empty p { max-width: 32rem; margin: 0; color: var(--zch-muted); font-size: .75rem; line-height: 1.9; }
@media (min-width: 1024px) {
  .zc-asset-editorial { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: start; }
}

/* Semantic navigation: valid UL > LI structure without the full DaisyUI menu bundle. */
.zc-primary-menu { display: flex; align-items: center; gap: .25rem; }
.zc-nav-item { position: relative; list-style: none; }
.zc-nav-item > a { display: flex; align-items: center; gap: .3rem; padding: .55rem .75rem; color: inherit; text-decoration: none; transition: color .16s ease; }
.zc-nav-item > a:hover, .zc-nav-item:focus-within > a { color: #203e5d; }
.zc-nav-chevron { width: 1rem; height: 1rem; transition: transform .16s ease; }
.zc-nav-submenu { visibility: hidden; position: absolute; z-index: 60; top: calc(100% + .35rem); right: 0; width: 13rem; margin: 0; padding: .5rem; border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; box-shadow: 0 18px 42px -20px rgba(15,23,42,.45); opacity: 0; transform: translateY(-.3rem); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.zc-nav-has-children:hover > .zc-nav-submenu, .zc-nav-has-children:focus-within > .zc-nav-submenu { visibility: visible; opacity: 1; transform: translateY(0); }
.zc-nav-has-children:hover > a .zc-nav-chevron, .zc-nav-has-children:focus-within > a .zc-nav-chevron { transform: rotate(180deg); }
.zc-nav-submenu li { list-style: none; }
.zc-nav-submenu a { display: block; border-radius: .55rem; padding: .65rem .75rem; color: #334155; text-decoration: none; }
.zc-nav-submenu a:hover, .zc-nav-submenu a:focus-visible { background: #f1f5f9; color: #203e5d; outline: none; }
.zc-mobile-menu { display: flex; flex-direction: column; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.zc-mobile-menu li { list-style: none; }
.zc-mobile-menu details > summary { cursor: pointer; padding: .75rem 1rem; border-radius: .6rem; }
.zc-mobile-menu details > ul { display: flex; flex-direction: column; gap: .25rem; margin: .25rem 1rem 0 0; padding: 0; }
html.dark .zc-nav-item > a:hover, html.dark .zc-nav-item:focus-within > a { color: #e7c98b; }
html.dark .zc-nav-submenu { border-color: #334155; background: #1e293b; }
html.dark .zc-nav-submenu a { color: #cbd5e1; }
html.dark .zc-nav-submenu a:hover, html.dark .zc-nav-submenu a:focus-visible { background: #334155; color: #f8fafc; }

/* 
کلاس‌های کمکی 
*/
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


@keyframes floatUp {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.35;
    }
    70% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -110vh, 0) rotate(18deg) scale(1.15);
        opacity: 0;
    }
}

@keyframes floatUpLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    100% {
        transform: translate3d(-120px, -110vh, 0) rotate(-22deg) scale(1.1);
        opacity: 0;
    }
}

@keyframes floatUpRight {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    100% {
        transform: translate3d(120px, -110vh, 0) rotate(22deg) scale(1.1);
        opacity: 0;
    }
}

.animate-float-slow {
    animation: floatUp 16s linear infinite;
}

.animate-float-medium {
    animation: floatUpLeft 12s linear infinite;
}

.animate-float-fast {
    animation: floatUpRight 9s linear infinite;
}

/* Descriptive, crawlable links to the canonical market landing pages. */
.zch-footer-market-nav {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(203, 213, 225, .8);
    border-bottom: 1px solid rgba(203, 213, 225, .8);
}
.zch-footer-market-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .75rem 1.5rem;
    color: #475569;
    font-size: .75rem;
    font-weight: 700;
}
.zch-footer-market-nav__label { color: #806024; }
.zch-footer-market-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: .25rem;
    transition: color .16s ease, text-decoration-color .16s ease;
}
.zch-footer-market-nav a:hover { color: #203e5d; text-decoration-color: currentColor; }
.zch-footer-market-nav a:focus-visible { outline: 2px solid #203e5d; outline-offset: 3px; }
html.dark .zch-footer-market-nav { border-color: rgba(48, 72, 93, .7); }
html.dark .zch-footer-market-nav__inner { color: #cbd5e1; }
html.dark .zch-footer-market-nav__label { color: #e7c98b; }
html.dark .zch-footer-market-nav a { text-decoration-color: #395269; }
html.dark .zch-footer-market-nav a:hover { color: #bbd3e8; }
html.dark .zch-footer-market-nav a:focus-visible { outline-color: #bbd3e8; }
@media (max-width: 639px) {
    .zch-footer-market-nav__inner { justify-content: center; text-align: center; }
}

/* Editable footer introduction: crawlable by default and progressively collapsed with JS. */
.zch-footer-seo {
    position: relative;
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(203, 213, 225, .8);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .62);
}
.zch-footer-seo__heading {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
}
.zch-footer-seo__mark {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: #f6efdf;
    color: #806024;
}
.zch-footer-seo__mark svg { width: 1.2rem; height: 1.2rem; }
.zch-footer-seo__title-wrap { min-width: 0; }
.zch-footer-seo__eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: #806024;
    font-size: .7rem;
    font-weight: 700;
}
.zch-footer-seo h2 {
    margin: 0;
    color: #142a43;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.8;
}
.zch-footer-seo__content { position: relative; }
.zch-footer-seo__prose {
    color: #58697b;
    font-size: .8125rem;
    line-height: 2;
    overflow-wrap: anywhere;
}
.zch-footer-seo__prose p { margin: 0 0 .75rem; }
.zch-footer-seo__prose p:last-child { margin-bottom: 0; }
.zch-footer-seo__prose h3 {
    margin: 1rem 0 .3rem;
    color: #203e5d;
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.8;
}
.zch-footer-seo__prose a {
    color: #203e5d;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(32, 62, 93, .28);
    text-underline-offset: .18em;
}
.zch-footer-seo__prose a:hover { text-decoration-color: currentColor; }
.zch-footer-seo__prose a:focus-visible,
.zch-footer-seo__toggle:focus-visible {
    outline: 2px solid #203e5d;
    outline-offset: 3px;
}
.zch-footer-seo__toggle { display: none; }
.zch-footer-seo.is-enhanced:not(.is-expanded) .zch-footer-seo__content {
    max-height: 10rem;
    overflow: hidden;
}
.zch-footer-seo.is-enhanced:not(.is-expanded) .zch-footer-seo__content::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f8f9fa 88%);
    content: '';
    pointer-events: none;
}
.zch-footer-seo.is-enhanced .zch-footer-seo__toggle {
    display: inline-flex;
    min-width: 7.5rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .65rem;
    border: 1px solid rgba(148, 163, 184, .55);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .8);
    color: #203e5d;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
    touch-action: manipulation;
}
.zch-footer-seo__toggle:hover { border-color: rgba(32, 62, 93, .45); background: #fff; }
.zch-footer-seo__toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform .16s ease;
}
.zch-footer-seo.is-expanded .zch-footer-seo__toggle svg { transform: rotate(180deg); }
html.dark .zch-footer-seo {
    border-color: rgba(48, 72, 93, .85);
    background: rgba(18, 40, 61, .58);
}
html.dark .zch-footer-seo__mark { background: #353428; color: #e7c98b; }
html.dark .zch-footer-seo__eyebrow { color: #e7c98b; }
html.dark .zch-footer-seo h2 { color: #f0f5f8; }
html.dark .zch-footer-seo__prose { color: #b4c3d0; }
html.dark .zch-footer-seo__prose h3,
html.dark .zch-footer-seo__prose a { color: #bbd3e8; }
html.dark .zch-footer-seo.is-enhanced:not(.is-expanded) .zch-footer-seo__content::after {
    background: linear-gradient(to bottom, rgba(18, 40, 61, 0), #11283d 88%);
}
html.dark .zch-footer-seo.is-enhanced .zch-footer-seo__toggle {
    border-color: rgba(57, 82, 105, .9);
    background: rgba(20, 42, 62, .9);
    color: #bbd3e8;
}
html.dark .zch-footer-seo__toggle:hover { border-color: rgba(187, 211, 232, .55); background: #213b52; }
html.dark .zch-footer-seo__prose a:focus-visible,
html.dark .zch-footer-seo__toggle:focus-visible { outline-color: #bbd3e8; }
@media (min-width: 768px) {
    .zch-footer-seo { padding: 1.5rem 1.75rem; }
    .zch-footer-seo h2 { font-size: 1.125rem; }
    .zch-footer-seo__prose { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
    .zch-footer-seo__toggle,
    .zch-footer-seo__toggle svg { transition: none; }
}
