/* =========================================================================================
   Radman — brand colours + motion (1405/08/26). Loaded after radman.css / radman-extra.css.
   Navy stays the main colour; one accent colour (variables in :root below) is used ONLY for
   the registration button, heading marks, counters, «new» badges and the hero underline.
   Every animation is switched off for visitors who ask for reduced motion.
   ========================================================================================= */
:root{
  /* >>> ACCENT COLOUR — change only these lines to re-colour every accent on the site <<<
     Default: vivid orange (نارنجی زنده). Other ready-made sets are in CHANGELOG_FA.md. */
  --accent-fill:#FF6A13;       /* vivid orange surfaces: buttons, badges, heading marks */
  --accent-fill-hover:#FF8433;
  --on-accent:#0B2347;         /* text on the orange surfaces (navy, 5.4:1) */
  --accent:#E85A0C;            /* large orange text / lines on light backgrounds (counters, rim) */
  --accent-text:#C94A08;       /* small orange text on light backgrounds (4.7:1) */
  --accent-hover:#C94A08;
  --accent-bright:#FF8A3D;     /* on dark backgrounds (6.6:1 on navy) */
  --accent-bright-2:#FFC08A;
  --accent-soft-text:#FFC9A0;  /* highlighted words on the dark hero photo */
  --accent-50:#FFF1E6;
  --accent-100:#FFE0C7;
  --accent-ring:#FFC9A0;
  --accent-shadow:rgba(255,106,19,.38);
  --soft-section:rgba(255,246,238,.85);
  --cream:var(--soft-section);
  --press:scale(.965);
}

/* ---------------------------------------------------------------- colour */
.rdm-kicker:before,.rdm-eyebrow:before{background:var(--accent-fill)}
.rdm-kicker-light:before,.rdm-eyebrow-light:before{background:var(--accent-bright)}
.rdm-btn-register,.rdm-hero .rdm-btn-register{background:var(--accent-fill)!important;color:var(--on-accent)!important;border-color:transparent!important;
  box-shadow:0 14px 30px var(--accent-shadow)!important}
.rdm-btn-register:hover{background:var(--accent-fill-hover)!important;color:var(--on-accent)!important}
.rdm-cta-band .rdm-btn-cta:not(.rdm-btn-cta-ghost){background:var(--accent-fill);color:var(--on-accent)}
.rdm-cta-band .rdm-btn-cta:not(.rdm-btn-cta-ghost):hover{background:var(--accent-fill-hover);color:var(--on-accent)}
.rdm-stat strong{color:var(--accent)}
.rdm-stat strong small{color:var(--navy)}
.rdm-badge{background:var(--accent-fill);color:var(--on-accent)}
.rdm-message.is-new{box-shadow:0 0 0 2px var(--accent-ring)}
.rdm-feature-card span{background:var(--accent-50);color:var(--accent-text)}
.rdm-feature-card:hover span{background:var(--accent-100);color:var(--accent-hover)}
.rdm-menu a::after,.rdm-mobile-links a::after{background:var(--accent-fill)}
/* «pending» status: yellow-gold amber, clearly different from the accent */
.rdm-status.pending{color:#8F6400}
.rdm-approval-note.pending{background:#FFF9E0;border-color:#F1E3A3;color:#7A5600}
/* warm, alternating sections (translucent so the background line-art still shows faintly) */
.rdm-soft,.rdm-why-section{background:var(--soft-section)}
.rdm-hero h1 strong{color:var(--accent-bright)}

/* ---------------------------------------------------------------- 1) hero: slow zoom + staggered entrance */
@keyframes rdm-kenburns{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.09) translate3d(-1.2%,-1%,0)}}
.rdm-hero-media img{animation:rdm-kenburns 22s ease-in-out infinite alternate;will-change:transform}
@keyframes rdm-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.rdm-hero-copy>*{animation:rdm-rise .7s cubic-bezier(.2,.7,.2,1) both}
.rdm-hero-copy>:nth-child(1){animation-delay:.10s}
.rdm-hero-copy>:nth-child(2){animation-delay:.22s}
.rdm-hero-copy>:nth-child(3){animation-delay:.36s}
.rdm-hero-copy>:nth-child(4){animation-delay:.50s}
.rdm-hero-copy>:nth-child(5){animation-delay:.64s}
.rdm-hero-copy.rdm-reveal{opacity:1;transform:none}

