/* ============================================================
   DAILY VERSE SANCTUARY - Majestic Biblical Design System
   Inspired by ancient manuscripts, Gothic architecture,
   and the sacred geometry of medieval Christendom
   ============================================================ */

:root {
  --sanctuary-gold: #b8860b;
  --sanctuary-gold-light: #daa520;
  --sanctuary-gold-dark: #8b6914;
  --sanctuary-burgundy: #800020;
  --sanctuary-burgundy-light: #a0203c;
  --sanctuary-stone: #e8e4d9;
  --sanctuary-parchment: #f5f1e3;
  --sanctuary-ink: #2c1810;
  --sanctuary-emerald: #10563a;
  --sanctuary-emerald-light: #106d4a;
}

/* Main Sanctuary Container */
.daily-verse-sanctuary {
  background: linear-gradient(135deg, 
    var(--sanctuary-parchment) 0%, 
    var(--sanctuary-stone) 100%);
  border: 3px double var(--sanctuary-gold);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(139, 105, 20, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

/* Decorative corner flourishes */
.daily-verse-sanctuary::before,
.daily-verse-sanctuary::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: 
    radial-gradient(circle at 50% 50%, transparent 30%, var(--sanctuary-gold-dark) 30%, var(--sanctuary-gold-dark) 32%, transparent 32%),
    radial-gradient(circle at 50% 50%, transparent 45%, var(--sanctuary-gold) 45%, var(--sanctuary-gold) 47%, transparent 47%),
    repeating-conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, transparent 15deg,
      var(--sanctuary-gold-light) 15deg, var(--sanctuary-gold-light) 30deg);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.daily-verse-sanctuary::before {
  top: -40px;
  left: -40px;
  transform: rotate(-15deg);
}

.daily-verse-sanctuary::after {
  bottom: -40px;
  right: -40px;
  transform: rotate(165deg);
}

/* Inner sanctuary with parchment texture */
.sanctuary-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184, 134, 11, 0.02) 2px,
      rgba(184, 134, 11, 0.02) 4px
    );
}

/* Scripture Chamber - Main daily verse block */
.scripture-chamber {
  background: linear-gradient(to bottom right,
    rgba(255, 255, 255, 0.95),
    rgba(245, 241, 227, 0.9));
  border: 2px solid var(--sanctuary-gold);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 
    0 4px 16px rgba(139, 105, 20, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

/* Decorative lion & cross watermark */
.scripture-chamber::before {
  content: '✠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  color: var(--sanctuary-gold);
  opacity: 0.04;
  font-family: serif;
  font-weight: 100;
  pointer-events: none;
  z-index: 0;
}

.chamber-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sanctuary-gold-light);
  position: relative;
  z-index: 1;
}

.chamber-icon {
  color: var(--sanctuary-burgundy);
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.chamber-title {
  margin: 0;
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sanctuary-burgundy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scripture-content {
  position: relative;
  z-index: 1;
}

.scripture-content blockquote {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--sanctuary-ink);
  font-style: italic;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--sanctuary-emerald);
  quotes: """ """ "'" "'";
}

.scripture-content blockquote::before {
  content: open-quote;
  font-size: 2.5rem;
  color: var(--sanctuary-gold-dark);
  position: absolute;
  left: -0.25rem;
  top: -0.5rem;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.dv-ref {
  display: block;
  margin-top: 1rem;
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 0.95rem;
  color: var(--sanctuary-emerald);
  font-weight: 600;
}

.dv-ref a {
  color: var(--sanctuary-emerald);
  text-decoration: none;
  border-bottom: 1px dotted var(--sanctuary-emerald-light);
  transition: all 0.2s ease;
  padding: 0.1rem 0.25rem;
  margin: 0 0.1rem;
}

.dv-ref a:hover,
.dv-ref a:focus {
  background: var(--sanctuary-emerald);
  color: white;
  border-bottom-color: var(--sanctuary-emerald);
  border-radius: 3px;
}

.verse-version-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.dv-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b6459;
  font-style: italic;
  text-align: right;
}

/* Biblical Resources Section */
.biblical-resources {
  position: relative;
  z-index: 1;
}

.resources-title {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sanctuary-burgundy);
  text-align: center;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 100%;
}

.resources-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  background: linear-gradient(to right,
    transparent,
    var(--sanctuary-gold),
    transparent);
  margin: 0.75rem auto 0;
}

.resources-intro {
  text-align: center;
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1.1rem;
  color: var(--sanctuary-ink);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Resource Cards Grid with Masonry effect */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  background: white;
  border: 2px solid var(--sanctuary-gold-light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 
    0 4px 12px rgba(139, 105, 20, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Decorative floral corner pattern */
.resource-card::before {
  content: '❦';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  color: var(--sanctuary-gold);
  opacity: 0.2;
  font-family: serif;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(139, 105, 20, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border-color: var(--sanctuary-gold);
}

.resource-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,
    rgba(128, 0, 32, 0.03),
    rgba(184, 134, 11, 0.03));
  border: 3px double var(--sanctuary-burgundy);
}

.resource-card--featured::before {
  content: '✞';
  font-size: 2.5rem;
  top: 0.25rem;
  right: 0.75rem;
  color: var(--sanctuary-burgundy);
  opacity: 0.15;
}

.resource-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sanctuary-gold-light);
}

.resource-icon {
  color: var(--sanctuary-burgundy);
  flex-shrink: 0;
}

.resource-header h5 {
  margin: 0;
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sanctuary-burgundy);
  letter-spacing: 0.02em;
}

.resource-description {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sanctuary-ink);
  margin-bottom: 1rem;
  font-style: italic;
}

.resource-description strong {
  color: var(--sanctuary-burgundy);
  font-style: normal;
  font-weight: 700;
}

.resource-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-links li {
  margin-bottom: 0.65rem;
  padding-left: 1.25rem;
  position: relative;
}

.resource-links li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--sanctuary-gold-dark);
  font-size: 0.7rem;
  top: 0.25rem;
}

.resource-links a {
  color: var(--sanctuary-emerald);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline;
  line-height: 1.6;
}

.resource-links a:hover,
.resource-links a:focus {
  color: var(--sanctuary-burgundy);
  border-bottom-color: var(--sanctuary-burgundy);
}

/* Resources Footer */
.resources-footer {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--sanctuary-gold-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.disclaimer-text {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sanctuary-ink);
  margin: 0;
  text-align: center;
}

.disclaimer-text strong {
  color: var(--sanctuary-burgundy);
  font-weight: 700;
}

.disclaimer-text em {
  color: var(--sanctuary-emerald);
  font-style: italic;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sanctuary-inner {
    padding: 1.5rem;
  }

  .scripture-chamber {
    padding: 1.5rem;
  }

  .chamber-title {
    font-size: 1.25rem;
  }

  .scripture-content blockquote {
    font-size: 1.1rem;
    padding-left: 1rem;
  }

  .resources-title {
    font-size: 1.4rem;
  }

  .resources-intro {
    font-size: 1rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resource-card--featured {
    grid-column: 1;
  }
}

/* Print Styles */
@media print {
  .daily-verse-sanctuary {
    border: 2px solid black;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .daily-verse-sanctuary::before,
  .daily-verse-sanctuary::after,
  .scripture-chamber::before,
  .resource-card::before {
    display: none;
  }

  .resource-links a {
    text-decoration: underline;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .resource-card,
  .dv-ref a,
  .resource-links a {
    transition: none;
  }

  .resource-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .daily-verse-sanctuary {
    border: 3px solid currentColor;
  }

  .scripture-chamber,
  .resource-card {
    border: 2px solid currentColor;
  }
}
