/* Custom Biblical Art Journey Styles */

/* Google Fonts - Biblical themed fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Enhanced Biblical Color Palette */
:root {
  --biblical-gold: #D4AF37;
  --biblical-gold-light: #E8C547;
  --biblical-gold-dark: #B8941F;
  
  --biblical-purple: #6B46C1;
  --biblical-purple-light: #8B5CF6;
  --biblical-purple-dark: #553C9A;
  
  --biblical-blue: #1E40AF;
  --biblical-blue-light: #3B82F6;
  --biblical-blue-dark: #1E3A8A;
  
  --biblical-green: #059669;
  --biblical-green-light: #10B981;
  --biblical-green-dark: #047857;
  
  --biblical-red: #DC2626;
  --biblical-red-light: #EF4444;
  --biblical-red-dark: #B91C1C;
  
  --biblical-cream: #FEF7ED;
  --biblical-warm: #FBBF24;
  --biblical-earth: #A3A3A3;
  
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Typography */
.font-biblical {
  font-family: 'Cinzel', serif;
}

.font-serif-custom {
  font-family: 'Crimson Text', serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

@keyframes glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

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

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-pulse-gentle {
  animation: pulse 2s ease-in-out infinite;
}

/* Interactive elements */
.artwork-hover-effect {
  transition: all 0.3s ease;
}

.artwork-hover-effect:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hotspot styles for interactive artwork */
.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--biblical-gold);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.hotspot:hover {
  transform: scale(1.2);
  background-color: var(--biblical-red);
}

.hotspot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: var(--biblical-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

/* Tooltip styles */
.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip.show {
  opacity: 1;
}

/* Progress bar animations */
.progress-bar {
  transition: width 0.8s ease-in-out;
}

/* Image zoom styles */
.zoom-container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-image {
  transition: transform 0.3s ease;
}

.zoom-container:hover .zoom-image {
  transform: scale(1.1);
}

/* Modal styles */
.modal-overlay {
  backdrop-filter: blur(5px);
}

/* Card hover effects */
.story-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Text selection */
::selection {
  background-color: var(--biblical-gold);
  color: white;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--biblical-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .story-content {
    page-break-inside: avoid;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hotspot {
    width: 30px;
    height: 30px;
  }
  
  .hotspot::before {
    width: 50px;
    height: 50px;
  }
  
  .tooltip {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Loading animations */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .story-card {
    border: 2px solid currentColor;
  }
  
  .hotspot {
    border-width: 4px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hotspot::before {
    animation: none;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles will be added here in future updates */
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--biblical-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8941F;
}

/* Utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.gradient-text {
  background: linear-gradient(45deg, var(--biblical-purple), var(--biblical-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}