/*
Theme Name: BugMug
Theme URI: https://bugmug.ir
Author: BugMug
Description: تم اختصاصی سایت معرفی BugMug — سرویس رصد باگ و دریافت بازخورد کاربران. راست‌چین، فارسی، سبک و بدون وابستگی به صفحه‌ساز.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: bugmug
*/

/* Vazirmatn — self-hosted (same font as jabizparda.com). Files in assets/fonts/. */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200D; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/vazirmatn-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/vazirmatn-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200D; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/vazirmatn-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200D; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #262A33;
  --ink-2: #333846;
  --accent: #FF6B4A;
  --accent-dark: #e15535;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --line: #e7e7ee;
  --text: #2b2f38;
  --muted: #71767f;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, IRANSans, Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  line-height: 1; cursor: pointer; transition: filter .15s, transform .15s; font-family: inherit;
}
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.lg { padding: 14px 30px; font-size: 16px; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); }
.btn.dark { background: var(--ink); }
.btn.outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; color: var(--ink); }
.brand .accent { color: var(--accent); }
.nav .links { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav .links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav .links a:hover { color: var(--accent); }
.nav .spacer { margin-inline-start: auto; }
.nav .cta { display: flex; gap: 12px; align-items: center; }
.nav .cta a.login { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav .cta a.login:hover { color: var(--accent); }
@media (max-width: 780px){ .nav .links { display: none; } }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero h1 { font-size: 46px; line-height: 1.35; margin: 0 0 18px; font-weight: 700; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 19px; color: #c7cad2; max-width: 640px; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 880px){ .hero .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

/* code card */
.code-card {
  background: #1b1e26; border: 1px solid #333846; border-radius: var(--radius);
  padding: 18px 20px; font-family: "Courier New", monospace; direction: ltr; text-align: left;
  color: #e6e6ea; font-size: 13.5px; line-height: 1.9; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.code-card .c-key { color: #ff9e7d; }
.code-card .c-str { color: #9ece6a; }
.code-card .c-com { color: #6b7180; }

/* sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--accent); font-weight: 500; font-size: 14px; letter-spacing: .5px; }
.section-head h2 { font-size: 34px; margin: 8px 0 12px; color: var(--ink); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.soft { background: var(--bg-soft); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .18s, transform .18s;
}
.feature:hover { box-shadow: 0 14px 40px rgba(38,42,51,.08); transform: translateY(-3px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; background: #fff0eb; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: s; }
@media (max-width: 780px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); }
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
@media (max-width: 880px){ .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.plan.popular { border-color: var(--accent); box-shadow: 0 16px 44px rgba(255,107,74,.15); position: relative; }
.plan.popular .tag {
  position: absolute; top: -13px; inset-inline-start: 26px; background: var(--accent); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.plan .price { font-size: 32px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 7px 0; color: var(--text); font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; text-align: center; border-radius: 24px; padding: 60px 30px; }
.cta-band h2 { font-size: 32px; margin: 0 0 12px; }
.cta-band p { color: #c7cad2; margin: 0 0 26px; font-size: 17px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink);
  padding: 14px 0; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 2px; top: 50%;
  transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 400;
  transition: transform .15s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .spacer { margin-inline-start: auto; }
.site-footer a:hover { color: var(--accent); }

/* generic page */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.page-wrap h1 { color: var(--ink); }
.page-wrap img { border-radius: var(--radius); }

/* blog listing */
.blog-wrap { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 80px; }
.blog-head { text-align: center; margin-bottom: 44px; }
.blog-head h1 { color: var(--ink); font-size: 34px; margin: 0 0 8px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.post-card:hover { box-shadow: 0 14px 40px rgba(38,42,51,.08); transform: translateY(-3px); }
.post-card .thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 18px; margin: 6px 0 8px; color: var(--ink); line-height: 1.6; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.readmore { color: var(--accent); font-weight: 500; font-size: 14px; }
.post-meta { color: var(--muted); font-size: 13px; }

/* single post */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.post-title { color: var(--ink); font-size: 34px; line-height: 1.5; margin: 0 0 12px; }
.post-hero img { width: 100%; border-radius: var(--radius); margin: 22px 0; }
.prose { font-size: 17px; line-height: 2.1; color: var(--text); }
.prose h2 { color: var(--ink); font-size: 24px; margin: 38px 0 12px; }
.prose h3 { color: var(--ink); font-size: 19px; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 24px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-inline-start: 3px solid var(--accent); background: var(--bg-soft); margin: 22px 0; padding: 12px 18px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.prose code { background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-size: 14px; direction: ltr; display: inline-block; }
.prose pre { background: #1b1e26; color: #e6e6ea; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; }
.post-cta { margin-top: 48px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.post-cta h3 { color: var(--ink); margin: 0 0 8px; font-size: 20px; }
.post-cta p { color: var(--muted); margin: 0 0 18px; }
.pager { margin-top: 40px; text-align: center; }
.pager .page-numbers { display: inline-block; padding: 8px 13px; margin: 0 3px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.pager .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
