/* ===================================================================
   ActionV2Ray — Blog shared stylesheet
   تم قرمز/سفید، راست‌چین، هماهنگ با صفحه اصلی
=================================================================== */
:root{
  --red:#e11d2a; --red-dark:#b8121f; --red-light:#ff4d5a; --red-soft:#fff1f2;
  --ink:#1a1416; --muted:#6b6168; --line:#f0e3e5; --bg:#fff; --bg-alt:#fff7f8;
  --radius:20px; --shadow-sm:0 4px 16px rgba(225,29,42,.08);
  --shadow-md:0 18px 50px rgba(225,29,42,.16); --shadow-lg:0 30px 80px rgba(225,29,42,.22);
  --maxw:1180px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px;overflow-x:clip;max-width:100%}
body{font-family:"Vazirmatn",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;color:var(--ink);background:var(--bg);line-height:2;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
img{max-width:100%;display:block}
.container{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:22px}
.container--narrow{max-width:820px}
.grad-text{background:linear-gradient(120deg,var(--red),var(--red-light));-webkit-background-clip:text;background-clip:text;color:transparent}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;border-radius:14px;padding:15px 30px;border:none;transition:transform .25s,box-shadow .25s;white-space:nowrap}
.btn svg{width:20px;height:20px}
.btn--primary{background:linear-gradient(120deg,var(--red),var(--red-light));color:#fff;box-shadow:var(--shadow-md)}
.btn--primary:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.btn--ghost{background:#fff;color:var(--red-dark);border:1.5px solid var(--line);box-shadow:var(--shadow-sm)}
.btn--ghost:hover{transform:translateY(-3px);border-color:var(--red-light)}
.btn--lg{padding:18px 38px;font-size:18px}

/* header */
header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:19px}
.brand-mark{width:40px;height:40px;border-radius:12px;flex-shrink:0;background:linear-gradient(135deg,var(--red),var(--red-light));display:grid;place-items:center;box-shadow:var(--shadow-sm)}
.brand-mark svg{width:22px;height:22px}
.brand small{display:block;font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.5px}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-weight:600;color:var(--ink);font-size:15.5px;transition:color .2s}
.nav-links a:hover{color:var(--red)}

/* breadcrumb */
.crumb{font-size:14px;color:var(--muted);padding:26px 0 0}
.crumb a:hover{color:var(--red)}
.crumb span{margin:0 6px;opacity:.5}

/* article hero */
.post-hero{padding:26px 0 10px}
.tag-pill{display:inline-block;background:var(--red-soft);color:var(--red-dark);font-weight:700;font-size:13px;padding:6px 15px;border-radius:999px;border:1px solid var(--line);margin-bottom:18px}
.post-hero h1{font-size:clamp(27px,4.6vw,42px);font-weight:800;line-height:1.5;letter-spacing:-.5px;margin-bottom:16px}
.post-meta{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--muted);font-size:14px;font-weight:600}
.post-meta span{display:inline-flex;align-items:center;gap:7px}
.post-meta svg{width:16px;height:16px;color:var(--red)}

