/* ==========================================
   تعریف فونت Estedad
   ========================================== */
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

/* ==========================================
   ریست و پایه
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #1a3c5e;
  --primary-light: #2563a8;
  --accent:        #c0392b;
  --accent-light:  #e74c3c;
  --gold:          #d4a017;
  --gold-light:    #f0c040;
  --bg:            #f4f6f9;
  --bg-card:       #ffffff;
  --text-main:     #1a1a2e;
  --text-muted:    #6b7280;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.16);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Estedad', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
}

/* ==========================================
   هدر مشترک
   ========================================== */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2740 50%, #1a1a2e 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(212,160,23,0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}

.logo-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 300;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ==========================================
   فوتر مشترک
   ========================================== */
.site-footer {
  background: linear-gradient(135deg, #0d2740, #1a1a2e);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 16px;
}

/* ==========================================
   دکمه‌های عمومی
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'Estedad', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,168,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,168,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(212,160,23,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,160,23,0.4);
}

/* ==========================================
   بج وضعیت
   ========================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-heiat {
  background: rgba(26,60,94,0.12);
  color: var(--primary);
  border: 1px solid rgba(26,60,94,0.2);
}

.badge-shora {
  background: rgba(192,57,43,0.12);
  color: var(--accent);
  border: 1px solid rgba(192,57,43,0.2);
}

.badge-bazres {
  background: rgba(212,160,23,0.15);
  color: #8a6600;
  border: 1px solid rgba(212,160,23,0.3);
}

/* ==========================================
   کارت کاندیدا (مشترک)
   ========================================== */
.candidate-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.candidate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #e8eef5, #d0dcea);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.candidate-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge-pos {
  position: absolute;
  top: 12px;
  right: 12px;
}

.card-code {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

.card-arrow {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.candidate-card:hover .card-arrow {
  transform: translateX(-4px);
}

/* ==========================================
   پلیس‌هولدر عکس
   ========================================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8d8e8, #a8c0d8);
  color: var(--primary);
  gap: 8px;
}

.img-placeholder .ph-icon {
  font-size: 48px;
  opacity: 0.5;
}

.img-placeholder .ph-name {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .logo-title {
    font-size: 13px;
  }

  .header-nav {
    display: none;
  }
}
