/* ======================= */
/* فونت‌ها و متغیرها */
/* ======================= */
:root {
  /* رنگ‌های اصلی */
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  
  /* رنگ‌های اختصاصی */
  --bilgix-blue: #1a73e8;
  --bilgix-purple: #6f42c1;
  --bilgix-teal: #20c997;
  --bilgix-orange: #fd7e14;
  --bilgix-pink: #e83e8c;
  
  /* سایه‌ها */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.18);
  --shadow-2xl: 0 20px 40px rgba(0,0,0,0.2);
  
  /* انحناها */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* فاصله‌ها */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* عرض‌های ثابت */
  --sidebar-width: 350px;
  --container-max: 1600px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
}

/* ======================= */
/* ریست و پایه‌ها */
/* ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-color);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ======================= */
/* لایه‌بندی اصلی */
/* ======================= */
.homepage-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  align-items: start;
  min-height: 100vh;
}

@media (max-width: var(--breakpoint-xl)) {
  .homepage-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ستون اصلی */
.main-content-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.main-content-column::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--bilgix-purple));
  z-index: 1;
}

/* ستون کناری */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  position: sticky;
  top: var(--spacing-xl);
  height: fit-content;
}

/* ======================= */
/* کامپوننت‌های مشترک */
/* ======================= */
/* سرصفحه بخش */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--light-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.header-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-title i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--bilgix-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-color);
  margin: 0;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: var(--light-color);
  color: var(--dark-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* کارت‌ها */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--secondary-color);
}

/* بج */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-danger {
  background: var(--danger-color);
  color: white;
}

.badge-warning {
  background: var(--warning-color);
  color: var(--dark-color);
}

/* ======================= */
/* اسلایدر حرفه‌ای */
/* ======================= */
.featured-slider-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--spacing-xl);
}

.slider-wrapper {
  position: relative;
}

.slider-container {
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

@media (max-width: var(--breakpoint-lg)) {
  .slider-container {
    height: 400px;
  }
}

@media (max-width: var(--breakpoint-md)) {
  .slider-container {
    height: 350px;
  }
}

.slider-slide {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide.active {
  opacity: 1;
}

.slide-background {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 10s ease;
}

.slider-slide.active .slide-image {
  transform: scale(1.05);
}

.slide-gradient {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: var(--spacing-xl);
  color: white;
  z-index: 2;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.slide-category {
  background: var(--category-color, var(--primary-color));
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
}

.slide-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.slide-title {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: var(--breakpoint-lg)) {
  .slide-title {
    font-size: 2.2rem;
  }
}

@media (max-width: var(--breakpoint-md)) {
  .slide-title {
    font-size: 1.8rem;
  }
}

.slide-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  max-width: 800px;
}

.slide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* کنترل‌های اسلایدر */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.slider-prev,
.slider-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ======================= */
/* چیدمان ردیف‌ها */
/* ======================= */
.row-section {
  display: grid;
  grid-template-columns: 2.33fr 1fr; /* 70% / 30% */
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: var(--breakpoint-lg)) {
  .row-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ======================= */
/* بخش آخرین اخبار */
/* ======================= */
.latest-news-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.view-all {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--light-color);
  transition: all 0.3s;
}

.view-all:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(-5px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: var(--breakpoint-lg)) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: var(--breakpoint-md)) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: var(--breakpoint-sm)) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card .card-image {
  height: 200px;
}

/* ======================= */
/* تبلیغات عمودی */
/* ======================= */
.vertical-ads {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.ad-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.ad-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.ad-banner a {
  display: block;
  position: relative;
  width: 100%;
  height: 280px;
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ad-banner:hover img {
  transform: scale(1.05);
}

.ad-label {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ======================= */
/* دسته‌بندی‌های اصلی */
/* ======================= */
.main-categories-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.categories-filter {
  display: flex;
  align-items: center;
}

.filter-select {
  padding: 10px 20px;
  border: 2px solid #dee2e6;
  border-radius: 25px;
  background: white;
  font-family: 'Vazir';
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 200px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: var(--breakpoint-2xl)) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: var(--breakpoint-lg)) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: var(--breakpoint-sm)) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.category-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light-color);
  border-radius: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.stat-label {
  color: var(--secondary-color);
  font-size: 0.85rem;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 20px;
  background: var(--light-color);
  border-radius: 25px;
  transition: all 0.3s;
  justify-content: center;
}

.category-link:hover {
  background: var(--primary-color);
  color: white;
  gap: 15px;
}

/* ======================= */
/* پیشنهاد سردبیر */
/* ======================= */
.editor-picks-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.section-badge {
  background: linear-gradient(135deg, var(--warning-color), #e0a800);
  color: #212529;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.editor-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: var(--breakpoint-lg)) {
  .editor-picks-grid {
    grid-template-columns: 1fr;
  }
}

.editor-pick-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, var(--light-color), #e9ecef);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.editor-pick-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--warning-color), #e0a800);
}

