/*
Theme Name: Pars Subtitles Pro
Theme URI: https://parssubtitles.com/
Author: Pars Subtitles
Description: قالب مدرن و بهینه RTL برای دانلود زیرنویس فارسی فیلم و سریال
Version: 2.0.1
Text Domain: pars-subtitles-pro
*/

@import url("https://cdn.jsdelivr.net/npm/vazirmatn@33.003/Vazirmatn-font-face.css");

:root {
  --bg: #0c1017;
  --bg-soft: #141a24;
  --panel: #1a2230;
  --panel-2: #212b3c;
  --ink: #e8eef7;
  --muted: #9aa8bc;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f5b942;
  --gold-deep: #d97706;
  --accent: #38bdf8;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(245, 185, 66, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(56, 189, 248, 0.08), transparent 45%),
    linear-gradient(180deg, #0a0e14 0%, var(--bg) 40%, #0d121a 100%);
  line-height: 1.8;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--gold); text-decoration: none; transition: .15s ease; }
a:hover { color: #ffe08a; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.45; color: #fff; }
p { margin: 0 0 1rem; }

.ps-wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* topbar */
.ps-topbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.92);
  border-bottom: 1px solid var(--line);
}
.ps-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px; flex-wrap: wrap;
}
.ps-brand { display: flex; align-items: center; gap: .85rem; }
.ps-brand img { width: 54px; height: auto; border-radius: 10px; }
.ps-brand-text { display: flex; flex-direction: column; }
.ps-brand-name { color: #fff; font-size: 1.15rem; font-weight: 900; }
.ps-brand-name span { color: var(--gold); }
.ps-brand-sub { color: var(--muted); font-size: .75rem; }

.ps-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.ps-nav a {
  color: rgba(255,255,255,.82); font-weight: 650; font-size: .9rem;
  padding: .45rem .85rem; border-radius: 999px;
}
.ps-nav a:hover, .ps-nav a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.ps-nav a.ps-cta { background: var(--gold); color: #111 !important; font-weight: 800; }
.ps-nav a.ps-cta:hover { background: #ffd166; }

.ps-search {
  display: flex; align-items: center; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.ps-search input {
  background: transparent; border: 0; color: #fff; padding: .65rem 1rem;
  min-width: 180px; font-family: inherit; outline: none;
}
.ps-search button {
  border: 0; background: var(--gold); color: #111; font-weight: 800;
  padding: .65rem 1rem; cursor: pointer; font-family: inherit;
}

/* hero */
.ps-hero {
  position: relative; overflow: hidden;
  padding: 2.8rem 0 3rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #101826 0%, #172033 50%, #1a2436 100%);
  border-bottom: 1px solid var(--line);
}
.ps-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(245,185,66,.22), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(56,189,248,.12), transparent 40%);
  pointer-events: none;
}
.ps-hero-inner { position: relative; z-index: 1; max-width: 44rem; }
.ps-kicker {
  display: inline-flex; gap: .4rem; align-items: center;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(245,185,66,.12); border: 1px solid rgba(245,185,66,.35);
  color: #fde68a; font-size: .8rem; font-weight: 700; margin-bottom: 1rem;
}
.ps-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: .7rem; }
.ps-hero p { color: rgba(255,255,255,.72); font-size: 1.02rem; margin-bottom: 1.2rem; }
.ps-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: .95rem;
}
.ps-btn-primary { background: var(--gold); color: #111 !important; }
.ps-btn-primary:hover { background: #ffd166; color: #111 !important; }
.ps-btn-ghost { background: rgba(255,255,255,.08); color: #fff !important; border: 1px solid var(--line); }

/* layout: content LEFT + widgets RIGHT (LTR grid, RTL text) */
.ps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.35rem;
  align-items: start;
  padding-bottom: 3rem;
  direction: ltr; /* first column = left (content), second = right (widgets) */
}

.ps-main,
.ps-side {
  min-width: 0;
  direction: rtl; /* keep Persian text RTL inside columns */
}

.ps-side {
  position: sticky;
  top: 84px;
}

.ps-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: .4rem 0 1rem;
}
.ps-section-head h2 { font-size: 1.2rem; }
.ps-section-head a { color: var(--accent); font-weight: 700; font-size: .9rem; }

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ps-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.ps-card:hover { transform: translateY(-3px); border-color: rgba(245,185,66,.35); }
.ps-card-thumb {
  aspect-ratio: 2 / 3; background: #0f1520; overflow: hidden; position: relative;
}
.ps-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-card-body { padding: .9rem 1rem 1.05rem; }
.ps-card-title { font-size: .95rem; margin-bottom: .35rem; }
.ps-card-title a { color: #fff; }
.ps-card-title a:hover { color: var(--gold); }
.ps-card-meta { color: var(--muted); font-size: .78rem; }

/* single */
.ps-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.ps-article-thumb { max-height: 360px; overflow: hidden; background: #0f1520; }
.ps-article-thumb img { width: 100%; max-height: 360px; object-fit: cover; }
.ps-article-body { padding: 1.35rem 1.4rem 1.6rem; }
.ps-article-body h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: .6rem; }
.ps-content { color: #d5dee9; font-size: 1.02rem; }
.ps-content a { color: var(--gold); border-bottom: 1px solid rgba(245,185,66,.3); }
.ps-content img { border-radius: 12px; margin: 1rem 0; }
.ps-content h2, .ps-content h3 { margin: 1.3rem 0 .55rem; }
.ps-content ul, .ps-content ol { margin: 0 0 1rem 1.2rem; list-style: disc; }
.ps-content ol { list-style: decimal; }

/* widgets / behtarinseo */
.sidebar-block,
.ps-widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.1rem;
  margin-bottom: 1rem;
}
.sidebar-block .title,
.ps-widget-title {
  font-size: 1rem; margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold); color: #fff;
}
.block-right, .block-left, .block-footer { color: var(--muted); }
.sidebar-block a, .ps-widget a { color: #93c5fd; font-weight: 650; font-size: .9rem; }
.sidebar-block a:hover, .ps-widget a:hover { color: var(--gold); }
.sidebar-block li { margin: .35rem 0; }

.behtarinseo,
.execphpwidget .behtarinseo {
  background: var(--panel-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: .85rem 1rem !important;
  margin-top: .5rem !important;
  overflow: visible !important;
  height: auto !important;
}
.behtarinseo a,
.behtarinseo li a,
.execphpwidget a {
  color: #fde68a !important;
  font-weight: 700 !important;
  display: block;
  line-height: 1.7;
}
.behtarinseo a:hover { color: #fff !important; }
.behtarinseo ul { list-style: disc !important; padding-right: 1.1em !important; }
.behtarinseo li { margin: .35rem 0 !important; color: var(--ink) !important; }
.behtarinseo table { width: 100% !important; border-collapse: collapse !important; background: var(--panel) !important; }
.behtarinseo td, .behtarinseo th {
  border: 1px solid var(--line) !important; padding: .5rem .65rem !important;
  background: var(--panel) !important; color: var(--ink) !important;
}

/* footer */
.ps-footer {
  background: #080b11;
  border-top: 3px solid var(--gold);
  color: var(--muted);
  padding: 1.8rem 0 2.2rem;
  text-align: center;
}
.ps-footer .wfooter,
.ps-footer .sidebar-block {
  text-align: right;
  max-width: var(--max);
  margin: 0 auto 1rem;
}
.ps-footer-copy { font-size: .9rem; }
.ps-footer-copy strong { color: #fff; }
.ps-footer a { color: #fde68a; }

/* pagination */
.pagination ul, .ps-pager {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1rem 0 1.5rem;
}
.pagination a, .pagination span, .ps-pager a, .ps-pager .current, .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.3rem; height: 2.3rem; padding: 0 .65rem;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  color: #fff; font-weight: 700;
}
.pagination .current, .ps-pager .current, .page-numbers.current {
  background: var(--gold); border-color: var(--gold); color: #111;
}

@media (max-width: 1024px) {
  .ps-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ps-layout {
    grid-template-columns: 1fr;
  }
  .ps-main { order: 1; }
  .ps-side {
    order: 2;
    position: static;
  }
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-search { width: 100%; }
  .ps-search input { flex: 1; min-width: 0; }
  .ps-brand-sub { display: none; }
}
@media (max-width: 480px) {
  .ps-grid { grid-template-columns: 1fr; }
}
