/* =====================================================
   دار معلمة (Dar Maâlma) — Moroccan Craftswomen Theme
   Warm Terracotta, Zellij Emerald, Saffron Gold & Sand
   Tailwind CSS + DaisyUI + Voice-First Design
   ===================================================== */

:root {
  --primary-terracotta: #b84224;
  --primary-terracotta-dark: #913017;
  --primary-emerald: #136f4b;
  --primary-emerald-dark: #094a31;
  --accent-saffron: #d97706;
  --accent-saffron-light: #fef3c7;
  --bg-sand: #fcfaf5;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --border-subtle: rgba(184, 66, 36, 0.12);
}

[data-theme="dark"] {
  --primary-terracotta: #e06242;
  --primary-terracotta-dark: #b84224;
  --primary-emerald: #10b981;
  --primary-emerald-dark: #059669;
  --accent-saffron: #f59e0b;
  --accent-saffron-light: #78350f;
  --bg-sand: #13171f;
  --bg-card: #1e2430;
  --text-main: #f3f4f6;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Noto Sans Arabic", "Cairo", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-sand);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* Moroccan Zellij Border Accent */
.zellij-border {
  background: repeating-linear-gradient(
    45deg,
    #b84224,
    #b84224 10px,
    #d97706 10px,
    #d97706 20px,
    #136f4b 20px,
    #136f4b 30px
  );
  height: 4px;
}

/* Moroccan Hero Gradient */
.hero-gradient {
  background: linear-gradient(135deg, #913017 0%, #b84224 50%, #d97706 100%);
  color: #ffffff;
}

.emerald-gradient {
  background: linear-gradient(135deg, #094a31 0%, #136f4b 60%, #10b981 100%);
  color: #ffffff;
}

/* Sound Wave Animation */
@keyframes waveAnimation {
  0% { height: 6px; }
  50% { height: 26px; }
  100% { height: 6px; }
}

.soundwave-bar {
  width: 4px;
  background-color: #ffffff;
  border-radius: 9999px;
  animation: waveAnimation 1s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) { animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { animation-delay: 0.5s; }
.soundwave-bar:nth-child(4) { animation-delay: 0.2s; }
.soundwave-bar:nth-child(5) { animation-delay: 0.4s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: #b84224;
  border-radius: 4px;
}

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

/* Floating Audio Player Bar */
.floating-audio-bar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
}

/* Card Hover Elevation */
.craft-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.craft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(184, 66, 36, 0.15);
}

/* Pulse animation for voice trigger */
@keyframes pulseVoice {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.voice-pulsing {
  animation: pulseVoice 1.8s infinite;
}

/* Moroccan Pattern subtle background */
.moroccan-pattern-subtle {
  background-image: radial-gradient(rgba(184, 66, 36, 0.05) 1px, transparent 0);
  background-size: 20px 20px;
}

/* Touch Friendly Large Buttons */
.touch-btn-large {
  min-height: 52px;
  font-size: 1.05rem;
}
