/* assets/css/app.css - Crystal Clear High Contrast Theme */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', serif;

  --bg-primary: #0D0E12;
  --bg-secondary: #13141A;
  --bg-surface: #1B1C24;
  --bg-surface-hover: #262834;
  --bg-card: #1B1C24;
  --bg-card-border: rgba(255, 255, 255, 0.16);

  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;

  --accent-gold: #FBBF24;
  --accent-gold-light: #FDE68A;

  --player-bg: #15161D;
  --player-border: rgba(255, 255, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 240ms cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.font-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

#ambient-video-bg.active {
  opacity: 0.4 !important;
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #13141A;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
  padding: 0 8px;
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  min-width: 54px;
  min-height: 48px;
}
.bottom-nav-item.active {
  color: #FFFFFF;
}
.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* Persistent Mini Player */
.mini-player {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: #181923;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 39;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mini-player {
    bottom: 0;
    left: 256px;
    right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 12px 36px;
    height: 80px;
    z-index: 45;
  }
}

/* Crisp Solid Cards */
.card-item {
  background: #1B1C24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.card-item:hover {
  background: #262834;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  height: 5px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Full Screen Player Modal */
.full-player-modal {
  position: fixed;
  inset: 0;
  background: #0D0E12;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}
.full-player-modal.open {
  transform: translateY(0);
}

/* Ayah Typography & Spacing */
.ayah-row {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1B1C24;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.ayah-row.active {
  background: #252733;
  border-color: #FBBF24;
}