/* ---------------------------------------------------------------- 2) orange underline drawn under «رشد بازیکن» */
.rdm-hero h1 strong{position:relative;display:inline-block}
.rdm-hero h1 strong::after{content:"";position:absolute;right:0;left:0;bottom:-.06em;height:.11em;border-radius:999px;
  background:linear-gradient(90deg,var(--accent-bright),var(--accent-bright-2));transform:scaleX(0);transform-origin:right center;
  animation:rdm-underline .9s cubic-bezier(.65,0,.25,1) .85s forwards}
@keyframes rdm-underline{to{transform:scaleX(1)}}

/* ---------------------------------------------------------------- 3) section headings: accent mark grows in with the reveal */
.rdm-reveal .rdm-eyebrow:before,.rdm-reveal .rdm-kicker:before{transform:scaleX(.2);transform-origin:right center;transition:transform .7s cubic-bezier(.2,.7,.2,1) .25s}
.rdm-reveal.is-visible .rdm-eyebrow:before,.rdm-reveal.is-visible .rdm-kicker:before{transform:scaleX(1)}

/* ---------------------------------------------------------------- 4) student panel: success tick + soft total change */
.rdm-dashboard-notice{animation:rdm-rise .45s cubic-bezier(.2,.7,.2,1) both}
.rdm-dashboard-notice.is-success{display:flex;align-items:center;gap:10px}
.rdm-tick{flex:0 0 auto;width:26px;height:26px}
.rdm-tick circle{fill:#16A34A;transform-origin:center;animation:rdm-pop .35s cubic-bezier(.3,1.6,.5,1) both}
.rdm-tick path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20;
  animation:rdm-draw .4s ease-out .3s forwards}
@keyframes rdm-pop{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes rdm-draw{to{stroke-dashoffset:0}}
[data-rdm-total]{display:inline-block;transition:transform .25s ease,color .25s ease}
[data-rdm-total].is-changing{transform:scale(1.08);color:var(--accent-soft-text)}
.rdm-pay-choice:not([hidden]){animation:rdm-rise .3s ease both}

/* ---------------------------------------------------------------- 5) buttons give a small "press" */
.rdm-btn,.rdm-button,.rdm-card-copy-btn,.rdm-copy-chip,.rdm-payment-button,.rdm-bottom-nav a,
.radman-login-form button{transition:transform .15s ease,background var(--transition),box-shadow var(--transition),color var(--transition)}
.rdm-btn:active,.rdm-button:active,.rdm-card-copy-btn:active,.rdm-copy-chip:active,.rdm-payment-button:active,
.rdm-bottom-nav a:active,.radman-login-form button:active{transform:var(--press)!important}

/* ---------------------------------------------------------------- 6) 404: the ball hits the rim and drops out */
.rdm-404-scene{display:block;width:min(260px,70%);height:auto;margin:0 auto 6px}
.rdm-404-ball{animation:rdm-miss 2.6s cubic-bezier(.45,.05,.55,.95) .3s infinite}
.rdm-404-ball-spin{transform-box:fill-box;transform-origin:center;animation:rdm-ball-spin 2.6s linear .3s infinite}
.rdm-404-net{transform-box:fill-box;transform-origin:50% 0;animation:rdm-net 2.6s ease .3s infinite}
@keyframes rdm-miss{           /* ball origin = left edge of the rim; translate is relative to it */
  0%{transform:translate(-125px,95px);opacity:0}
  6%{opacity:1}
  22%{transform:translate(-80px,-25px)}
  32%{transform:translate(-32px,-56px)}        /* top of the shot */
  42%{transform:translate(4px,0)}             /* hits the rim */
  50%{transform:translate(-20px,-22px)}        /* bounces back */
  62%{transform:translate(-46px,10px)}
  86%{transform:translate(-62px,112px);opacity:1}
  100%{transform:translate(-66px,112px);opacity:0}
}
@keyframes rdm-ball-spin{to{transform:rotate(-540deg)}}
@keyframes rdm-net{0%,38%{transform:none}44%{transform:skewX(6deg)}50%{transform:skewX(-4deg)}58%,100%{transform:none}}
.rdm-404-card span.rdm-404-code{display:block;font-size:72px;color:var(--navy)}
.rdm-404-card .rdm-btn span{font-size:inherit;line-height:inherit;color:inherit;font-weight:inherit}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce){
  .rdm-hero-media img,.rdm-hero-copy>*,.rdm-hero h1 strong::after,.rdm-dashboard-notice,.rdm-tick circle,.rdm-tick path,
  .rdm-404-ball,.rdm-404-ball-spin,.rdm-404-net,.rdm-pay-choice:not([hidden]){animation:none!important}
  .rdm-hero h1 strong::after{transform:scaleX(1)}
  .rdm-tick path{stroke-dashoffset:0}
  .rdm-404-ball{transform:translate(-46px,10px)}
  .rdm-reveal .rdm-eyebrow:before,.rdm-reveal .rdm-kicker:before{transform:none;transition:none}
  [data-rdm-total]{transition:none}
  .rdm-btn:active,.rdm-button:active,.rdm-card-copy-btn:active,.rdm-copy-chip:active{transform:none!important}
}
.rdm-404-rim{stroke:var(--accent)}

