/* =======================
   Shirdi Sai Info - Devotional Theme
   ======================= */

/* Root Variables for Devotional Colors */
:root {
  --saffron-primary: #FF9933;
  --saffron-light: #FFB366;
  --saffron-dark: #E68A2E;
  --gold: #FFD700;
  --cream: #FFF8E7;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #666666;
  --om-orange: #FF6B35;
  --sacred-green: #2E7D32;
  --sacred-red: #C62828;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--cream) 0%, #FFF5E1 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
  padding: 15px 20px;
  width: 100%;
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-logo {
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.navbar-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--gold);
}

.site-title {
  color: var(--white);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Navbar Toggler for Mobile */
.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

.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='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Styles */
.nav-pills .nav-link {
  color: var(--white);
  font-weight: 600;
  margin: 0 5px;
  border-radius: 25px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-pills .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-pills .nav-link.active {
  background-color: var(--gold);
  color: var(--text-dark);
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
  padding: 15px 20px;
  width: 100%;
  text-align: center;
  color: var(--white);
  box-shadow: 0 -4px 15px rgba(255, 153, 51, 0.3);
  transition: all 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 5px 0;
}

.footer-mantra {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-copyright {
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-copyright strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-blessing {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.95;
  font-weight: 500;
}

/* Content Container */
.content {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-height: calc(100vh - 150px);
}

/* Chapter Heading */
.chapterHeading {
  color: var(--sacred-red);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  border-left: 5px solid var(--saffron-primary);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Chapter Content */
.chapterContent {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
}

/* Chapter Header Styles */
.chapter-header {
  text-align: center;
  padding: 30px 20px 10px 20px;
  margin-bottom: 5px;
}

.chapter-header-om {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--sacred-red);
  font-weight: bold;
}

.chapter-header-salutation {
  font-size: 1.5rem;
  color: var(--sacred-red);
  margin-bottom: 15px;
  font-weight: 600;
}

.chapter-header-title {
  font-size: 2.8rem;
  margin: 10px 0;
  color: var(--sacred-red) !important;
}

.chapter-header-subtitle {
  font-size: 2.2rem;
  margin: 8px 0;
  color: var(--sacred-red) !important;
}

.chapter-header-name {
  font-size: 1.8rem;
  margin-top: 15px;
  border: none;
  padding: 0;
  color: var(--sacred-red) !important;
}

.chapter-header-extra {
  font-size: 1.5rem;
  margin-top: 15px;
  border: none;
  padding: 0;
  color: var(--sacred-red) !important;
}

/* Chapter Footer Styles */
.chapter-footer {
  text-align: center;
  padding: 10px 20px 20px 20px;
  margin-top: 10px;
}

.chapter-footer-om {
  font-size: 1.3rem;
  color: var(--sacred-red);
  font-weight: 600;
  margin-bottom: 8px;
}

.chapter-footer-shanti {
  margin: 8px 0;
  font-size: 1.1rem;
  color: var(--sacred-red);
}

.chapter-footer-complete {
  font-weight: 600;
  color: var(--sacred-red);
  font-size: 1.1rem;
  margin: 8px 0;
}

.chapter-footer-extra {
  font-size: 1.05rem;
  color: var(--sacred-red);
  margin: 8px 0;
}

.chapter-footer-dedication {
  font-style: italic;
  color: var(--sacred-red);
  margin-top: 12px;
}

.chapter-footer-blessing {
  font-style: italic;
  color: var(--sacred-red);
  margin-top: 5px;
}

.chapterContent h1 {
  color: var(--saffron-primary);
  font-size: 2.5rem;
  margin: 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.chapterContent h2 {
  color: var(--sacred-green);
  font-size: 2rem;
  margin: 12px 0;
  text-align: center;
}

.chapterContent h3 {
  color: var(--saffron-dark);
  font-size: 1.5rem;
  margin: 10px 0;
  border-bottom: 2px solid var(--saffron-light);
  padding-bottom: 5px;
  text-align: center;
}

/* Chapter Title Section - for Om symbol and main headings */
.chapterContent > div[style*="font-size: 1.3rem"],
.chapterContent > div[style*="font-size: 1.2rem"] {
  text-align: center;
}

/* Quotes Section */
.quotes {
  margin: 30px auto;
  max-width: 900px;
  padding: 30px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quotes h2 {
  color: var(--sacred-red);
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.quotes ol {
  counter-reset: item;
  list-style: none;
}

.quotes li {
  counter-increment: item;
  padding: 20px;
  margin: 15px 0;
  background: var(--white);
  border-left: 4px solid var(--saffron-primary);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  line-height: 1.8;
}

.quotes li:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-left-color: var(--gold);
}

.quotes li::before {
  content: counter(item) ". ";
  color: var(--saffron-primary);
  font-weight: bold;
  font-size: 1.3rem;
  margin-right: 10px;
}

/* Table Styles for Satcharitra */
.table {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
  color: var(--white);
  font-weight: 600;
  padding: 15px;
  border: none;
}

.table tbody td {
  padding: 15px;
  border-color: #f0f0f0;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--cream);
}

/* Chapter Links */
.chapter,
a.chapter {
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
}

.chapter:hover,
a.chapter:hover {
  color: var(--sacred-red);
  background-color: var(--cream);
  transform: translateX(5px);
}

/* Audio Player Styles */
audio {
  margin: 15px 0;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

audio:hover {
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
  transform: scale(1.02);
}

/* Image Styles */
img.img-fluid {
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
}

img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 153, 51, 0.3);
}

/* Center utility */
.text-center {
  text-align: center;
}

/* Utility Classes */
ul {
  font-weight: normal;
}

.text-small {
  font-size: 85%;
}

.form-control-dark {
  border-color: var(--bs-gray);
}

.form-control-dark:focus {
  border-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .25);
}

.dropdown-toggle:not(:focus) {
  outline: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }

  header {
    padding: 10px 15px;
  }
  
  .header-container {
    padding: 0;
  }
  
  footer {
    padding: 15px;
  }
  
  .footer-container {
    padding: 0;
  }

  .nav-pills {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-pills .nav-link {
    margin: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .quotes {
    margin: 20px 10px;
    padding: 20px;
  }

  .quotes li {
    padding: 15px;
    font-size: 1rem;
  }

  .chapterHeading {
    font-size: 1.2rem;
    padding: 10px;
  }

  .chapterContent {
    font-size: 1rem;
    padding: 15px;
  }

  footer {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}

@media (min-width: 800px) {
  .quotes {
    margin: 30px auto;
  }

  .quotes li {
    padding: 20px;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  animation: fadeIn 0.6s ease-in-out;
}

/* Home Page Specific Styles */
.sai-image-section {
  margin: 30px 0;
}

.devotional-audio {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.audio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.audio-item {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.audio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 153, 51, 0.2);
}

.audio-item p {
  margin-bottom: 15px;
  color: var(--saffron-dark);
  font-size: 1.2rem;
}

.audio-item audio {
  width: 100%;
  margin: 0;
}

.welcome-message {
  margin: 50px 0 30px 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron-primary) 100%);
  border-radius: 15px;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.om-symbol {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.welcome-message h2 {
  font-size: 2rem;
  margin: 20px 0;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 15px;
  opacity: 0.95;
}

/* About Page Styles */
.about-section {
  padding: 20px 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-card {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 153, 51, 0.2);
}

.about-card h2 {
  color: var(--saffron-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--saffron-light);
  padding-bottom: 10px;
}

.about-card p {
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.about-card ul {
  list-style: none;
  padding-left: 0;
}

.about-card ul li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.8;
}

.about-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--saffron-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-card a {
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.about-card a:hover {
  color: var(--sacred-red);
  text-decoration: underline;
}

.quote-highlight {
  background: var(--white);
  padding: 20px;
  border-left: 4px solid var(--saffron-primary);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sacred-red);
  font-weight: 600;
  margin-top: 20px;
  border-radius: 8px;
}

.blessing-box {
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron-primary) 100%);
  color: var(--white);
  padding: 40px 20px;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.blessing-box h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blessing-box p {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}

/* Accessibility - Visually hidden but screen reader accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  header,
  footer,
  audio {
    display: none;
  }

  .content {
    box-shadow: none;
  }
}