/*
Theme Name: AiBehnia
Theme URI: https://aibehnia.com
Author: Benji – behniaAi
Author URI: https://aibehnia.com
Description: قالب فارسی RTL برای سایت هوش مصنوعی aibehnia.com — طراحی مینیمال، سریع و واکنش‌گرا
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aibehnia
Tags: rtl-language, dark, minimal, ai, blog, portfolio
*/

/* =============================================
   TOKEN SYSTEM — رنگ، تایپوگرافی، فاصله‌ها
   ============================================= */
:root {
  /* --- Palette --- */
  --clr-bg:          #0a0a0a;   /* مشکی عمیق — بک‌گراند اصلی */
  --clr-surface:     #141414;   /* سطح کارت‌ها */
  --clr-surface-2:   #1e1e1e;   /* سطح دوم، هاور */
  --clr-border:      #2a2a2a;   /* خطوط جداکننده */
  --clr-orange:      #f97316;   /* نارنجی اصلی — accent */
  --clr-orange-dim:  #c2581a;   /* نارنجی تیره‌تر — هاور */
  --clr-orange-glow: rgba(249, 115, 22, 0.15); /* هاله نارنجی */
  --clr-white:       #ffffff;
  --clr-text:        #e5e5e5;   /* متن اصلی */
  --clr-text-muted:  #8a8a8a;   /* متن فرعی */

  /* --- Typography --- */
  --font-display: 'Vazirmatn', 'Tahoma', sans-serif;
  --font-body:    'Vazirmatn', 'Tahoma', sans-serif;
  --font-mono:    'Courier New', monospace;

  /* --- Scale --- */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;

  /* --- Spacing --- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* --- Layout --- */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 180ms;
  --dur-med:  320ms;
  --dur-slow: 600ms;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-orange);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--clr-orange-dim);
}

ul, ol {
  list-style: none;
}

/* =============================================
   LAYOUT UTILS
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-24);
}

.section--sm {
  padding-block: var(--sp-16);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.text-muted   { color: var(--clr-text-muted); }
.text-orange  { color: var(--clr-orange); }
.text-center  { text-align: center; }

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-orange);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--clr-orange);
  color: #000;
}

.btn--primary:hover {
  background: var(--clr-orange-dim);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid var(--clr-border);
}

.btn--outline:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
  transform: translateY(-2px);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  margin-bottom: var(--sp-12);
  text-align: center;
}

.section-header .label {
  display: block;
  margin-bottom: var(--sp-3);
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  transition: border-color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.card:hover {
  border-color: var(--clr-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.1);
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  width: 48px;
  height: 3px;
  background: var(--clr-orange);
  margin-block: var(--sp-4);
}

.divider--center {
  margin-inline: auto;
}

/* =============================================
   SCROLL REVEAL ANIMATION BASE
   ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }

/* =============================================
   REDUCED MOTION — accessibility
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   RESPONSIVE BASE
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .section { padding-block: var(--sp-16); }
  .container { padding-inline: var(--sp-4); }
}

/* =============================================
   FOOTER — global (همه صفحات)
   ============================================= */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand { display: flex; flex-direction: column; }

.footer__logo {
  display: inline-block;
  margin-bottom: var(--sp-4);
  text-decoration: none;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.social-link:hover {
  color: var(--clr-orange);
  border-color: var(--clr-orange);
  background: var(--clr-orange-glow);
}

.footer__col { display: flex; flex-direction: column; }

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  transition: color var(--dur-fast);
}

.footer__links a:hover { color: var(--clr-orange); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy,
.footer__made {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.footer__copy a { color: var(--clr-text-muted); }
.footer__copy a:hover { color: var(--clr-orange); }

/* فوتر tablet */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* فوتر موبایل */
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   PROMPT COUNT BADGE
   ============================================= */
.prompt-count-badge {
  background: var(--clr-orange-glow);
  color: var(--clr-orange);
  border: 1px solid rgba(249,115,22,0.3);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* چند باکس پرامپت زیر هم */
.prompt-single__boxes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.footer__grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 2rem !important;
}