/* ---------------------------------------------------------------- background line-art
   * the drawings (ball, hoop, player…) = «-art.svg» images on a fixed layer (body::before), fade in once;
   * the lines = a small inline SVG (templates/partials/lineart/*.html): every line endlessly flows in from one end
     and out through the other (CSS only). */
body.page-template-page-about{--rdm-art:url("../images/lineart-about-art.svg")}
body.page-template-page-contact{--rdm-art:url("../images/lineart-contact-art.svg")}
body.single-rdm_news{--rdm-art:url("../images/lineart-single-news-art.svg")}
body.post-type-archive-rdm_news,body.tax-rdm_news_category{--rdm-art:url("../images/lineart-news-art.svg");--rdm-art-size:1700px 2650px;--rdm-art-pos:calc(50% + 30px) 40px}
body.page-template-page-student-login{--rdm-art:url("../images/lineart-auth-art.svg")}
body.page-template-page-student-dashboard{--rdm-art:url("../images/lineart-dashboard-art.svg")}
body.page.page-template-default:not(.home){--rdm-art:url("../images/lineart-news-art.svg")}
body.home{--rdm-art:url("../images/lineart/lineart-home-v3-art.svg");--rdm-art-size:1600px 3200px}
html body[class]{background-image:none!important;background-color:transparent}
body::before{content:"";position:fixed;inset:-40px;z-index:-2;pointer-events:none;
  background-image:var(--rdm-art,none);background-repeat:no-repeat;background-size:var(--rdm-art-size,1600px 2500px);
  background-position:var(--rdm-art-pos,center 40px)}
.rdm-waves{position:fixed;top:0;left:50%;width:1600px;height:auto;margin-left:-800px;z-index:-1;pointer-events:none;overflow:visible;will-change:transform;contain:layout style}
.rdm-waves-news{width:1700px;margin-left:-820px}
/* each line enters from one end, stays a moment, then leaves through the other end — slowly, forever */
.rdm-flow-line{stroke-dasharray:1 1;stroke-dashoffset:1;
  animation:rdm-line-flow var(--t,15s) cubic-bezier(.45,0,.25,1) var(--d,.3s) infinite}
.rdm-flow-line.is-off{animation:none}
@keyframes rdm-line-flow{0%{stroke-dashoffset:1}40%{stroke-dashoffset:0}62%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}
@media(max-width:980px){
  body::before{background-size:1150px 2200px}
  body.home::before{background-size:1150px 2300px}
  body.post-type-archive-rdm_news::before,body.tax-rdm_news_category::before{background-size:1200px 2350px;background-position:center 40px}
  .rdm-waves{width:1150px;height:2200px;margin-left:-575px}
  .rdm-waves-home{height:2300px}
  .rdm-waves-news{width:1200px;height:2350px;margin-left:-600px}
}
@media (prefers-reduced-motion: reduce){.rdm-flow-line{animation:none;stroke-dashoffset:0}}
