/* ==========================================================================
   SACRED SERENITY CUSTOM STYLE RULES
   ========================================================================== */

/* Google Fonts Import (if backup required, already loaded in html) */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

/* Base Body Styles */
body {
  background-color: #fcfbf7; /* Custom Soft Cream for At-Taqwa aesthetic */
  background-image: radial-gradient(#064e3b0b 1px, transparent 0);
  background-size: 40px 40px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f8f9ff;
}
::-webkit-scrollbar-thumb {
  background: #bfc9c3;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #003527;
}

/* Text Selection */
::selection {
  background-color: #95d3ba;
  color: #003527;
}

/* Material Symbols Overrides */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* Arabesque Watermark Texture overlay */
.arabesque-pattern {
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  opacity: 0.03;
  pointer-events: none;
}

/* Hero Gradient Panel */
.hero-gradient {
  background: linear-gradient(135deg, #f8f9ff 0%, #eff4ff 100%);
}

/* Glass Card styling overrides */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(225, 223, 220, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(6, 78, 59, 0.2);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.05);
}

/* Pattern Backdrop for Contact Section */
.pattern-bg {
  background-image: radial-gradient(circle at 2px 2px, rgba(6, 78, 59, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Spiritual Card Gradient */
.spiritual-gradient {
  background: linear-gradient(135deg, rgba(248, 249, 255, 1) 0%, rgba(230, 238, 255, 0.5) 100%);
}

/* Masonry Columns Layout Grid */
.masonry-grid {
  columns: 1;
  column-gap: 1.5rem;
  padding-top: 1rem;
}
@media (min-width: 768px) {
  .masonry-grid {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: visible;
}

/* Audio Player sliders */
.audio-progress-bar::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
}

.audio-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ffffff;
  margin-top: -4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}
.audio-progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Active Nav Links styling */
.nav-menu-link.active-link {
  color: #003527 !important;
  font-weight: 700;
  border-bottom: 2px solid #5a400d;
}

/* Lightbox Modal styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 28, 42, 0.96); /* Dark Blue-Charcoal backdrop */
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #95d3ba;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #95d3ba;
}

.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

@media (max-width: 767px) {
  .lightbox-nav {
    display: none;
  }
}

.lightbox-content {
  max-w-4xl;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  color: #dee9fc;
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Hanken Grotesk', sans-serif;
}

/* Floating Share Menu Animations */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-fade-in-up {
  animation: fadeInSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Audio Player Animations & Glass Effect */
.vinyl-rotate {
  animation: rotate 20s linear infinite;
}
.vinyl-paused {
  animation-play-state: paused;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.glass-player-bg {
  background: radial-gradient(circle at 20% 30%, rgba(6, 78, 59, 0.95) 0%, rgba(0, 33, 23, 1) 100%);
  position: relative;
  overflow: hidden;
}
.glass-player-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(217, 249, 157, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.glass-player-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}
.player-glow {
  box-shadow: 0 0 40px rgba(217, 249, 157, 0.3);
}
.circular-progress {
  background: conic-gradient(#d9f99d var(--progress), transparent 0deg);
  transition: --progress 0.5s ease;
}
@property --progress {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
