/* website_php/assets/css/components.css — UI Component Styles */

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(74, 14, 14, 0.95); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 10px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; transition: var(--transition); }
.navbar.scrolled .navbar-logo { background: rgba(255, 255, 255, 0.95); padding: 4px 12px; border-radius: 12px; }

.navbar-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar-links a {
  color: var(--text-primary); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition); position: relative; padding: 4px 0;
}
.navbar-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--saffron); transition: width 0.3s ease;
}
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar.scrolled .navbar-links a { color: rgba(255,255,255,0.85); }
.navbar.scrolled .navbar-links a:hover { color: var(--saffron); }

/* Dropdown Menu Styles */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 220px; background: var(--surface); border-radius: 16px;
  box-shadow: 0 15px 45px rgba(74,14,14,0.15);
  padding: 12px 0; list-style: none;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000; border: 1px solid var(--divider);
}
.dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--surface);
}
.has-dropdown.active .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-weight: 500;
  color: var(--text-dark); transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(255,107,0,0.05); color: var(--saffron); padding-left: 24px;
}

.navbar-right { display: flex; align-items: center; gap: 16px; }

/* Language Toggle */
.lang-toggle {
  display: flex; border-radius: 50px; overflow: hidden;
  border: 2px solid var(--divider); background: var(--soft-white);
}
.navbar.scrolled .lang-toggle { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); }
.lang-btn {
  padding: 6px 14px; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; border: none; background: transparent;
  color: var(--text-muted); transition: var(--transition);
  font-family: 'Hind', sans-serif;
}
.lang-btn.active { background: var(--saffron); color: #fff; }
.navbar.scrolled .lang-btn { color: rgba(255,255,255,0.6); }
.navbar.scrolled .lang-btn.active { background: var(--saffron); color: #fff; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--deep-maroon); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: #fff; }
.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 Nav Drawer */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--cream); z-index: 999; padding: 80px 24px 24px;
  flex-direction: column; gap: 0;
  transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateY(0); display: flex; }
.mobile-nav a {
  display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 600;
  color: var(--deep-maroon); text-decoration: none; border-bottom: 1px solid var(--divider);
}
.mobile-nav a:hover { color: var(--saffron); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,107,0,0.06) 0%, rgba(212,175,55,0.04) 50%, var(--cream) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23FF6B00' stroke-width='0.5' opacity='0.08'/%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%23FF6B00' stroke-width='0.5' opacity='0.06'/%3E%3Ccircle cx='100' cy='100' r='50' fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.05'/%3E%3Cpath d='M100 10 L100 190 M10 100 L190 100 M29 29 L171 171 M171 29 L29 171' stroke='%23FF6B00' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .display-font { font-family: 'Yatra One', cursive; }
.hero-subtext { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--saffron-dark); font-family: 'Tiro Devanagari Sanskrit', serif; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Phone Mockup */
.phone-mockup {
  width: 280px; height: 560px; margin: 0 auto;
  background: #1a1a2e; border-radius: 36px;
  border: 6px solid #2d2d44; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px; background: #1a1a2e; border-radius: 0 0 16px 16px; z-index: 2;
}
.floating-badge {
  position: absolute; padding: 8px 16px; border-radius: 50px;
  background: var(--soft-white); color: var(--saffron-dark);
  font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow-warm);
  white-space: nowrap;
}
.floating-badge:nth-child(1) { top: 10%; right: -20px; }
.floating-badge:nth-child(2) { top: 35%; left: -30px; }
.floating-badge:nth-child(3) { bottom: 30%; right: -25px; }
.floating-badge:nth-child(4) { bottom: 10%; left: -20px; }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE TRUST BAR
   ═══════════════════════════════════════════════════════════════ */
.marquee-section { padding: 20px 0; background: var(--deep-maroon); overflow: hidden; }
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-text {
  white-space: nowrap; padding: 0 48px;
  font-size: 1rem; color: rgba(255,255,255,0.7); font-weight: 500;
  letter-spacing: 1px;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════════
   FEATURE CARDS (6-grid)
   ═══════════════════════════════════════════════════════════════ */
.feature-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   ALTERNATING FEATURE BLOCKS
   ═══════════════════════════════════════════════════════════════ */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 0; }
