/* PokerFarsi — استایلِ مخصوصِ صفحهٔ اصلی (بازطراحی مهر ۱۴۰۵)
 * فقط روی front-page لود می‌شود (inc/home.php) و روی ui.css (اجزای مشترک hp-) سوار است.
 * توکن‌های رنگ از :root در style.css می‌آیند. */

/* ---------- HERO ---------- */
.hp-hero{position:relative;padding:84px 0 72px;overflow:hidden}
.hp-hero-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:
    radial-gradient(900px 420px at 15% 10%,rgba(122,31,43,.07),transparent 65%),
    linear-gradient(to right,rgba(122,31,43,.05) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(13,13,13,.04) 1px,transparent 1px);
  background-size:auto,56px 56px,56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 95% 80% at 60% 20%,#000 30%,transparent 80%);
  mask-image:radial-gradient(ellipse 95% 80% at 60% 20%,#000 30%,transparent 80%);
}
.hp-hero .wrap{position:relative;z-index:1}
.hp-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}

.hp-h1{font-size:clamp(36px,4.8vw,60px);font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--ink);margin:0 0 20px}
.hp-h1 .ac{color:var(--burgundy)}
.hp-lead{font-size:18px;color:var(--hp-ink-2);max-width:48ch;margin:0 0 30px;line-height:1.95}
.hp-hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hp-hero-links{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;margin:26px 0 0;padding:0;font-size:13.5px;font-weight:600;color:var(--hp-ink-3)}
.hp-hero-links li::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin-inline-end:8px;vertical-align:middle}
.hp-hero-links a:hover{color:var(--burgundy)}