/* article body */
.post-body{padding:34px 0 60px;font-size:17px}
.post-body h2{font-size:clamp(22px,3.4vw,30px);font-weight:800;margin:42px 0 16px;line-height:1.5;letter-spacing:-.3px}
.post-body h3{font-size:20px;font-weight:800;margin:30px 0 12px}
.post-body p{margin-bottom:18px;color:#39312f}
.post-body a:not(.btn){color:var(--red-dark);font-weight:700;border-bottom:1.5px solid #ffd0d4}
.post-body a:not(.btn):hover{border-color:var(--red)}
.post-body ul,.post-body ol{margin:0 0 20px;padding-right:6px;display:flex;flex-direction:column;gap:11px}
.post-body ul li{position:relative;padding-right:30px;color:#39312f}
.post-body ul li::before{content:"";position:absolute;right:0;top:13px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--red),var(--red-light))}
.post-body ol{counter-reset:s}
.post-body ol li{position:relative;padding-right:42px;color:#39312f;counter-increment:s}
.post-body ol li::before{content:counter(s);position:absolute;right:0;top:2px;width:28px;height:28px;border-radius:9px;background:var(--red-soft);color:var(--red-dark);font-weight:800;font-size:14px;display:grid;place-items:center}
.post-body strong{color:var(--ink);font-weight:800}
.lead{font-size:19px;color:var(--muted);margin-bottom:26px;line-height:1.9}

/* callout / note box */
.note{background:var(--bg-alt);border:1px solid var(--line);border-right:4px solid var(--red);border-radius:14px;padding:18px 22px;margin:24px 0;font-size:15.5px}
.note b{color:var(--red-dark)}

/* TOC */
.toc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 26px;margin:28px 0;box-shadow:var(--shadow-sm)}
.toc h4{font-size:16px;font-weight:800;margin-bottom:12px}
.toc ol{display:flex;flex-direction:column;gap:9px;padding:0}
.toc ol li{padding:0}
.toc ol li::before{display:none}
.toc a{color:var(--red-dark);font-weight:600;font-size:15px}
.toc a:hover{text-decoration:underline}

/* inline CTA */
.cta-box{background:linear-gradient(135deg,var(--red),var(--red-dark));color:#fff;border-radius:22px;padding:34px 32px;margin:38px 0;text-align:center;position:relative;overflow:hidden}
.cta-box::after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.1);top:-90px;left:-60px}
.cta-box h3{font-size:23px;font-weight:800;margin-bottom:10px;position:relative}
.cta-box p{opacity:.93;margin-bottom:22px;position:relative;color:#fff}
.cta-box .btn{position:relative;background:#fff;color:var(--red-dark)}

/* FAQ inside article */
.afaq{margin-top:18px;display:flex;flex-direction:column;gap:12px}
.afaq details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 22px;transition:box-shadow .3s}
.afaq details[open]{box-shadow:var(--shadow-sm);border-color:#ffd0d4}
.afaq summary{cursor:pointer;list-style:none;padding:18px 0;font-weight:700;font-size:16.5px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.afaq summary::-webkit-details-marker{display:none}
.afaq summary::after{content:"+";color:var(--red);font-size:22px;font-weight:700;transition:transform .3s}
.afaq details[open] summary::after{transform:rotate(45deg)}
.afaq details p{padding:0 0 18px;color:var(--muted);margin:0;font-size:15.5px}

/* blog index grid */
.blog-head{text-align:center;max-width:680px;margin:30px auto 44px}
.blog-head h1{font-size:clamp(28px,5vw,44px);font-weight:800;margin-bottom:14px;letter-spacing:-.5px}
.blog-head p{color:var(--muted);font-size:17px}
.blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-bottom:70px}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s}
.post-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md);border-color:#ffd0d4}
.post-card .thumb{height:140px;background:linear-gradient(135deg,var(--red),var(--red-dark));display:grid;place-items:center;position:relative;overflow:hidden}
.post-card .thumb::after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.12);top:-60px;left:-40px}
.post-card .thumb svg{width:46px;height:46px;color:#fff;position:relative;z-index:1}
.post-card .pc-body{padding:24px 26px;display:flex;flex-direction:column;flex:1}
.post-card .pc-tag{font-size:12.5px;font-weight:700;color:var(--red-dark);margin-bottom:10px}
.post-card h2{font-size:19px;font-weight:800;line-height:1.6;margin-bottom:10px}
.post-card p{color:var(--muted);font-size:14.5px;flex:1;margin-bottom:16px}
.post-card .more{color:var(--red-dark);font-weight:700;font-size:14.5px;display:inline-flex;align-items:center;gap:6px}

/* related */
.related{border-top:1px solid var(--line);padding:46px 0 0;margin-top:30px}
.related h3{font-size:22px;font-weight:800;margin-bottom:22px}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.related-grid a{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;font-weight:700;font-size:15px;transition:box-shadow .3s,border-color .3s}
.related-grid a:hover{box-shadow:var(--shadow-sm);border-color:#ffd0d4;color:var(--red-dark)}

/* footer */
footer{background:var(--ink);color:#cbc2c6;padding:60px 0 26px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-brand .brand{color:#fff;margin-bottom:14px}
.footer-brand p{font-size:14.5px;max-width:360px}
.footer-col h4{color:#fff;font-size:16px;font-weight:700;margin-bottom:16px}
.footer-col a{display:block;font-size:14.5px;padding:6px 0;transition:color .2s}
.footer-col a:hover{color:var(--red-light)}
.footer-tg{display:inline-flex;align-items:center;gap:10px;background:var(--red);color:#fff;padding:12px 22px;border-radius:12px;font-weight:700;font-size:15px;margin-top:6px}
.footer-tg:hover{background:var(--red-light)}
.footer-tg svg{width:20px;height:20px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13.5px}

/* floating tg */
.float-tg{position:fixed;bottom:24px;left:24px;z-index:90;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--red),var(--red-light));display:grid;place-items:center;box-shadow:var(--shadow-md);transition:transform .25s}
.float-tg:hover{transform:scale(1.1)}
.float-tg svg{width:30px;height:30px;color:#fff}

@media(max-width:820px){
  .blog-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .related-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .nav-links{display:none}
  .nav{height:64px}
  .brand{font-size:15px;gap:8px;white-space:nowrap}
  .brand-mark{width:34px;height:34px;border-radius:10px}
  .brand-mark svg{width:18px;height:18px}
  .brand small{font-size:9.5px}
  .post-body{font-size:16px}
  .cta-box{padding:28px 22px}
}
