/* ============================================================
   چرخ گستر سهند - Product Showcase (ویترین)
   نسخه: 1.0 - ۶ عکس برتر با لایت‌باکس
   ============================================================ */

:root {
  --atlas-deep-blue: #0a1a2f;
  --atlas-mid-blue: #0d2240;
  --atlas-tech-blue: #134074;
  --atlas-gold: #d4af37;
  --atlas-gold-light: #e5c767;
  --atlas-white: #ffffff;
  --atlas-text-on-dark: #ccd6e0;
  --atlas-text-muted: #8899aa;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  --border-radius: 18px;
  --font-primary: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ==================== بخش اصلی ==================== */
.showcase-section {
  background: linear-gradient(180deg, var(--atlas-deep-blue) 0%, #060e1a 100%);
  padding: 5rem 1rem;
  font-family: var(--font-primary);
  direction: rtl;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sc-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== هدر ==================== */
.sc-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--atlas-gold);
  padding: 0.4rem 1.3rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 1rem;
}

.sc-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--atlas-gold);
  border-radius: 50%;
  animation: scDotPulse 2s ease-in-out infinite;
}

@keyframes scDotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.8);
    opacity: 0.3;
  }
}

.sc-title {
  color: var(--atlas-white);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sc-title-accent {
  color: var(--atlas-gold);
}

.sc-subtitle {
  color: var(--atlas-text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== گرید ویترین ==================== */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.2rem;
}

/* آیتم‌های ویژه بزرگتر */
.sc-item:nth-child(1) {
  grid-column: span 1;
  grid-row: span 2;
}

.sc-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 2;
}

/* ==================== آیتم ویترین ==================== */
.sc-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all var(--transition-smooth);
  background: #060e1a;
}

.sc-item:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  z-index: 2;
}

/* تصویر */
.sc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.sc-item:hover img {
  transform: scale(1.1);
}

/* اورلی */
.sc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 47, 0.95) 0%, rgba(10, 26, 47, 0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.sc-item:hover .sc-overlay {
  opacity: 1;
}

/* آیکون ذره‌بین */
.sc-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 55px;
  height: 55px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-deep-blue);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
}

.sc-item:hover .sc-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
}

.sc-zoom-icon svg {
  width: 24px;
  height: 24px;
}

/* لیبل پایین */
.sc-label {
  color: var(--atlas-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(15px);
  transition: transform 0.4s ease 0.08s;
}

.sc-item:hover .sc-label {
  transform: translateY(0);
}

/* ==================== دکمه گالری کامل ==================== */
.sc-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-sc-gallery {
  background: transparent;
  color: var(--atlas-gold);
  border: 2px solid var(--atlas-gold);
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-sc-gallery:hover {
  background: var(--atlas-gold);
  color: var(--atlas-deep-blue);
}

.btn-sc-gallery svg {
  width: 18px;
  height: 18px;
}

/* ==================== لایت‌باکس ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lbZoomIn 0.4s ease;
}

@keyframes lbZoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--atlas-gold);
  border: none;
  border-radius: 50%;
  color: var(--atlas-deep-blue);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--atlas-white);
  transform: rotate(90deg);
}

/* ==================== Responsive ==================== */

/* تبلت */
@media (max-width: 992px) {
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .sc-item:nth-child(1),
  .sc-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .sc-title {
    font-size: 1.8rem;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .showcase-section {
    padding: 3rem 0.8rem;
  }

  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 0.8rem;
  }

  .sc-title {
    font-size: 1.6rem;
  }

  .sc-item:hover {
    transform: translateY(-3px);
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .sc-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 0.6rem;
  }

  .sc-title {
    font-size: 1.4rem;
  }
}