/* ===================================================
   SRI SIVAYOGINI MATAJI — REUSABLE COMPONENTS
   components.css — Nav, Footer, Cards, Accordion, etc.
   =================================================== */

/* ===== NAVIGATION HEADER ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: rgba(10, 7, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  height: 55px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.5));
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-tamil);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 60%;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-wa-btn:hover {
  background: #25D366;
  color: white;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 7, 0, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  padding: 0.75rem 2rem;
}

.mobile-menu .nav-link::after {
  bottom: -4px;
}

@media (max-width: 768px) {
  .site-nav {
    height: 60px;
  }
  
  .site-nav.scrolled {
    height: 50px;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo-text {
    font-size: 0.875rem;
  }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.floating-wa .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: waPulse 2s infinite;
}

@media (max-width: 768px) {
  .floating-wa {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #060400;
  border-top: 2px solid var(--gold-primary);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.footer-logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.5));
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.footer-tagline {
  font-family: var(--font-tamil);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  margin-bottom: var(--space-sm);
}

.footer-link {
  font-family: var(--font-tamil);
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold-primary);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-xs);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(212, 160, 23, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}

/* ===== COURSE CARD ===== */
.course-card {
  background: rgba(15, 8, 0, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212, 160, 23, 0.04);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 160, 23, 0.08);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 15px rgba(212, 160, 23, 0.4));
}

.course-card:hover .course-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

.course-card-title {
  font-family: var(--font-tamil);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

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

.course-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(212, 160, 23, 0.15);
  color: var(--gold-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  background: rgba(15, 8, 0, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(212, 160, 23, 0.5);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-tamil);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: '';
}

.faq-chevron {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-tamil);
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ===== HERO SECTION LAYOUT ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--space-sm) var(--space-xl);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1200px;
  width: 100%;
}

.hero-image-col {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
}

.hero-text-col {
  flex: 1;
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image-col {
    flex: none;
    width: 100%;
    max-width: 300px;
  }
}

/* ===== POPUP / MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(212, 160, 23, 0.2);
  transform: scale(0.95);
  transition: transform 0.5s ease;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

/* ===== BADGE COMPONENT ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
}

.badge-red {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.4);
  color: #ff8080;
}

.badge-free {
  background: linear-gradient(135deg, #FF7800, #FFB800);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 120, 0, 0.5);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 120, 0, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 120, 0, 0.7); }
}

/* ===== INFO TABLE (For Soonya details) ===== */
.info-table {
  width: 100%;
}

.info-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .info-row {
    flex-direction: row;
    align-items: center;
  }
}

.info-label {
  font-family: var(--font-tamil);
  color: var(--gold-light);
  min-width: 10rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

@media (min-width: 640px) {
  .info-label {
    margin-bottom: 0;
  }
}

.info-value {
  color: var(--text-white);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ===== PRICE DISPLAY ===== */
.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-symbol {
  font-size: 2rem;
  color: var(--gold-primary);
  font-weight: 500;
}

.price-amount {
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-heading);
  text-shadow: 0 0 30px rgba(212, 160, 23, 0.3);
  line-height: 1;
}

.price-suffix {
  font-family: var(--font-tamil);
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 768px) {
  .price-amount {
    font-size: 3.5rem;
  }
}

/* ===== STEP CARDS (For arulvakku how-to) ===== */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.1);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.step-content h3 {
  font-family: var(--font-tamil);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-family: var(--font-tamil);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

/* ===== VIDEO GRID ===== */
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: rgba(10, 7, 0, 0.8);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--border-gold-bright);
}

.video-card video {
  width: 100%;
  display: block;
}

/* ===== CONTENT SPACER (For nav offset) ===== */
.nav-spacer {
  height: 70px;
}

@media (max-width: 768px) {
  .nav-spacer {
    height: 60px;
  }
}
