/* =========================================
   Baripur Hanuman Mandir Website Styles
   Modern, professional design with temple theme
   ========================================= */

:root {
  --saffron: #ff9933;
  --deep-maroon: #5a1a1a;
  --gold: #d4af37;
  --gold-25: #d4af3725;
  --maroon-50: #5a1a1a80;
  --white: #ffffff;
  --body-bg: #fffdf8;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --text-muted: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --primary: #0d6efd;
}

/* Base Styles */
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--body-bg);
  line-height: 1.6;
  color: #333;
}

/* Typography */
.heading-decor {
  font-family: 'Prata', serif;
  color: var(--deep-maroon);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.heading-decor::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.heading-hero {
  font-family: 'Prata', serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  font-weight: 600;
}

/* Background Colors */
.bg-temple {
  background: linear-gradient(135deg, var(--deep-maroon), #7a2a2a);
}

.bg-deep-maroon {
  background: var(--deep-maroon);
}

.bg-light {
  background: var(--light-bg);
}

/* Text Colors */
.text-maroon {
  color: var(--deep-maroon);
}

.text-warning-50 {
  color: rgba(255,193,7,.95);
}

.text-warning-50-light {
  color: #ffd76a;
}

/* Borders */
.border-warning-25 {
  border-color: rgba(255,193,7,.25) !important;
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #111;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  filter: brightness(0.95);
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.btn-maroon {
  background: var(--deep-maroon);
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-maroon:hover {
  background: #461313;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90,26,26,0.3);
}

.btn-outline-maroon {
  border-color: var(--deep-maroon);
  color: var(--deep-maroon);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-maroon:hover {
  background: var(--deep-maroon);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
}

.hero-media {
  height: 70vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(1.05);
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
}

.carousel-caption {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6), rgba(0,0,0,.3));
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Cards */
.card-quick {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: #fff;
  border-radius: 12px;
}

.card-quick:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-25);
  color: var(--deep-maroon);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.card-quick:hover .quick-icon {
  background: var(--gold);
  color: #fff;
  transform: scale(1.1);
}

/* Timing Icons */
.timing-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-25);
  color: var(--deep-maroon);
  font-size: 1.5rem;
}

/* Section Padding */
.section-pad {
  padding: 80px 0;
}

/* Header Styles */
#site-header .brand-text {
  color: #fff;
}

.navbar .nav-link {
  color: #ffe9d6;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.logo-placeholder {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Pattern Background */
.bg-pattern {
  background-image: linear-gradient(45deg, var(--gold-25) 25%, transparent 25%), 
                    linear-gradient(-45deg, var(--gold-25) 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, var(--gold-25) 75%), 
                    linear-gradient(-45deg, transparent 75%, var(--gold-25) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Alerts */
.alert-warning-soft {
  background: #fff4e5;
  border-color: #ffe0b3;
  color: #7a3d00;
  border-radius: 12px;
}

/* Footer */
.footer-links a {
  color: #f8e7cc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateX(5px);
}

.social-link {
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  color: var(--gold) !important;
}

/* Gallery */
.gallery-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: white;
}

.video-placeholder {
  background: var(--light-bg);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(212,175,55,0.25);
}

.form-label {
  font-weight: 600;
  color: var(--deep-maroon);
}

/* Feature Icons */
.feature-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--success);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--light-bg);
  margin: 0 auto;
}

.program-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-25);
  color: var(--deep-maroon);
  font-size: 1.5rem;
}

.festival-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--light-bg);
  margin: 0 auto;
}

.festival-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Donation */
.reason-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.25rem;
}

.impact-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--light-bg);
  margin: 0 auto;
}

.donation-tiers {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
}

/* Contact */
.contact-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.25rem;
}

.guideline-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--success);
}

.committee-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.25rem;
}

/* Image Placeholders */
.image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--light-bg);
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-muted);
}

.image-placeholder-large {
  width: 100%;
  height: 300px;
  background: var(--light-bg);
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--text-muted);
}

/* Map */
.map-container {
  border: 1px solid var(--border-color);
}

.ratio iframe {
  border: 0;
}

/* Trust Badges */
.trust-badges {
  padding: 0.5rem 1rem;
  background: var(--light-bg);
  border-radius: 8px;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-media {
    height: 60vh;
    min-height: 350px;
  }
  
  .carousel-caption {
    padding: 1.5rem;
  }
  
  .section-pad {
    padding: 60px 0;
  }
  
  .heading-decor {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-media {
    height: 50vh;
    min-height: 300px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h1 {
    font-size: 1.5rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .section-pad {
    padding: 40px 0;
  }
  
  .heading-decor {
    font-size: 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile optimizations for new sections */
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .testimonial-card {
    margin-bottom: 1rem;
  }
  
  .gallery-preview-item {
    margin-bottom: 1rem;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }
  
  .contact-info-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
}

/* Utility Classes */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

.rounded-4 {
  border-radius: 0.75rem !important;
}

/* GLightbox Customization */
.glightbox-clean .gdesc-inner {
  font-family: 'Poppins', sans-serif;
}

.glightbox-container .gslide-description {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 1rem;
  border-radius: 8px;
}

/* Loading States */
.spinner-border {
  width: 2rem;
  height: 2rem;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(212,175,55,0.25);
}

/* Hover Effects */
.card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .carousel-controls {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .container {
    max-width: 100% !important;
  }
}
