/* ==========================================================================
   COMPONENTS CSS — Sacred Gold & Royal Indigo Numerology Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-metallic);
  color: white;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
  color: white;
}

.btn-secondary {
  background-color: white;
  border: 2px solid var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

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

.btn-accent {
  background: linear-gradient(135deg, #EA580C, #F97316);
  color: white;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.45);
  color: white;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: white;
}

/* --- Cards & Badges --- */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gold);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

/* --- REPORT CARDS 3-COLUMN GRID --- */
.report-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .report-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.report-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.report-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-metallic);
}

.report-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
  border-color: var(--primary-light);
}

.report-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.report-card .report-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 12px 0 8px;
}

.report-card .report-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.report-card .price {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.report-card .price span {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(217, 119, 6, 0.12);
  color: var(--primary-dark);
  border: 1px solid var(--border-gold);
}

.tag-coral {
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent-2);
  border-color: rgba(225, 29, 72, 0.2);
}

.tag-accent {
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent);
  border-color: rgba(234, 88, 12, 0.2);
}

/* ==========================================================================
   EDITORIAL INSIGHTS CARD GRID COMPONENT (Exact Match to User Reference)
   ========================================================================== */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

@media (max-width: 992px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Desktop Portrait Editorial Card */
.editorial-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(24, 20, 58, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.editorial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(24, 20, 58, 0.25);
}

.editorial-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.editorial-card:hover .editorial-card-bg {
  transform: scale(1.06);
}

.editorial-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 46, 0.96) 0%, rgba(18, 14, 46, 0.65) 50%, rgba(18, 14, 46, 0.1) 100%);
  z-index: 1;
}

.editorial-card-content {
  position: relative;
  z-index: 2;
  padding: 32px 24px 28px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.editorial-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F59E0B;
  margin-bottom: 8px;
}

.editorial-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 8px;
}

.editorial-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* --- MOBILE PINTEREST MASONRY STYLING --- */
@media (max-width: 768px) {
  .editorial-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px 12px !important;
    align-items: start !important;
  }

  .editorial-card {
    position: relative !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    transform: none !important;
  }

  .editorial-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .editorial-card-bg {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    object-fit: cover !important;
    aspect-ratio: 3 / 4.2 !important;
  }

  .editorial-card:nth-child(2) .editorial-card-bg {
    aspect-ratio: 1 / 1 !important;
  }
  .editorial-card:nth-child(3) .editorial-card-bg {
    aspect-ratio: 4 / 5.2 !important;
  }
  .editorial-card:nth-child(4) .editorial-card-bg {
    aspect-ratio: 3 / 4 !important;
  }
  .editorial-card:nth-child(5) .editorial-card-bg {
    aspect-ratio: 1 / 1 !important;
  }
  .editorial-card:nth-child(6) .editorial-card-bg {
    aspect-ratio: 3 / 4.5 !important;
  }

  .editorial-card-overlay {
    display: none !important;
  }

  .editorial-card-content {
    position: relative !important;
    padding: 8px 2px 0 2px !important;
    color: var(--text) !important;
    height: auto !important;
    z-index: 2 !important;
  }

  .editorial-category {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    color: #D97706 !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.04em !important;
  }

  .editorial-title {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .editorial-desc {
    font-size: 0.75rem !important;
    color: #6B7280 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* --- ELEGANT FAQ ACCORDION CARDS --- */
.accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.08);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.accordion-trigger:hover {
  color: var(--primary-light);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: white;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.accordion-content-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  padding-top: 16px;
}

/* --- THE 9 PRIMARY VEDIC NUMBER ARCHETYPES GRID CARDS --- */
.num-archetype-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.05);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.num-archetype-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-metallic);
}

.num-archetype-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--primary-light);
}

.num-archetype-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.num-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--gold-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.2);
  border: 2px solid #D4AF37;
  flex-shrink: 0;
}

.num-archetype-info {
  display: flex;
  flex-direction: column;
}

.num-archetype-planet {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
}

.num-archetype-role {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 2px;
}

.num-archetype-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- INTERACTIVE CALCULATOR CARD --- */
.hero-calc-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-gold);
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.calc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.calc-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.calc-result-box {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 16px;
  border: 1px solid var(--border-gold);
  display: none;
}

.result-numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.num-badge-box {
  background: white;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.num-badge-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.num-badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

/* --- FORM CONTROLS --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}
