/* Path: /public/assets/css/topical-theme.css (REPLACE FULL FILE) */

/* ================== FONT ================== */
@font-face {
  font-family: 'VazirFD';
  src: url('/fonts/Vazir-FD.woff2') format('woff2'),
       url('/fonts/Vazir-FD.woff') format('woff'),
       url('/fonts/Vazir-FD.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ================== VARIABLES ================== */
:root{
  --tp-bg:#ffffff;
  --tp-bg-soft:#f7f9ff;
  --tp-card:#ffffff;

  --tp-text:#0f172a;
  --tp-muted:#64748b;
  --tp-line:rgba(15,23,42,.10);

  /* ✅ جدی: بک‌لینک آبی / رپورتاژ قرمز */
  --tp-blue:#0b5ed7;
  --tp-blue2:#083a95;

  --tp-red:#dc3545;
  --tp-red2:#b42333;

  --tp-radius-xl:22px;
  --tp-radius-lg:18px;
  --tp-radius-md:14px;

  --tp-shadow-soft:0 14px 34px rgba(15,23,42,.08);
  --tp-shadow-card:0 18px 55px rgba(15,23,42,.12);
  --tp-shadow-strong:0 22px 70px rgba(15,23,42,.16);
}

/* ================== BASE ================== */
html,body{height:100%}
body{
  font-family:'VazirFD', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(11,94,215,.10), transparent 55%),
    radial-gradient(circle at 95% 10%, rgba(220,53,69,.08), transparent 45%),
    var(--tp-bg);
  color:var(--tp-text);
  font-size:.98rem;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--tp-blue);text-decoration:none}
a:hover{color:var(--tp-blue2);text-decoration:underline}
.ltr{direction:ltr;unicode-bidi:embed}
.text-muted{color:var(--tp-muted)!important}

/* ================== HEADER / MENU (Sleek, Single Logo, Blue/Red) ================== */

.app-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,.22);
}

.app-navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

/* Brand (single logo only here) */
.app-brand{
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 190px;
}

.app-logo-circle{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 25%, #ffb703 0, var(--tp-red) 42%, var(--tp-blue) 100%);
  box-shadow: 0 16px 38px rgba(15,23,42,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color:#fff;
  font-weight: 950;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.app-brand-title{
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}

.app-brand-sub{
  font-size: .82rem;
  color: rgba(100,116,139,.95);
}

/* Menu container */
.app-nav-links{
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  padding: .35rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
}

/* Menu items */
.app-nav-link{
  font-size: .86rem;
  font-weight: 900;
  padding: .42rem .95rem;
  border-radius: 999px;
  color: rgba(30,41,59,.88);
  border: 1px solid transparent;
  background: transparent;
  transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
  text-decoration: none !important;
}

.app-nav-link:hover{
  background: rgba(11,94,215,.07);
  color: var(--tp-blue2);
  transform: translateY(-1px);
}

/* Active (default blue) */
.app-nav-link.active{
  background: linear-gradient(135deg, var(--tp-blue), var(--tp-blue2));
  color: #fff;
  box-shadow: 0 14px 32px rgba(11,94,215,.22);
}

/* Optional: make reportages red (add class="is-reportage") */
.app-nav-link.is-reportage:hover{
  background: rgba(220,53,69,.08);
  color: var(--tp-red2);
}
.app-nav-link.is-reportage.active{
  background: linear-gradient(135deg, var(--tp-red), var(--tp-red2));
  color: #fff;
  box-shadow: 0 14px 32px rgba(220,53,69,.18);
}

/* Right side buttons (cart/login/etc) */
.header-actions{
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Cart button */
.header-cart-btn{
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(11,94,215,.35);
  background: rgba(255,255,255,.92);
  color: var(--tp-blue2);
  font-weight: 950;
  font-size: .86rem;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  text-decoration: none !important;
}

.header-cart-btn:hover{
  background: rgba(11,94,215,.07);
}

.header-cart-badge{
  position: absolute;
  top: -6px;
  left: 72px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--tp-red);
  color: #fff;
  font-size: .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 10px 24px rgba(220,53,69,.22);
}

/* Mobile: stack nicely */
@media (max-width: 991.98px){
  .app-navbar{flex-wrap: wrap}
  .app-brand{min-width: auto}
  .app-nav-links{width: 100%; justify-content: flex-start}
  .header-actions{margin-inline-start: auto}
}


/* Active + Hover must stay readable */
.app-nav-link.active,
.app-nav-link.active:hover,
.app-nav-link.active:focus{
  color:#fff !important;
  text-decoration:none !important;
}

/* اگر Bootstrap چیزی رو override می‌کند */
.app-nav-links .nav-link.app-nav-link.active,
.app-nav-links .nav-link.app-nav-link.active:hover{
  color:#fff !important;
}

/* نسخه قرمز برای رپورتاژ */
.app-nav-link.is-reportage.active,
.app-nav-link.is-reportage.active:hover,
.app-nav-links .nav-link.app-nav-link.is-reportage.active,
.app-nav-links .nav-link.app-nav-link.is-reportage.active:hover{
  color:#fff !important;
}

/* ================== LAYOUT ================== */
.app-main{padding-top:1.4rem;padding-bottom:2.6rem}

/* PAGE HEADER BLOCK */
.page-header-block{
  padding:1.25rem 1.6rem;
  border-radius:var(--tp-radius-xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(11,94,215,.14), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(220,53,69,.10), transparent 45%),
    #fff;
  border:1px solid rgba(148,163,184,.30);
  box-shadow:0 16px 45px rgba(15,23,42,.09);
}

/* ================== GLOBAL CARDS ================== */
.card{
  border-radius:var(--tp-radius-lg);
  border:1px solid rgba(148,163,184,.18);
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.site-card,
.package-card{
  border-radius:var(--tp-radius-lg);
  border:1px solid rgba(148,163,184,.24);
  background:
    radial-gradient(circle at 10% 10%, rgba(11,94,215,.12), transparent 60%),
    radial-gradient(circle at 92% 14%, rgba(220,53,69,.10), transparent 45%),
    #fff;
  box-shadow:var(--tp-shadow-card);
  overflow:hidden;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.site-card:hover,
.package-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--tp-shadow-strong);
  border-color:rgba(11,94,215,.45);
}
.site-card::before,
.package-card::before{
  content:"";
  position:absolute;
  inset-inline-start:-15%;
  inset-block-start:-20%;
  width:50%;
  height:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), transparent 65%);
  opacity:.95;
  pointer-events:none;
}
.card-body{position:relative;z-index:1}