/* ماشین‌حسابِ زنده */
.hp-calc{
  background:#fff;border:1px solid var(--gray-line);border-radius:22px;
  padding:26px 26px 22px;box-shadow:var(--hp-shadow);
}
.hp-calc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.hp-calc-head .t{font-size:14px;font-weight:800;color:var(--ink)}
.hp-calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.hp-field{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--hp-ink-2)}
.hp-field input{
  font-family:var(--lat);direction:ltr;text-align:center;
  font-size:19px;font-weight:800;color:var(--ink);
  background:var(--offwhite);border:1.5px solid var(--gray-line);border-radius:12px;
  height:48px;padding:0 12px;outline:none;transition:border-color .18s,box-shadow .18s;width:100%;
}
.hp-field input:focus{border-color:var(--burgundy);background:#fff;box-shadow:0 0 0 4px rgba(122,31,43,.08)}
.hp-field input::-webkit-outer-spin-button,.hp-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hp-field input[type=number]{-moz-appearance:textfield}

.hp-calc-outs{background:var(--offwhite);border:1px solid var(--gray-line);border-radius:14px;padding:14px 16px 12px;margin-bottom:16px}
.hp-calc-outs-head{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;font-weight:700;color:var(--hp-ink-2);margin-bottom:8px}
.hp-calc-outs-head b{font-size:16px;color:var(--burgundy);font-weight:800}
.hp-calc-outs input[type=range]{
  width:100%;direction:ltr;appearance:none;-webkit-appearance:none;height:6px;border-radius:100px;
  background:linear-gradient(to right,var(--burgundy) var(--p,42%),var(--gray-line) var(--p,42%));
  outline:none;margin:4px 0 12px;cursor:pointer;
}
.hp-calc-outs input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--burgundy);box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer}
.hp-calc-outs input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--burgundy);box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer}
.hp-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#fff;border:1px solid var(--gray-line);border-radius:10px;padding:4px}
.hp-seg button{
  font-family:var(--fa);font-size:12.5px;font-weight:700;color:var(--hp-ink-3);
  background:transparent;border:0;border-radius:7px;padding:8px 6px;cursor:pointer;transition:.15s;
}
.hp-seg button.on{background:var(--ink);color:#fff}

.hp-calc-out{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hp-kpi{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--gray-line);border-radius:12px}
.hp-kpi .k{font-size:12px;font-weight:600;color:var(--hp-ink-3)}
.hp-kpi .v{font-size:24px;font-weight:800;color:var(--ink);line-height:1.2}
.hp-verdict{
  grid-column:1/-1;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
  padding:12px 16px;border-radius:12px;transition:background .25s,color .25s;
}
.hp-verdict b{font-size:15px;font-weight:800}
.hp-verdict small{font-size:12.5px;font-weight:500;opacity:.85}
.hp-verdict[data-ok="1"]{background:rgba(46,125,80,.1);color:#245C3B}
.hp-verdict[data-ok="0"]{background:rgba(168,32,45,.08);color:#8B1A24}
.hp-calc-more{
  display:inline-flex;align-items:center;gap:6px;margin-top:16px;
  font-size:13.5px;font-weight:700;color:var(--burgundy);
}
.hp-calc-more:hover{text-decoration:underline}

/* ---------- نوار اعتماد ---------- */
.hp-strip{background:#fff;border-block:1px solid var(--gray-line)}
.hp-strip .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.hp-stat{display:flex;flex-direction:column;gap:2px;padding:24px 20px;border-inline-start:1px solid var(--gray-line);transition:background .18s}
.hp-stat:first-child{border-inline-start:0}
.hp-stat:hover{background:var(--offwhite)}
.hp-stat .n{font-size:30px;font-weight:800;color:var(--ink);line-height:1.15}
.hp-stat .c{font-size:13.5px;color:var(--hp-ink-3);font-weight:500}

/* ---------- ابزارها ---------- */
.hp-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hp-tool{
  display:flex;align-items:flex-start;gap:14px;
  background:#fff;border:1px solid var(--gray-line);border-radius:var(--hp-r);padding:22px 20px;
  transition:transform .22s,box-shadow .22s,border-color .22s;position:relative;
}
.hp-tool:hover{transform:translateY(-4px);box-shadow:var(--hp-shadow);border-color:var(--hp-burg-line)}
.hp-tool .ic{flex:none;width:44px;height:44px;border-radius:12px;background:var(--hp-burg-soft);color:var(--burgundy);display:flex;align-items:center;justify-content:center}
.hp-tool .tx{display:flex;flex-direction:column;gap:4px;min-width:0}
.hp-tool b{font-size:16px;font-weight:800;color:var(--ink);line-height:1.5}
.hp-tool small{font-size:13.5px;color:var(--hp-ink-3);line-height:1.7}
.hp-tool .new{font-style:normal;font-size:11px;font-weight:700;color:#fff;background:var(--burgundy);border-radius:100px;padding:2px 8px;margin-inline-start:6px;vertical-align:middle}
.hp-tool .go{position:absolute;inset-inline-end:16px;top:22px;color:var(--gray);opacity:0;transition:opacity .2s,transform .2s}
.hp-tool:hover .go{opacity:1;transform:translateX(-3px);color:var(--burgundy)}

/* ---------- مسیر یادگیری ---------- */
.hp-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hp-level{background:var(--offwhite);border:1px solid var(--gray-line);border-radius:var(--hp-r);padding:24px 22px;display:flex;flex-direction:column}
.hp-level-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--gray-line)}
.hp-level-head .num{font-size:13px;font-weight:800;color:var(--burgundy);background:#fff;border:1px solid var(--hp-burg-line);border-radius:10px;padding:6px 9px;line-height:1;flex:none}
.hp-level-head h3{font-size:19px;font-weight:800;margin:0 0 4px}
.hp-level-head p{font-size:13.5px;color:var(--hp-ink-3);margin:0;line-height:1.7}
.hp-level-head .cnt{margin-inline-start:auto;flex:none;font-size:12.5px;font-weight:700;color:var(--hp-ink-3);white-space:nowrap}
.hp-lessons{list-style:none;margin:0;padding:0;counter-reset:les;display:flex;flex-direction:column;gap:4px}
.hp-lessons li{counter-increment:les}
.hp-lessons a{
  display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600;color:var(--hp-ink-2);
  padding:9px 10px;border-radius:10px;transition:background .15s,color .15s;
}
.hp-lessons a::before{content:counter(les,persian);font-size:12px;font-weight:800;color:var(--gray);width:16px;flex:none}
.hp-lessons a:hover{background:#fff;color:var(--burgundy)}
.hp-lessons .free{margin-inline-start:auto;font-size:11px;font-weight:700;color:#245C3B;background:rgba(46,125,80,.1);border-radius:100px;padding:2px 8px}
.hp-level-more{margin-top:auto;padding-top:14px;font-size:13.5px;font-weight:700;color:var(--burgundy)}
.hp-level-more:hover{text-decoration:underline}

/* ---------- مقاله‌ها + اخبار ---------- */
.hp-feed{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start}
.hp-feed-main .hp-sec-head{margin-bottom:22px}
.hp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.hp-chips a{
  display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--hp-ink-2);
  background:#fff;border:1px solid var(--gray-line);border-radius:100px;padding:7px 13px;transition:.15s;
}
.hp-chips a span{font-size:11.5px;color:var(--gray);font-weight:700}
.hp-chips a:hover{border-color:var(--burgundy);color:var(--burgundy)}
.hp-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.hp-card{background:#fff;border:1px solid var(--gray-line);border-radius:var(--hp-r);overflow:hidden;display:flex;flex-direction:column;transition:transform .22s,box-shadow .22s}
.hp-card:hover{transform:translateY(-4px);box-shadow:var(--hp-shadow)}
.hp-card-img{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#7A1F2B,#4c121b);overflow:hidden}
.hp-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hp-card:hover .hp-card-img img{transform:scale(1.04)}
.hp-card-img .ph{display:block;width:100%;height:100%;background-image:linear-gradient(to right,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.12) 1px,transparent 1px);background-size:26px 26px}
.hp-card-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1;gap:8px}
.hp-card .cat{font-size:12px;font-weight:700;color:var(--burgundy)}
.hp-card h3{font-size:15.5px;font-weight:800;line-height:1.65;margin:0}
.hp-card h3 a:hover{color:var(--burgundy)}
.hp-card .meta{margin-top:auto;font-size:12.5px;color:var(--gray);font-weight:500}
.hp-card .meta .sep{margin-inline:7px}

.hp-feed-side{position:sticky;top:94px;display:flex;flex-direction:column;gap:16px}
.hp-news{background:#fff;border:1px solid var(--gray-line);border-radius:var(--hp-r);padding:22px 22px 18px}
.hp-news-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.hp-news-head h2{font-size:18px;font-weight:800;margin:0}
.hp-news-list{list-style:none;margin:0;padding:0}
.hp-news-list li{padding:13px 0;border-bottom:1px solid var(--gray-line);display:flex;flex-direction:column;gap:4px}
.hp-news-list li:last-child{border-bottom:0}
.hp-news-list a{font-size:14px;font-weight:700;line-height:1.7;color:var(--ink)}
.hp-news-list a:hover{color:var(--burgundy)}
.hp-news-list time{font-size:12px;color:var(--gray);font-weight:500}
.hp-news-all{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:13.5px;font-weight:700;color:var(--burgundy)}
.hp-news-all:hover{text-decoration:underline}
.hp-weekly{
  display:flex;flex-direction:column;gap:4px;background:var(--ink);color:var(--offwhite);
  border-radius:var(--hp-r);padding:20px 22px;position:relative;overflow:hidden;transition:transform .2s;
}
.hp-weekly::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 90% 10%,rgba(122,31,43,.6),transparent 50%);pointer-events:none}
.hp-weekly:hover{transform:translateY(-2px)}
.hp-weekly .k{font-size:12px;font-weight:700;color:var(--gold);position:relative}
.hp-weekly b{font-size:17px;font-weight:800;position:relative}
.hp-weekly small{font-size:13px;color:#b7b0ac;position:relative}

/* ---------- بازیکنان ایرانی ---------- */
.hp-players{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hp-player{
  display:flex;flex-direction:column;background:#171515;border:1px solid rgba(255,255,255,.08);
  border-radius:var(--hp-r);overflow:hidden;transition:transform .22s,border-color .22s;
}
.hp-player:hover{transform:translateY(-4px);border-color:rgba(201,162,77,.5)}
.hp-player .img{display:block;aspect-ratio:16/10;background:#241f1f;overflow:hidden}
.hp-player .img img{width:100%;height:100%;object-fit:cover;object-position:top;filter:saturate(.9);transition:transform .5s}
.hp-player:hover .img img{transform:scale(1.04)}
.hp-player .tx{display:flex;flex-direction:column;gap:6px;padding:18px 20px 20px}
.hp-player b{font-size:16px;font-weight:800;color:#fff;line-height:1.6}
.hp-player small{font-size:13.5px;color:#b7b0ac;line-height:1.8}

/* ---------- سایت‌های پوکر ---------- */
.hp-rooms{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.hp-room{
  display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;
  background:#fff;border:1px solid var(--gray-line);border-radius:var(--hp-r);padding:18px 20px;
  transition:transform .22s,box-shadow .22s,border-color .22s;
}
.hp-room:hover{transform:translateY(-3px);box-shadow:var(--hp-shadow);border-color:var(--hp-burg-line)}
.hp-room .mark{width:46px;height:46px;border-radius:12px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800}
.hp-room .tx{display:flex;flex-direction:column;gap:3px;min-width:0}
.hp-room b{font-size:16px;font-weight:800;color:var(--ink)}
.hp-room small{font-size:12.5px;color:var(--hp-ink-3);line-height:1.6}
.hp-room .sc{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none}
.hp-room .sc em{font-style:normal;font-size:11px;font-weight:700;color:var(--burgundy);background:var(--hp-burg-soft);border-radius:100px;padding:2px 8px;white-space:nowrap}
.hp-room .sc strong{font-size:18px;font-weight:800;color:var(--ink)}
.hp-room .sc strong span{font-size:12px;color:var(--gray);font-weight:600}
.hp-note{font-size:13.5px;color:var(--hp-ink-3);margin:18px 0 0}
.hp-note a{color:var(--burgundy);font-weight:700}

/* ---------- جامعه ---------- */
.hp-social{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hp-soc{
  display:flex;flex-direction:column;gap:4px;background:var(--offwhite);border:1px solid var(--gray-line);
  border-radius:var(--hp-r);padding:22px 20px;transition:transform .22s,box-shadow .22s,border-color .22s;
}
.hp-soc:hover{transform:translateY(-4px);box-shadow:var(--hp-shadow)}
.hp-soc .ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:10px;color:#fff}
.hp-soc.ig .ic{background:linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af)}
.hp-soc.tg .ic{background:#2AABEE}
.hp-soc.yt .ic{background:#E62117}
.hp-soc.lg .ic{background:var(--gold)}
.hp-soc b{font-size:13px;font-weight:700;color:var(--hp-ink-3)}
.hp-soc strong{font-size:20px;font-weight:800;color:var(--ink);line-height:1.3}
.hp-soc small{font-size:13px;color:var(--hp-ink-3);line-height:1.7;margin-top:2px}

/* ---------- واکنش‌گرایی ---------- */
@media(max-width:1080px){
  .hp-tools,.hp-social{grid-template-columns:repeat(2,1fr)}
  .hp-feed{grid-template-columns:1fr}
  .hp-feed-side{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
}
@media(max-width:960px){
  .hp-hero{padding:56px 0 56px}
  .hp-hero-grid{grid-template-columns:1fr;gap:40px}
  .hp-calc{max-width:520px}
  .hp-strip .wrap{grid-template-columns:repeat(2,1fr)}
  .hp-stat:nth-child(3){border-inline-start:0}
  .hp-stat:nth-child(n+3){border-top:1px solid var(--gray-line)}
  .hp-levels,.hp-players,.hp-rooms{grid-template-columns:1fr}
  .hp-cards{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .hp-hero{padding:40px 0 48px}
  .hp-lead{font-size:16.5px}
  .hp-calc{padding:20px 18px 18px}
  .hp-calc-fields{gap:10px}
  .hp-tools,.hp-social,.hp-cards,.hp-feed-side{grid-template-columns:1fr}
  .hp-strip .wrap{grid-template-columns:1fr 1fr;padding-inline:0}
  .hp-stat{padding:18px 16px}
  .hp-stat .n{font-size:24px}
  .hp-seg button{font-size:11.5px;padding:8px 4px}
}
@media(prefers-reduced-motion:reduce){
  .hp-calc .pulse,.hp-news-head .pulse{animation:none}
}

/* کارتِ هشتمِ گریدِ ابزارها — تحلیل دست (ردیف دوم را کامل می‌کند) */
.hp-tool-all{background:var(--offwhite);border-style:dashed}
.hp-tool-all .ic{background:#fff;border:1px solid var(--gray-line)}
