/* ================= هدر — خانهٔ ربات و وب | Shahbazion.ir ================= */
/* ================= متغیرهای هماهنگ با main.css ================= */
:root {
  --header-bg: #fdfaf5;
  --header-text: var(--text-primary, #2c2c2c);
  --header-text-muted: var(--text-secondary, #5c5c5c);
  --header-accent: var(--accent-gold, #c9a84c);
  --header-accent-hover: var(--accent-gold-hover, #b4922f);
  --header-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

/* ================= هدر با پس‌زمینهٔ کاملاً روشن ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  padding: 1.2rem 1rem;
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  color: var(--header-text);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: var(--transition, all 0.3s ease);
}

/* ================= محتوای هدر ================= */
.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
  text-align: right;
}

/* ================= لوگو (تصویر شهباز طلایی) ================= */
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  width: 70px;
  height: auto;
  border-radius: var(--radius-lg, 12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--header-accent);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.1);
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}

/* ================= عنوان‌ها ================= */
.title-section h1,
.title-section h2 {
  font-family: "B Nazanin", "Poppins", Tahoma, sans-serif;
  margin: 0;
  color: var(--header-text);
}

.title-section h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.title-section h2 {
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--header-text-muted);
}

/* ================= منوی ناوبری (دسکتاپ) ================= */
.header-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--header-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
  font-size: 0.95rem;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--header-accent);
  transition: width 0.25s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--header-accent-hover);
  background-color: transparent;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  width: 60%;
}

/* لینک فعال (صفحه فعلی) */
.header-nav a.disabled {
  color: var(--header-accent-hover) !important;
  pointer-events: none;
  background: transparent !important;
}
.header-nav a.disabled::after {
  width: 60%;
  background-color: var(--header-accent-hover);
}

/* لینک بلاگ — ساده‌سازی شده */
.header-nav a.blog-link {
  background-color: rgba(201,168,76,0.08);
  color: var(--header-accent);
  font-weight: 700;
  border-radius: 8px;
}
.header-nav a.blog-link:hover {
  background-color: rgba(201,168,76,0.15);
  color: var(--header-accent-hover);
}

/* ================= دکمه‌های کناری (دارک مود + داشبورد) ================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark-toggle-btn {
  background: none;
  border: 1px solid var(--border-light, #ddd);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--header-text);
}
.dark-toggle-btn:hover {
  background-color: rgba(201,168,76,0.1);
}

.dashboard-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-light, #ddd);
  border-radius: 10px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--header-text);
  transition: all 0.2s ease;
}
.dashboard-toggle:hover {
  background-color: rgba(201,168,76,0.08);
  border-color: var(--header-accent);
}

/* ================= پنل داشبورد (سمت چپ) ================= */
.dashboard-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  max-width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 25px rgba(0,0,0,0.08);
  overflow-y: auto;
  transition: left 0.4s ease;
  z-index: 10002;
  border-radius: 0 16px 16px 0;
}
.dashboard-panel.active {
  left: 0;
}

.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 10001;
}
body.dashboard-open .dashboard-overlay {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.dashboard-content {
  padding: 1rem;
}
/* (بقیهٔ استایل‌های فرم ورود/ثبت‌نام از main.css و دکمه‌ها پیروی می‌کنند) */

/* ================= موبایل ================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .header-nav {
    display: none !important; /* فقط از منوی داشبورد استفاده می‌شود */
  }
  .title-section h1 {
    font-size: 1.2rem;
  }
  .logo {
    width: 60px;
  }
}