.editor-pick-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.pick-image {
  width: 120px;
  flex-shrink: 0;
}

.image-container {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

/* ======================= */
/* مطالب اختصاصی */
/* ======================= */
.exclusive-section {
  background: linear-gradient(135deg, var(--light-color), #e9ecef);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.exclusive-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.exclusive-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.exclusive-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #daa520);
  border-radius: 0 0 0 60px;
  opacity: 0.1;
}

.exclusive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #ffd700;
}

/* ======================= */
/* سرویس‌ها */
/* ======================= */
.services-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: var(--breakpoint-lg)) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  border: 2px solid;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: inherit;
  border-color: inherit;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.service-header {
  text-align: center;
  margin-bottom: 25px;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

/* ======================= */
/* قیمت‌های زنده */
/* ======================= */
.live-prices-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--danger-color);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  margin-right: 15px;
}

.live-indicator i {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: var(--breakpoint-2xl)) {
  .prices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: var(--breakpoint-md)) {
  .prices-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-change {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.price-change.up {
  background: #d4edda;
  color: #155724;
}

.price-change.down {
  background: #f8d7da;
  color: #721c24;
}

/* ======================= */
/* مولتی‌مدیا */
/* ======================= */
.multimedia-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.section-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  padding: 10px 25px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 25px;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-player {
  background: var(--light-color);
  border-radius: 15px;
  overflow: hidden;
}

.video-container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
}

@media (max-width: var(--breakpoint-lg)) {
  .video-container {
    flex-direction: column;
    text-align: center;
  }
}

.video-wrapper {
  position: relative;
  width: 400px;
  height: 225px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: var(--breakpoint-lg)) {
  .video-wrapper {
    width: 100%;
    max-width: 600px;
    height: 337px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: var(--breakpoint-lg)) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: var(--breakpoint-sm)) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================= */
/* استایل‌های سایدبار */
/* ======================= */
/* اپلیکیشن */
.app-promo-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  color: white;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.app-promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
  background-size: 30px 30px;
  opacity: 0.3;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.logo-circle {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}

.app-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.download-btn {
  flex: 2;
  background: white;
  color: #764ba2;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* دسته‌بندی‌های سریع */
.quick-categories-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-header i {
  font-size: 1.5rem;
  color: var(--bilgix-purple);
  background: linear-gradient(135deg, var(--bilgix-purple), #59359a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-header h4 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.quick-categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-category-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--light-color);
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-category-item:hover {
  transform: translateX(-8px);
  background: white;
  box-shadow: var(--shadow-lg);
}

.quick-category-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.quick-category-item:hover .quick-category-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* تبلیغات ویژه */
.premium-ads {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-card {
  border-radius: 15px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.ad-card.premium {
  background: linear-gradient(135deg, #ffd700, #daa520);
  color: #856404;
}

.ad-card.newsletter {
  background: linear-gradient(135deg, var(--info-color), #138496);
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  font-family: 'Vazir';
  font-size: 0.9rem;
  background: rgba(255,255,255,0.9);
}

/* تگ‌ها */
.tags-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  background: var(--light-color);
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dee2e6;
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* شبکه‌های اجتماعی */
.social-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-align: center;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.social-link.telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.social-link.instagram {
  background: linear-gradient(135deg, #e4405f, #c13584);
}

.social-link.twitter {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* ======================= */
/* انیمیشن‌ها */
/* ======================= */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-in {
  animation: zoomIn 0.6s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================= */
/* حالت تاریک (آماده برای استفاده) */
/* ======================= */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    --primary-color: #4dabf7;
    --primary-dark: #339af0;
    --secondary-color: #868e96;
    --dark-color: #f8f9fa;
    --light-color: #343a40;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.4);
    background: #1a1a1a;
    color: #e9ecef;
  }
  
  .dark-mode .card,
  .dark-mode .main-content-column,
  .dark-mode .sidebar-column > * {
    background: #2d2d2d;
    color: #e9ecef;
    border-color: #444;
  }
  
  .dark-mode .card-title a,
  .dark-mode .header-title h2 {
    color: #f8f9fa;
  }
  
  .dark-mode .card-excerpt {
    color: #adb5bd;
  }
}

/* ======================= */
/* حالت پرینت */
/* ======================= */
@media print {
  .sidebar-column,
  .slider-controls,
  .view-all,
  .social-links,
  .newsletter-form,
  .app-actions {
    display: none !important;
  }
  
  .homepage-layout {
    grid-template-columns: 1fr !important;
  }
  
  .main-content-column {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
@import url("header-footer.css");
