/*
  فایل: app.css
  محل: public_html/assets/css/app.css
  پالت: زرد + خاکستری + سفید، حس ادیتوریال/مجله‌ای، تخت (بدون گلس‌مورفیسم)، دکمه‌های حبه‌ای
*/

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  min-height: 100vh;
  color: #161616;
}

/* کارت‌های تخت - دیگه بلور شیشه‌ای نیست، ساده و تمیز */
.glass {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: border-color 0.3s ease;
}
/* یه لبه‌ی نازک زرد که موقع هاور می‌درخشه - همون حس نوار بالای سایت */
.glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(245,180,0,0.5), transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderSlide 3s linear infinite;
  pointer-events: none;
}
@keyframes borderSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.glass-dark {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: #fafafa;
}
.glass-dark a, .glass-dark h3, .glass-dark h4 { color: #fafafa !important; }
.glass-dark p, .glass-dark .text-gray-600, .glass-dark .text-gray-500 { color: rgba(250, 250, 250, 0.6) !important; }

.card-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* دکمه اصلی: سبز توپر، حبه‌ای، متن سفید */
.btn-primary {
  background: #059669;
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 2px solid #059669;
  position: relative;
  overflow: hidden;
}

/* نقش چوقا رو دکمه‌های اصلی موقع هاور - سیاه و سفید خالص با موشن */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.9) 0px, rgba(255,255,255,0.9) 1px,
    transparent 1px, transparent 4px,
    rgba(255,255,255,0.9) 4px, rgba(255,255,255,0.9) 6px,
    transparent 6px, transparent 8px,
    rgba(255,255,255,0.9) 8px, rgba(255,255,255,0.9) 11px,
    transparent 11px, transparent 14px,
    rgba(255,255,255,0.9) 14px, rgba(255,255,255,0.9) 15px,
    transparent 15px, transparent 20px
  );
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* دکمه ثانویه: سفید با حاشیه مشکی، حبه‌ای (دقیقاً "WATCH MY VIDEOS") */
.btn-outline {
  background: #ffffff;
  color: #161616;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid #161616;
  transition: all 0.25s ease;
}

/* دکمه لهجه‌ی قرمز (برای موارد فوری/تخفیف) */
.btn-accent {
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
}

/* ⚠️ همه‌ی افکت‌های :hover رو فقط دستگاه‌هایی که واقعاً موس دارن می‌بینن.
   قبلاً این افکت‌ها با هر لمس رو گوشی هم فعال می‌شدن و باعث لرزش/پرش دکمه‌ها می‌شدن. */
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-4px);
    border-color: #059669;
    box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.12);
  }
  .btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
  }
  .btn-primary:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
  .btn-outline:hover {
    background: #161616;
    color: #ffffff;
  }
  .btn-accent:hover { background: #b91c1c; }
  .nav-link:hover::after { right: 0; left: 0; }
  .readmore-btn:hover { text-decoration: underline; }
  .glass:hover::before { opacity: 1; }
}

/* تیتر با کلمه‌ی زرد برجسته (مثل "DISCOVER THE WORLD") */
.gradient-text {
  color: #047857;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
  background: #059669;
  animation: blobMove 14s ease-in-out infinite;
  pointer-events: none;
}
/* رو موبایل، انیمیشن پیوسته‌ی بلوب‌ها و نوار بالا رو خاموش می‌کنیم تا فشار کمتری به گوشی‌های ضعیف‌تر بیاد */
@media (max-width: 768px) {
  .blob { animation: none; opacity: 0.12; }
  .top-gradient-bar { animation: none; }
}
@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.15); }
  66% { transform: translate(-30px, 25px) scale(0.9); }
}

/* انیمیشن ورود عناصر موقع اسکرول (کلاس reveal رو با JS موقع دیده‌شدن فعال می‌کنیم) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* لرزش ظریف دکمه اصلی برای جلب توجه (خیلی کم و شیک، نه آزاردهنده) */
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(245, 180, 0, 0.15); }
  50% { box-shadow: 0 4px 22px rgba(245, 180, 0, 0.45); }
}
.btn-attention { animation: gentle-pulse 2.5s ease-in-out infinite; }

.status-dot { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.8s ease-out; }

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUp 0.6s ease-out; }

/* خط جداکننده زرد نازک زیر تیترها */
.gold-underline { position: relative; display: inline-block; }
.gold-underline::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: -8px;
  height: 4px;
  background: #059669;
  border-radius: 2px;
}

