@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html {
  scroll-behavior: smooth;
  font-family: "Vazirmatn", "Inter", system-ui, -apple-system, sans-serif;
}

body.cdn-clinic-theme {
  background-color: #fffdfE;
  color: #2a1f22;
  overflow-x: hidden;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff5f7; }
::-webkit-scrollbar-thumb { background: #f8c8d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e29bb0; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 25%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

@keyframes cdn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cdn-float-card { animation: cdn-float 6s ease-in-out infinite; }
.cdn-float-delay { animation-delay: 1s; }

.cdn-slow-spin { animation-duration: 80s; }

.cdn-fade-in {
  animation: cdnFadeIn 0.8s ease-out both;
}

@keyframes cdnFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#cdn-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(252, 231, 239, 0.4);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cdn-time-slot.is-selected {
  background: linear-gradient(to bottom right, #d19f91, #e29bb0);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(248, 200, 216, 0.3);
  transform: scale(1.03);
}

.cdn-time-slot.is-selected span:last-child { color: rgba(255,255,255,0.9); }

#cdn-about-modal.flex,
#cdn-article-modal.flex { display: flex !important; }

.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media print {
  header, footer, #booking form, .cdn-no-print { display: none !important; }
}