/* ================== CHIPS / BADGES ================== */
.tp-chip{
  display:inline-flex;align-items:center;gap:.4rem;
  border:1px solid var(--tp-line);
  border-radius:999px;
  padding:.25rem .65rem;
  font-size:.78rem;
  background:#fff;
  color:var(--tp-text);
}
.tp-chip-blue{border-color:rgba(11,94,215,.22);color:var(--tp-blue);font-weight:900}
.tp-chip-red{border-color:rgba(220,53,69,.24);color:var(--tp-red);font-weight:900}

.category-badge{
  font-size:.72rem;border-radius:999px;padding:.12rem .6rem;
  background:rgba(11,94,215,.10);
  color:var(--tp-blue2);
  border:1px solid rgba(11,94,215,.12);
}

/* ================== PRICING ================== */
.price-old{
  font-size:.85rem;
  text-decoration:line-through;
  color:rgba(220,53,69,.85);
}
.price-main{
  font-weight:950;
  font-size:1.08rem;
  color:#0f172a;
}
.price-main .tp-currency{color:var(--tp-muted);font-weight:700;font-size:.82rem}

/* ================== BUTTONS ================== */
.btn{
  border-radius:14px;
}
.btn-primary{
  background:linear-gradient(135deg, var(--tp-blue), var(--tp-blue2))!important;
  border-color:transparent!important;
  font-weight:900;
}
.btn-primary:hover{filter:brightness(.98)}
.btn-outline-primary{
  border-color:rgba(11,94,215,.55)!important;
  color:var(--tp-blue2)!important;
  font-weight:900;
}
.btn-outline-primary:hover{
  background:rgba(11,94,215,.08)!important;
  color:var(--tp-blue2)!important;
}

/* ✅ اختصاصی: بک‌لینک آبی / رپورتاژ قرمز */
.tp-btn-backlink{
  background:linear-gradient(135deg, var(--tp-blue), var(--tp-blue2));
  border:0;
  color:#fff!important;
  font-weight:950;
  border-radius:14px;
}
.tp-btn-backlink:hover{filter:brightness(.98)}
.tp-btn-reportage{
  background:linear-gradient(135deg, var(--tp-red), var(--tp-red2));
  border:0;
  color:#fff!important;
  font-weight:950;
  border-radius:14px;
}
.tp-btn-reportage:hover{filter:brightness(.98)}

/* ================== SHOP PAGE HELPERS ================== */
.tp-hero{
  border:1px solid rgba(148,163,184,.28);
  border-radius:var(--tp-radius-xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(11,94,215,.14), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(220,53,69,.10), transparent 45%),
    #fff;
  box-shadow:var(--tp-shadow-card);
  overflow:hidden;
  position:relative;
}
.tp-hero::after{
  content:"";
  position:absolute;
  inset:auto -15% -55% -15%;
  height:240px;
  background: radial-gradient(circle at 50% 50%, rgba(11,94,215,.10), transparent 60%);
  pointer-events:none;
}
.tp-logo-lg{
  width:120px;height:120px;
  border-radius:26px;
  border:1px solid rgba(148,163,184,.25);
  background:#fff;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 34px rgba(15,23,42,.10);
}
.tp-logo-lg img{width:100%;height:100%;object-fit:contain}

.tp-prebuy{
  border:1px solid rgba(11,94,215,.18);
  border-radius:18px;
  background:
    radial-gradient(circle at 15% 25%, rgba(11,94,215,.08), transparent 55%),
    #fff;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  padding:14px 16px;
}
.tp-prebuy p{margin:0;color:var(--tp-muted);line-height:2}
.tp-prebuy b{color:var(--tp-text)}