/* برش موربِ پایین بخش هیرو - واکنش‌گرا برای موبایل/تبلت/دسکتاپ */
.hero-diagonal {
  position: relative;
  background: linear-gradient(180deg, #eeeeee 0%, #dcdcdc 100%);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding-bottom: 3.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero-diagonal { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); padding-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .hero-diagonal { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); padding-bottom: 8rem; }
}

/* فیلدهای فرم (متن، شماره، select) کمی تیره‌تر و با فوکوس متحرک */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="password"], textarea, select {
  border-color: #c2c2c2;
}
input:focus, textarea:focus, select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.15) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* نوار زردِ متحرک بالای سایت - محسوس‌ترین نشونه‌ی «زنده بودن» تم */
.top-gradient-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #059669, #a7f3d0, #059669, #34d399, #059669);
  background-size: 300% 100%;
  animation: barSlide 6s linear infinite;
}
@keyframes barSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* بج شناور روی تصویر/کارت (لایه‌ی اضافه برای حس خفن‌تر) */
.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 10px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  border: 1px solid #ececec;
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* تیتر بزرگ واکنش‌گرا - رو گوشی خیلی کوچیک هم سرریز نمی‌شه */
.hero-title {
  font-size: clamp(1.9rem, 6vw, 3.75rem);
  line-height: 1.08;
}

/* دکمه‌ها: سایه و حس لمسی بهتر */
.btn-primary, .btn-outline {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.btn-primary:active, .btn-outline:active {
  transform: scale(0.97);
}
@media (max-width: 480px) {
  .btn-primary, .btn-outline { width: 100%; justify-content: center; display: inline-flex; }
}

/* لینک‌های ناوبری: خط زیر زرد که از وسط باز می‌شه */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  right: 50%; left: 50%; bottom: -4px;
  height: 2px;
  background: #059669;
  transition: right 0.25s ease, left 0.25s ease;
}

/* جلوگیری از اسکرول افقی ناخواسته رو موبایل */
html, body { overflow-x: hidden; max-width: 100%; }
img, iframe, video { max-width: 100%; }

/* متن کوتاه‌شده با دکمه «ادامه مطلب» - برای همه‌ی توضیحات بلند تو کارت‌ها */
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-2.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.readmore-btn {
  color: #047857;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
}

/* استایل محتوای غنی (خروجی ادیتور متنی پنل) - چون Tailwind خودش استایل h1/h2/جدول رو صفر می‌کنه */
.rich-content h1 { font-size: 1.875rem; font-weight: 900; margin: 1.5rem 0 1rem; line-height: 1.3; }
.rich-content h2 { font-size: 1.5rem; font-weight: 800; margin: 1.3rem 0 0.8rem; line-height: 1.3; }
.rich-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.1rem 0 0.6rem; }
.rich-content h4 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.rich-content p { margin: 0.75rem 0; line-height: 1.9; }
.rich-content ul { list-style: disc; padding-right: 1.5rem; margin: 0.75rem 0; }
.rich-content ol { list-style: decimal; padding-right: 1.5rem; margin: 0.75rem 0; }
.rich-content li { margin: 0.3rem 0; }
.rich-content a { color: #047857; text-decoration: underline; }
/* FIX: باکس هشدار قبلاً فقط تو ادیتور استایل داشت، رو خود سایت بی‌استایل بود */
.rich-content .content-warning-box { border-right: 4px solid #f59e0b; background: #fffbeb; padding: 0.75rem 1rem; border-radius: 8px; margin: 1rem 0; }
/* بند «سایتیشن داخلی»: دکمه‌ی لینک داخلی */
.rich-content a.cta-button { display: inline-block; background: #059669; color: #fff; padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; text-decoration: none; margin: 0.5rem 0.25rem; }
.rich-content a.cta-button:hover { background: #047857; color: #fff; }
.rich-content blockquote { border-right: 4px solid #059669; padding: 0.5rem 1rem; margin: 1rem 0; background: #fafafa; border-radius: 8px; color: #555; }
.rich-content img { border-radius: 16px; margin: 1rem 0; max-width: 100%; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-content table td, .rich-content table th { border: 1px solid #e0e0e0; padding: 0.6rem; text-align: right; }
.rich-content table th { background: #fafafa; font-weight: 700; }
.rich-content iframe { max-width: 100%; border-radius: 16px; margin: 1rem 0; }

/* الگوی چوقا بختیاری - نماد بومی منطقه. حتماً سیاه و سفید خالص، خطوط نامساوی (نه تکرار یکنواخت) */
.choga-frame {
  background: #ffffff;
  padding: 10px 0;
  overflow: hidden;
  width: 100%;
}
.choga-svg { width: 100%; height: 44px; display: block; }
.choga-svg rect.bar {
  fill: #0a0a0a;
}
