/* =================================================================
   cemaat.online — Türbe Yeşili (Deep Tomb Emerald) Luxury Islamic Theme
   v3.0 — High Contrast, Islamic Architecture Aesthetics, Premium UI
   ================================================================= */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ---- CSS Variables: Türbe Yeşili Paleti ---- */
:root {
  --clr-bg: #02140f;
  --clr-surface: #04241b;
  --clr-card: rgba(4, 38, 29, 0.82);
  --clr-border: rgba(16, 185, 129, 0.18);
  --clr-border-active: rgba(52, 211, 153, 0.40);
  --clr-text: #f1f5f9;
  --clr-text-muted: #80aa9d;
  --clr-accent: #34d399;
  --sidebar-w: 18rem;
  --radius-card: 1.5rem;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #02140f;
}

/* ---- Custom Scrollbars ---- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.22);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 211, 153, 0.45);
}

/* ---- Glassmorphism Cards (Türbe Yeşili Tint) ---- */
.glass-card {
  background: var(--clr-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
}

.glass-card-glow {
  background: rgba(3, 30, 23, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.08), 0 20px 60px -15px rgba(0, 0, 0, 0.85);
}

.glass-card-hover {
  transition: all var(--transition-base);
}
.glass-card-hover:hover {
  border-color: var(--clr-border-active);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.12);
}

/* ---- Arabic Typography ---- */
.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
  line-height: 2.4;
  letter-spacing: 0.02em;
}

/* ---- Responsive Sidebar Offset ---- */
@media (min-width: 1024px) {
  .with-sidebar {
    margin-left: var(--sidebar-w);
  }
}

/* ====================================================
   3D MONOCHROME SVG ICON SYSTEM
   Siyah-beyaz, gerçekçi 3D görünüm
   ==================================================== */

/* Sidebar navigation icons — 3D Kabartmalı Rozetler */
.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* Hover efekti */
.nav-link:hover .nav-icon {
  transform: translateY(-2px) scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(4, 38, 29, 0.85));
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 14px rgba(52, 211, 153, 0.25);
}

/* Active nav link icon */
.nav-link.active .nav-icon {
  background: linear-gradient(135deg, #10b981, #042d22);
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5), inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Eski Fluentui ikon sistemi uyumluluk (kullanılmayacak ama kalsın) */
.icon-3d-grayscale {
  filter: grayscale(100%) contrast(1.1) brightness(1.05);
  transition: transform var(--transition-base);
}

/* ====================================================
   PAGE HEADER ICONS (Büyük başlık ikonları)
   ==================================================== */
.page-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.15));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.page-icon:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.animate-pop-in {
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.10); }
  50%       { box-shadow: 0 0 28px rgba(255, 255, 255, 0.25); }
}
.pulse-glow {
  animation: pulseGlow 2.8s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.skeleton {
  background: linear-gradient(90deg, #111 25%, #1c1c1c 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* Audio player waveform animation */
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1.0); }
}
.wave-bar {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: waveBar 0.8s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.30s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }

/* ====================================================
   FORM ELEMENTS
   ==================================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Focus ring override */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

/* ====================================================
   NAVIGATION
   ==================================================== */
#mobileNav a.active-nav {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}
#mobileNav a.active-nav .mobile-nav-icon {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

/* Sidebar scroll */
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

/* ====================================================
   MODAL
   ==================================================== */
.modal-backdrop-custom {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ====================================================
   ADMIN BADGE STATES
   ==================================================== */
.badge-pending {
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.25);
}
.badge-approved {
  background: rgba(34, 197, 94, 0.10);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.22);
}
.badge-rejected {
  background: rgba(239, 68, 68, 0.10);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.22);
}
.badge-user {
  background: rgba(255,255,255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.10);
}
.badge-admin {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ====================================================
   AYAH / QURAN
   ==================================================== */
.ayah-card {
  transition: all var(--transition-base);
}
.ayah-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ====================================================
   TOAST
   ==================================================== */
.toast-enter {
  animation: fadeIn 0.3s ease forwards;
}
.toast-exit {
  animation: fadeIn 0.3s ease reverse forwards;
}

/* ====================================================
   UTILITY
   ==================================================== */
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* High-contrast text selection */
::selection {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

/* Print optimizasyonu */
@media print {
  aside, nav, #mobileNav, .glass-card-glow { display: none !important; }
  .with-sidebar { margin-left: 0 !important; }
}