.feature-block:nth-child(even) .feature-block-image { order: -1; }
.feature-block-image {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
}
.feature-block-image img,
.feature-block-image .image-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.image-placeholder {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.feature-block-content h3 { font-size: 1.6rem; margin-bottom: 16px; }
.feature-block-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   COMING SOON CARDS
   ═══════════════════════════════════════════════════════════════ */
.coming-soon-card {
  background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(212,175,55,0.06));
  backdrop-filter: blur(8px); border: 1px dashed var(--divider);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.testimonials-track { display: flex; gap: 24px; overflow: hidden; }
.testimonial-card {
  min-width: calc(33.33% - 16px); background: var(--soft-white);
  border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 32px; flex-shrink: 0;
}
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-loc { font-size: 0.8rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem;
  color: var(--deep-maroon); background: none; border: none; width: 100%;
  text-align: left; font-family: 'Hind', sans-serif;
}
.faq-question:hover { color: var(--saffron); }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s ease; color: var(--saffron); flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted); line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════
   CTA DOWNLOAD BANNER
   ═══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  padding: 60px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge:hover { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--deep-maroon); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .navbar-logo-text { color: #fff; font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.9rem; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--saffron-light); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--saffron-light); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, rgba(255,107,0,0.08) 0%, var(--cream) 100%);
  text-align: center; position: relative;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.filter-tab {
  padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--divider);
  background: var(--soft-white); color: var(--text-muted);
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: var(--transition); font-family: 'Hind', sans-serif;
  min-height: 40px;
}
.filter-tab:hover, .filter-tab.active { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* ═══════════════════════════════════════════════════════════════
   PUJA DETAIL SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sticky-sidebar { position: sticky; top: 100px; }
.trust-badges { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(255,107,0,0.05);
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500;
}
.trust-badge-icon { font-size: 1.2rem; }

/* Warning Box for "Don'ts" */
.warning-box {
  border: 2px solid var(--error); border-radius: var(--radius-md);
  padding: 20px; margin: 24px 0; background: #fff5f5;
}
.warning-box h4 { color: var(--error); margin-bottom: 12px; }
.warning-box p, .warning-box ul { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════ */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; }
.blog-card .card-image { height: 180px; margin-bottom: 0; border-radius: 0; }
.blog-card-body { padding: 20px; }
.blog-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-content { line-height: 2; }
.blog-content h2 { margin-top: 32px; margin-bottom: 16px; }
.blog-content h3 { margin-top: 24px; margin-bottom: 12px; }
.blog-content p { margin-bottom: 16px; }
.blog-toc { background: var(--soft-white); border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 20px; margin-bottom: 32px; }
.blog-toc h4 { margin-bottom: 12px; }
.blog-toc ul { list-style: none; }
.blog-toc ul li { margin-bottom: 8px; }
.blog-toc ul li a { color: var(--saffron); font-size: 0.9rem; }
.share-buttons { display: flex; gap: 10px; margin: 24px 0; }
.share-btn {
  padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.share-whatsapp { background: #25D366; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-twitter { background: #1DA1F2; color: #fff; }
.share-copy { background: var(--divider); color: var(--text-primary); cursor: pointer; border: none; font-family: 'Hind', sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--divider);
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.pagination a:hover, .pagination .active { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* Sadhak Level Progression */
.level-progression {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px 0; font-size: 0.9rem; color: var(--saffron-dark); font-weight: 600;
}
.level-arrow { color: var(--gold); }
/* Premium Hero Enhancements */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative; overflow: hidden;
  background: var(--cream);
  z-index: 1;
}

/* Glowing Orbs for Depth */
.hero-glow-1 {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, rgba(255,107,0,0) 70%);
  top: -100px; right: -100px; border-radius: 50%;
  filter: blur(60px); z-index: -1; animation: floatSlow 10s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0) 70%);
  bottom: -50px; left: -100px; border-radius: 50%;
  filter: blur(60px); z-index: -1; animation: floatSlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -30px); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--saffron-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 107, 0, 0.2);
  backdrop-filter: blur(10px);
  color: var(--saffron-dark); font-weight: 600; font-size: 0.85rem;
  margin-bottom: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-subtext {
  font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.8;
  max-width: 500px;
}

.hero-ctas {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 48px;
}

}

.app-mockup-container {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  perspective: 1000px;
}

.app-mockup-container img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: -20px 30px 60px rgba(0,0,0,0.15), -10px 10px 40px rgba(255,107,0,0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  aspect-ratio: 4/5;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  clip-path: inset(0px 0px 2px 0px round 24px); /* Fixes the thin black line */
}

.app-mockup-container:hover img {
  transform: rotateY(0deg) rotateX(0deg);
}

@keyframes floatMockup {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
