/*
Theme Name: Lux Blog Pro
Theme URI: https://tanhuaba.xyz/
Author: Lux Blog
Description: قالب سبک، سریع و RTL برای بلاگ سینما و دانلود آهنگ — لوکس بلاگ
Version: 1.0.0
Text Domain: lux-blog-pro
*/

@import url("https://cdn.jsdelivr.net/npm/vazirmatn@33.003/Vazirmatn-font-face.css");

:root {
  --bg: #0a0c12;
  --bg-2: #10141e;
  --panel: #151a26;
  --panel-2: #1c2333;
  --ink: #eef2f8;
  --muted: #9aa6bb;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f5b041;
  --gold-deep: #d4891a;
  --cyan: #38bdf8;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1120px;
}

*,
*::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 70% 45% at 100% -8%, rgba(245, 176, 65, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 40% at 0% 12%, rgba(56, 189, 248, 0.08), transparent 48%),
    linear-gradient(180deg, #07090f 0%, var(--bg) 40%, #0c1018 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: color .15s ease; }
a:hover { color: #ffd48a; }
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; }

.lb-wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* topbar */
.lb-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 18, 0.92);
  border-bottom: 1px solid var(--line);
}
.lb-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}
.lb-brand { display: flex; flex-direction: column; gap: .1rem; }
.lb-brand-name { color: #fff; font-size: 1.2rem; font-weight: 900; }
.lb-brand-name span { color: var(--gold); }
.lb-brand-sub { color: var(--muted); font-size: .75rem; }
.lb-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.lb-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  font-size: .9rem;
  padding: .45rem .85rem;
  border-radius: 999px;
}
.lb-nav a:hover,
.lb-nav a.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lb-search {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lb-search input {
  background: transparent;
  border: 0;
  color: #fff;
  padding: .65rem 1rem;
  min-width: 170px;
  font-family: inherit;
  outline: none;
}
.lb-search button {
  border: 0;
  background: var(--gold);
  color: #1a1205;
  font-weight: 800;
  padding: .65rem 1rem;
  cursor: pointer;
  font-family: inherit;
}

/* hero */
.lb-hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 0 2.8rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #0c1018 0%, #151c2c 55%, #1a2030 100%);
  border-bottom: 1px solid var(--line);
}
.lb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 22%, rgba(245, 176, 65, 0.22), transparent 42%),
    radial-gradient(circle at 8% 78%, rgba(56, 189, 248, 0.1), transparent 40%);
}
.lb-hero-inner { position: relative; z-index: 1; max-width: 40rem; }
.lb-kicker {
  display: inline-flex;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: rgba(245, 176, 65, 0.12);
  border: 1px solid rgba(245, 176, 65, 0.35);
  color: #fcd34d;
  font-size: .8rem;
  font-weight: 700;
}
.lb-hero h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); margin-bottom: .65rem; }
.lb-hero p { color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; margin-bottom: 1.15rem; }
.lb-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
}
.lb-btn-primary { background: var(--gold); color: #1a1205 !important; }
.lb-btn-primary:hover { background: var(--gold-deep); color: #fff !important; }
.lb-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #fff !important;
  border: 1px solid var(--line);
}

/* layout: content left, sidebar right (visual RTL via LTR grid) */
.lb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.3rem;
  align-items: start;
  padding-bottom: 2.8rem;
  direction: ltr;
}
.lb-main,
.lb-side { min-width: 0; direction: rtl; }
.lb-side { position: sticky; top: 84px; }

/* cards */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.lb-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;
}
.lb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 176, 65, 0.4);
}
.lb-card-thumb {
  aspect-ratio: 16 / 10;
  background: #0d1420;
  overflow: hidden;
}
.lb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-card-body { padding: 1rem 1.05rem 1.1rem; }
.lb-card-meta { color: var(--muted); font-size: .8rem; margin-bottom: .35rem; }
.lb-card-title { font-size: 1.02rem; }
.lb-card-title a { color: #fff; }
.lb-card-title a:hover { color: var(--gold); }
.lb-excerpt { color: #b0bac9; font-size: .92rem; margin-top: .4rem; }
.lb-readmore {
  display: inline-flex;
  margin-top: .7rem;
  color: var(--cyan);
  font-weight: 800;
  font-size: .88rem;
}

/* single / page */
.lb-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.lb-article-thumb {
  max-height: 380px;
  overflow: hidden;
  background: #0d1420;
}
.lb-article-thumb img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.lb-article-body { padding: 1.35rem 1.35rem 1.6rem; }
.lb-article-body h1 {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  margin-bottom: .5rem;
}
.lb-content { color: #d5dee9; font-size: 1.02rem; }
.lb-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 176, 65, 0.3);
}
.lb-content img { border-radius: 12px; margin: 1rem 0; }
.lb-content h2,
.lb-content h3 { margin: 1.25rem 0 .5rem; }
.lb-content ul,
.lb-content ol { margin: 0 0 1rem 1.2rem; list-style: disc; }
.lb-content ol { list-style: decimal; }

/* widgets + ads */
.widget,
.lb-widget,
.header-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;
}
.widget-header,
.widget-title,
.lb-widget-title {
  font-size: 1rem;
  margin-bottom: .7rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--gold);
  color: #fff;
}
.widget a,
.lb-widget a { color: #93c5fd; font-weight: 650; font-size: .9rem; }
.widget a:hover { color: var(--gold); }
.widget ul 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: .35rem !important;
  overflow: visible !important;
  height: auto !important;
}
.behtarinseo a,
.execphpwidget a {
  color: #fcd34d !important;
  font-weight: 700 !important;
  display: inline-block;
  line-height: 1.8;
}
.behtarinseo a:hover { color: #fff !important; }
.behtarinseo div[style*="border: 1px solid"] {
  border-color: rgba(245, 176, 65, 0.35) !important;
  border-radius: 8px;
  margin: .35rem 0;
  padding: .35rem .5rem;
  background: rgba(0, 0, 0, 0.2);
}

.lb-header-widgets { margin: 0 0 1rem; }
.lb-header-widgets .header-widget,
.lb-header-widgets .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: .35rem 0;
  margin: 0;
}

/* footer */
.lb-footer {
  background: #05070c;
  border-top: 3px solid var(--gold);
  color: var(--muted);
  padding: 1.7rem 0 2.1rem;
  text-align: center;
}
.lb-footer strong { color: #fff; }
.lb-footer a { color: #fcd34d; }

/* pager */
.lb-pager,
.navigation.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 1.4rem;
}
.lb-pager a,
.lb-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;
}
.lb-pager .current,
.page-numbers.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1205;
}

@media (max-width: 900px) {
  .lb-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .lb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lb-layout { grid-template-columns: 1fr; }
  .lb-main { order: 1; }
  .lb-side { order: 2; position: static; }
  .lb-search { width: 100%; }
  .lb-search input { flex: 1; min-width: 0; }
  .lb-brand-sub { display: none; }
}
