/* ============================================
   GATE PAGE STYLES
   Specific styles for individual gate/course pages
============================================ */

/* ==========================================
   GATE HERO
========================================== */
.gate-hero {
  padding: 140px 0 80px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.gate-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(92, 182, 249, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(92, 182, 249, 0.1) 0%, transparent 50%);
}

.gate-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.gate-hero-text {
  max-width: 700px;
}

/* Gate Badge */
.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.gate-badge-number {
  padding: 8px 20px;
  background: rgba(92, 182, 249, 0.2);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 50px;
}

.gate-badge-tag {
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
}

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

.gate-badge-tag.premium {
  background: var(--warning);
  color: var(--primary);
}

/* Gate Title */
.gate-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.gate-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Gate Meta */
.gate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.gate-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.gate-meta-icon {
  font-size: 1.2rem;
}

/* Gate CTA */
.gate-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Gate Hero Visual */
.gate-hero-visual {
  display: flex;
  justify-content: center;
}

.gate-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 350px;
}

.gate-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gate-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235cb6f9' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gate-card-number {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  z-index: 1;
}

.gate-card-progress {
  padding: 24px;
}

.gate-progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.gate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--success));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.gate-progress-text {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ==========================================
   WHAT YOU'LL LEARN
========================================== */
.gate-learning {
  padding: 80px 0;
  background: var(--white);
}

.gate-learning .section-title {
  margin-bottom: 40px;
}

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

.learning-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: 12px;
}

.learning-icon {
  width: 28px;
  height: 28px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.learning-item span:last-child {
  color: var(--gray-700);
  line-height: 1.6;
}

/* ==========================================
   MODULES / CURRICULUM
========================================== */
.gate-modules {
  padding: 80px 0;
  background: var(--off-white);
}

.gate-modules .section-title {
  margin-bottom: 40px;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.module-item {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.module-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.module-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.module-duration {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.module-status {
  padding: 6px 14px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
}

.module-status.locked {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ==========================================
   NEXT GATE
========================================== */
.gate-next {
  padding: 80px 0;
  background: var(--white);
}

.next-gate-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.next-gate-content {
  max-width: 500px;
}

.next-gate-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(92, 182, 249, 0.2);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.next-gate-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.next-gate-description {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}

.next-gate-visual {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-lg);
}

.next-gate-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 992px) {
  .gate-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gate-hero-text {
    max-width: 100%;
  }

  .gate-meta {
    justify-content: center;
  }

  .gate-cta {
    justify-content: center;
  }

  .gate-hero-visual {
    order: -1;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .next-gate-card {
    flex-direction: column;
    text-align: center;
  }

  .next-gate-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .gate-hero {
    padding: 120px 0 60px;
  }

  .gate-title {
    font-size: 2rem;
  }

  .gate-description {
    font-size: 1rem;
  }

  .gate-meta {
    flex-direction: column;
    gap: 12px;
  }

  .module-header {
    flex-wrap: wrap;
  }

  .module-status {
    margin-left: 68px;
  }
}