.tp-buy-card{
  border-radius:var(--tp-radius-xl);
  border:1px solid rgba(148,163,184,.22);
  box-shadow:var(--tp-shadow-card);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  background:#fff;
  position:relative;
}
.tp-buy-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--tp-shadow-strong);
  border-color:rgba(11,94,215,.35);
}
.tp-buy-card.tp-reportage{
  background:
    radial-gradient(circle at 90% 20%, rgba(220,53,69,.12), transparent 50%),
    radial-gradient(circle at 15% 20%, rgba(220,53,69,.08), transparent 45%),
    #fff;
}
.tp-buy-card.tp-backlink{
  background:
    radial-gradient(circle at 90% 20%, rgba(11,94,215,.14), transparent 50%),
    radial-gradient(circle at 15% 20%, rgba(11,94,215,.10), transparent 45%),
    #fff;
}
.tp-buy-head{
  padding:14px 14px 0 14px;
  display:flex;align-items:flex-start;justify-content:space-between;
}
.tp-buy-title{
  font-weight:950;
  margin:0;
  font-size:1.05rem;
}
.tp-buy-sub{color:var(--tp-muted);font-size:.86rem;margin-top:2px}
.tp-price-box{
  margin:12px 14px 0 14px;
  border:1px dashed rgba(15,23,42,.16);
  border-radius:16px;
  padding:10px 12px;
  background:rgba(248,250,252,.9);
}
.tp-price-box .main{font-weight:950;font-size:1.35rem;line-height:1.2}
.tp-price-box .main small{font-weight:800;color:var(--tp-muted);font-size:.82rem}
.tp-buy-body{padding:14px}

/* ================== RELATED / FEATURED CARDS ================== */
.tp-mini-card{
  border-radius:18px;
  border:1px solid rgba(148,163,184,.22);
  background:
    radial-gradient(circle at 10% 10%, rgba(11,94,215,.10), transparent 60%),
    radial-gradient(circle at 92% 14%, rgba(220,53,69,.08), transparent 45%),
    #fff;
  box-shadow:0 14px 40px rgba(15,23,42,.09);
  padding:12px 12px;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow:hidden;
}
.tp-mini-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 55px rgba(15,23,42,.14);
  border-color:rgba(220,53,69,.28);
}
.tp-mini-logo{
  width:54px;height:54px;border-radius:16px;
  border:1px solid rgba(148,163,184,.22);
  background:#fff;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.tp-mini-logo img{width:100%;height:100%;object-fit:contain}

/* ================== CATEGORY FILTER ================== */
.category-filter-bar{
  border-radius:var(--tp-radius-lg);
  background:rgba(255,255,255,.98);
  border:1px solid rgba(148,163,184,.26);
  padding:.65rem .95rem;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  align-items:center;
}
.category-pill{
  border-radius:999px;
  font-size:.8rem;
  padding:.25rem .9rem;
  border:1px solid transparent;
  color:var(--tp-muted);
  background:#f3f4f6;
  transition:all .15s ease-out;
  cursor:pointer;
}
.category-pill:hover{
  background:rgba(11,94,215,.08);
  color:var(--tp-blue2);
  border-color:rgba(11,94,215,.40);
}
.category-pill.active{
  background:linear-gradient(135deg, var(--tp-blue), var(--tp-blue2));
  color:#fff;
  border-color:transparent;
  box-shadow:0 14px 34px rgba(11,94,215,.35);
}

/* ================== FOOTER ================== */
.app-footer{
  padding:1.7rem 0 1.1rem;
  font-size:.82rem;
  color:var(--tp-muted);
}
.app-footer a{color:var(--tp-blue)}
.app-footer a:hover{color:var(--tp-blue2)}


/* ================== Card Typography (Clean / Compact) ================== */

.card-body{
  font-size: .95rem;
  line-height: 1.9;
  color: var(--tp-text);
}

/* Headings inside cards */
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6{
  margin: 0 0 .55rem 0;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -.02em;
}

.card-body h1{font-size: 1.20rem;}
.card-body h2{font-size: 1.12rem;}
.card-body h3{font-size: 1.05rem;}
.card-body h4{font-size: 1.00rem;}
.card-body h5{font-size: .95rem;}
.card-body h6{font-size: .90rem; color: rgba(15,23,42,.78);}

/* Paragraphs and lists */
.card-body p{
  margin: 0 0 .75rem 0;
  color: rgba(15,23,42,.88);
}
.card-body p:last-child{margin-bottom:0}

.card-body ul,
.card-body ol{
  margin: .4rem 0 .9rem 0;
  padding-inline-start: 1.15rem;
}
.card-body li{margin: .18rem 0}

/* Small / muted text inside cards */
.card-body .small{font-size: .88rem;}
.card-body .text-muted{color: rgba(100,116,139,.95)!important}

/* Divider */
.card-body hr{
  margin: .9rem 0;
  border-color: rgba(148,163,184,.28);
}

/* Nice inline badges/chips spacing */
.card-body .badge,
.card-body .tp-chip{
  vertical-align: middle;
}
