/* 
 * Shree Radhe Shyam Mandir - Main Stylesheet
 * Colors:
 *   Primary: #ff9933 (Orange)
 *   Secondary: #800000 (Maroon)
 *   Accent: #ffd700 (Gold)
 *   Background: #fffaf0 (Floral White)
 */

/* ===== BASE STYLES ===== */
:root {
  --primary-color: #ff9933;
  --primary-dark: #ff6600;
  --secondary-color: #800000;
  --accent-color: #ffd700;
  --background-color: #fffaf0;
  --text-color: #333333;
  --light-color: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Vollkorn', serif;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--secondary-color);
  padding: 12px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar-nav {
  gap: 15px;
}

.nav-link {
  color: var(--light-color) !important;
  font-weight: 600;
  padding: 8px 15px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.admin-link {
  color: var(--accent-color) !important;
  font-weight: bold;
}

.navbar-toggler {
  border: 2px solid var(--light-color);
  padding: 5px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO BADGE ===== */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('images/Mandir_photo.jfif') center/cover no-repeat;
  color: var(--light-color);
  text-align: center;
  padding: 120px 20px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-warning {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-color);
}

.btn-warning:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.btn-light {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--text-color);
}

.btn-light:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.donate-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  border: none;
}

.donate-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #e55a00);
  color: var(--light-color);
}

/* ===== SECTION COMMON STYLES ===== */
section {
  padding: 80px 0;
}

.section-title {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* ===== DONATIONS SECTION ===== */
.donations-section {
  background-color: rgba(255, 153, 51, 0.05);
}

.donation-card {
  border: 3px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 30px;
  background: var(--light-color);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.donation-card p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.donation-card strong {
  color: var(--primary-dark);
}

/* ===== HISTORY SECTION ===== */
.history-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.history-section img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.history-section img:hover {
  transform: scale(1.02);
}

/* ===== AARTI SECTION ===== */
.aarti-section {
  background-color: rgba(128, 0, 0, 0.05);
}

.aarti-card {
  border: 3px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 40px;
  background: var(--light-color);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.aarti-card h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.aarti-card p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

/* ===== FESTIVALS SECTION ===== */
.festival-image {
  max-width: 800px;
  margin: 0 auto;
}

.festival-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.festival-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: rgba(255, 215, 0, 0.05);
}

.about-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: rgba(255, 153, 51, 0.05);
}

.contact-info {
  padding: 20px;
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-info strong {
  color: var(--secondary-color);
  display: inline-block;
  min-width: 100px;
}

.contact-info a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.map-container {
  padding: 20px;
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.map-container iframe {
  border-radius: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary-color);
  color: var(--light-color);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    min-height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .history-section .col-md-6 {
    margin-bottom: 30px;
  }
  
  .contact-section .col-md-6 {
    margin-bottom: 30px;
  }
  
  .donation-card,
  .aarti-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .donation-card p,
  .aarti-card p,
  .contact-info p {
    font-size: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero-buttons,
  .map-container iframe,
  .footer {
    display: none;
  }
  
  body {
    background-color: white;
  }
  
  .hero {
    color: black;
    background: none !important;
    padding: 20px 0;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}