/* ╔══════════════════════════════════════════════════╗
   ║                    Base CSS                      ║
   ║        استایل‌های عمومی و مشترک کل سایت          ║
   ╚══════════════════════════════════════════════════╝ */

:root {
  --bg: #f4f6f9;
  --bg-white: #ffffff;

  --text: #1a1a2e;
  --text-secondary: #5a6178;
  --text-muted: #9ca3b8;

  --border: #e4e8ef;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Main */
.main {
  padding: 40px 0 80px;
}

/* ════════════════════════════════════════
   نوار بالای صفحات داخلی
   ════════════════════════════════════════ */

.top-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-inner {
  display: flex;
  align-items: center;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-back:hover {
  color: var(--text);
}

.nav-back svg {
  transition: var(--transition);
}

.nav-back:hover svg {
  transform: translateX(4px);
}

/* ════════════════════════════════════════
   Footer عمومی
   ════════════════════════════════════════ */

.footer {
  background: #1a1a2e;
  color: white;
  padding: 28px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8em;
  opacity: 0.35;
}

/* ════════════════════════════════════════
   انیمیشن‌های عمومی
   ════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease backwards;
}

/* ════════════════════════════════════════
   Responsive عمومی
   ════════════════════════════════════════ */

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .main {
    padding: 32px 0 64px;
  }
}