/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Heebo:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --deep-red: #931F1D;
  --earth-brown: #937B63;
  --olive-green: #8A9B68;
  --sage-green: #B6C197;
  --light-beige: #D5DDBC;
}

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

body {
  font-family: 'Heebo', sans-serif;
  background-color: var(--light-beige);
  color: var(--earth-brown);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--earth-brown);
}

.english-lyrics {
  font-family: 'Merriweather', serif;
  text-align: left;
  white-space: pre-line;
  line-height: 1.8;
}

.hebrew-lyrics {
  font-family: 'Heebo', sans-serif;
  text-align: right;
  direction: rtl;
  white-space: pre-line;
  line-height: 1.8;
}

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

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 0;
}

.modal-content {
  background-color: var(--light-beige);
  border-radius: 12px;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
}

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

.modal-content::-webkit-scrollbar-track {
  background: var(--sage-green);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--olive-green);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--earth-brown);
}

/* Card hover effects */
.song-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.song-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(147, 31, 29, 0.15);
}

/* Video responsive wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Button styles */
.btn-primary {
  background-color: var(--deep-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #7a1916;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--olive-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: #738555;
  transform: scale(1.05);
}

/* Context box */
.context-box {
  background-color: rgba(182, 193, 151, 0.2);
  border-left: 4px solid var(--olive-green);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Navigation */
nav {
  background-color: rgba(147, 123, 99, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  color: var(--light-beige);
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: inline-block;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background-color: rgba(147, 31, 29, 0.8);
}

/* Footer */
footer {
  background-color: var(--earth-brown);
  color: var(--light-beige);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Logo */
.logo {
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    max-height: 95vh;
    border-radius: 0;
  }

  .logo {
    max-width: 200px;
  }

  nav a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Loading state */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(147, 31, 29, 0.3);
  border-radius: 50%;
  border-top-color: var(--deep-red);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Close button */
.close-btn {
  position: sticky;
  top: 1rem;
  right: 1rem;
  background-color: var(--deep-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.2s ease;
  float: right;
  margin-bottom: -40px;
}

.close-btn:hover {
  background-color: #7a1916;
  transform: scale(1.1);
}

/* Memorial Carousel Styles */
.memorial-carousel-wrapper {
  position: relative;
  padding: 0 50px;
}

.memorial-carousel-wrapper .swiper-button-prev,
.memorial-carousel-wrapper .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: rgba(182, 193, 151, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.memorial-carousel-wrapper .swiper-button-prev:hover,
.memorial-carousel-wrapper .swiper-button-next:hover {
  background-color: rgba(182, 193, 151, 0.4);
  transform: scale(1.1);
}

.memorial-carousel-wrapper .swiper-button-prev::after,
.memorial-carousel-wrapper .swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

@media (max-width: 640px) {
  .memorial-carousel-wrapper {
    padding: 0 35px;
  }

  .memorial-carousel-wrapper .swiper-button-prev,
  .memorial-carousel-wrapper .swiper-button-next {
    width: 30px;
    height: 30px;
  }

  .memorial-carousel-wrapper .swiper-button-prev::after,
  .memorial-carousel-wrapper .swiper-button-next::after {
    font-size: 16px;
  }
}
