/* ============================================================
   AR-RAHMANI — Collection Page Styles
   Premium full-page catalogue browsing experience
   ============================================================ */

/* ---- Collection Hero ---- */
.collection-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-14) var(--space-6) var(--space-10);
  overflow: hidden;
}

.collection-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(212, 175, 55, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.collection-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-primary));
  pointer-events: none;
  z-index: 1;
}

.collection-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.collection-hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(20px);
  animation: collFadeUp 0.8s var(--ease-luxury) 0.2s forwards;
}

.collection-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(30px);
  animation: collFadeUp 0.8s var(--ease-luxury) 0.4s forwards;
}

.collection-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: collFadeUp 0.8s var(--ease-luxury) 0.6s forwards;
}

.collection-hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gradient-gold);
  margin: var(--space-5) auto;
  opacity: 0;
  animation: collFadeUp 0.8s var(--ease-luxury) 0.5s forwards;
}

/* Ambient glow orbs */
.collection-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.collection-glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(212, 175, 55, 0.05);
  top: -10%;
  left: -5%;
  animation: collFloat 12s ease-in-out infinite;
}

.collection-glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(184, 134, 11, 0.04);
  top: 10%;
  right: -8%;
  animation: collFloat 15s ease-in-out infinite reverse;
}

.collection-glow--3 {
  width: 300px;
  height: 300px;
  background: rgba(212, 175, 55, 0.03);
  bottom: 5%;
  left: 30%;
  animation: collFloat 10s ease-in-out infinite 3s;
}

/* Breadcrumb */
.collection-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(10px);
  animation: collFadeUp 0.8s var(--ease-luxury) 0.1s forwards;
}

.collection-breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.collection-breadcrumb a:hover {
  color: var(--color-gold);
}

.collection-breadcrumb .breadcrumb-sep {
  color: rgba(212, 175, 55, 0.4);
  font-size: 0.6em;
}

.collection-breadcrumb .breadcrumb-current {
  color: var(--color-gold);
}

/* Override catalogue section on collection page — no padding top since hero handles it */
.collection-page .catalogue {
  padding-top: 0;
}

/* Make the catalogue hero invisible on collection page (hero is separate) */
.collection-page .catalogue-hero {
  display: none;
}

/* ---- Animations ---- */
@keyframes collFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes collFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .collection-hero {
    min-height: 40vh;
    padding: var(--space-12) var(--space-4) var(--space-8);
  }

  .collection-hero-title {
    font-size: var(--text-4xl);
  }

  .collection-glow {
    display: none;
  }
}
