/*
Theme Name: Gauri Ganesh
Theme URI: https://gauriganesh.com
Author: Gauri Ganesh Devotional
Author URI: https://gauriganesh.com
Description: A beautiful devotional WordPress theme with AI-powered Sacred Insights, Lucky Crystal Checker, Kundli & Horoscope, Online Puja Booking, Live Darshan, Rudraksha & Crystal Products, and more.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gauri-ganesh
Tags: devotional, spiritual, woocommerce, astrology, ecommerce
*/

/* =============================================
   GAURI GANESH THEME - MAIN STYLES
   ============================================= */

:root {
  --primary:       #8B1A1A;   /* Deep temple red */
  --primary-dark:  #5C0F0F;
  --primary-light: #C94040;
  --accent:        #D4AF37;   /* Sacred gold */
  --accent-light:  #F0D060;
  --accent-dark:   #A07820;
  --bg:            #FFF8F0;   /* Warm cream */
  --bg-dark:       #1A0A00;
  --surface:       #FFFFFF;
  --text:          #2D1B00;
  --text-light:    #6B4C1E;
  --border:        #E8D5B0;
  --success:       #2E7D32;
  --font-head:     'Cinzel', 'Palatino Linotype', serif;
  --font-body:     'Lato', 'Segoe UI', sans-serif;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(139,26,26,0.12);
  --shadow-lg:     0 8px 48px rgba(139,26,26,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---- Om Symbol Decorator ---- */
.om-divider {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin: 24px 0;
  opacity: .7;
  letter-spacing: .5em;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #A02020 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.site-logo .logo-icon { font-size: 2.2rem; }
.site-logo .logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.site-logo .logo-sub  { font-size: .75rem; opacity: .8; letter-spacing: .1em; }

#main-nav ul { list-style: none; display: flex; gap: 4px; }
#main-nav a {
  color: rgba(255,255,255,.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
#main-nav a:hover,
#main-nav .current-menu-item a {
  background: rgba(212,175,55,.25);
  color: var(--accent-light);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .cart-icon {
  color: var(--accent-light);
  font-size: 1.4rem;
  position: relative;
  text-decoration: none;
}
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(145deg, var(--primary-dark) 0%, #3D0A0A 40%, var(--primary) 100%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: 'ॐ';
  position: absolute;
  font-size: 40vw;
  color: rgba(212,175,55,.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: serif;
}
.hero-content { position: relative; z-index: 1; }
.hero-om { font-size: 4rem; color: var(--accent); margin-bottom: 16px; animation: glow 3s ease-in-out infinite; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p   { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 640px; margin: 0 auto 40px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary   { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--primary-dark); }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-sm        { padding: 10px 20px; font-size: .9rem; }

@keyframes glow {
  0%,100% { text-shadow: 0 0 20px rgba(212,175,55,.5); }
  50%      { text-shadow: 0 0 40px rgba(212,175,55,.9), 0 0 60px rgba(212,175,55,.4); }
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.feature-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p  { font-size: .9rem; color: var(--text-light); }

/* =============================================
   AI TOOLS / SACRED INSIGHTS
   ============================================= */
.ai-tool-box {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF0D8 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
}
.ai-tool-box h3 { color: var(--primary-dark); margin-bottom: 8px; }
.ai-tool-box .ai-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: .9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.ai-response {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-top: 24px;
  min-height: 80px;
  display: none;
}
.ai-response.visible { display: block; }
.ai-response h4 { color: var(--primary); margin-bottom: 12px; }
.ai-loading { text-align: center; color: var(--text-light); padding: 24px; }
.ai-loading::after {
  content: '';
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   PRODUCTS / WOOCOMMERCE
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb {
  background: linear-gradient(135deg, #FFF0D0, #FFE4C0);
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 1rem; margin-bottom: 6px; color: var(--primary-dark); }
.product-price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.product-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* WooCommerce overrides */
.woocommerce .woocommerce-message { background: #FFF8F0; border-color: var(--accent); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--primary-dark) !important; }
.woocommerce .price { color: var(--primary) !important; font-weight: 700 !important; }

/* =============================================
   PUJA BOOKING
   ============================================= */
.puja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.puja-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.puja-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.puja-card .puja-icon { font-size: 2.5rem; margin-bottom: 12px; }
.puja-card h3 { color: var(--primary-dark); margin-bottom: 8px; font-size: 1.05rem; }
.puja-card .price { color: var(--accent-dark); font-weight: 700; margin-bottom: 16px; }

/* =============================================
   PANCHANG
   ============================================= */
.panchang-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.panchang-box h2 { color: var(--accent-light); }
.panchang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.panchang-item {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.panchang-item .p-label { font-size: .8rem; opacity: .7; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.panchang-item .p-value { font-size: 1.1rem; font-weight: 600; color: var(--accent-light); }

/* =============================================
   RASHI / CRYSTAL FINDER
   ============================================= */
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.rashi-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.rashi-card:hover, .rashi-card.active {
  border-color: var(--accent);
  background: #FFF8EC;
  transform: scale(1.03);
}
.rashi-card .rashi-symbol { font-size: 2rem; margin-bottom: 8px; }
.rashi-card .rashi-name { font-weight: 700; color: var(--primary); font-size: .95rem; }
.rashi-card .rashi-date { font-size: .75rem; color: var(--text-light); }

/* =============================================
   LIVE DARSHAN
   ============================================= */
.darshan-box {
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.darshan-placeholder {
  background: linear-gradient(135deg, #1A0A00, #2D0000);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  text-align: center;
}
.darshan-placeholder .diya { font-size: 4rem; animation: flicker 2s ease-in-out infinite; }
@keyframes flicker { 0%,100%{opacity:1} 50%{opacity:.7} }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #C00;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  position: absolute;
  top: 16px; left: 16px;
}
.live-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

/* =============================================
   DONATIONS / SEVA
   ============================================= */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.donation-card {
  background: linear-gradient(135deg, #FFF8F0, #FFF0D8);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.donation-card .seva-icon { font-size: 2.5rem; margin-bottom: 12px; }
.donation-card h3 { color: var(--primary-dark); margin-bottom: 8px; }
.donation-amount { font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 16px; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: linear-gradient(135deg, var(--primary-dark), #0D0000);
  color: rgba(255,255,255,.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: var(--accent-light); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  opacity: .6;
}
.footer-om { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }

/* =============================================
   NOTICE / ALERT
   ============================================= */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .95rem;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error   { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.alert-info    { background: #FFF8F0; color: var(--primary-dark); border: 1px solid var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  #main-nav { display: none; }
  #main-nav.open {
    display: block;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 16px;
  }
  #main-nav.open ul { flex-direction: column; gap: 4px; }
  .hamburger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .ai-tool-box { padding: 24px 16px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .features-grid,
  .products-grid,
  .puja-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
