/**
 * DentArt Ağız ve Diş Sağlığı Polikliniği - Özel Stil Dosyası
 * ------------------------------------------------------------------
 * Tailwind CSS'e ek olarak kullanılan özel animasyon ve stil tanımları.
 * Laravel entegrasyonunda bu dosya public/assets/css/ altına taşınabilir.
 */

/* ==========================================================================
   GOOGLE FONTS (Inter + Poppins)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS DEĞİŞKENLERİ (Tema Renkleri)
   ========================================================================== */
:root {
  --color-primary: #0F766E;
  --color-primary-hover: #0D6B63;
  --color-primary-light: #CCFBF1;
  --color-secondary: #0369A1;
  --color-secondary-hover: #025B8C;
  --color-accent: #F59E0B;
  --color-dark: #1E293B;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-600: #475569;
  --color-white: #FFFFFF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-base: all 0.3s ease;
}

/* ==========================================================================
   TEMEL SIFIRLAMA
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Başlıklar için Poppins fontu */
h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
}

/* ==========================================================================
   ANİMASYON KEYFRAME'LERİ
   ========================================================================== */

/* Fade Up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade Right */
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade Left */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide Down (Mobil menü) */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Float (WhatsApp butonu) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulse soft */
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(15, 118, 110, 0); }
}

/* ==========================================================================
   ANİMASYON SINIFLARI (Intersection Observer ile tetiklenir)
   ========================================================================== */
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-right {
  animation: fadeRight 0.8s ease forwards;
}

.animate-fade-left {
  animation: fadeLeft 0.8s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease forwards;
}

.animate-slide-down {
  animation: slideDown 0.3s ease forwards;
}

/* Initial state - JS ile görünür olana kadar gizli */
[data-animate] {
  opacity: 0;
}

/* ==========================================================================
   HOVER EFEKTLERİ
   ========================================================================== */

/* Servis kartı hover */
.service-card {
  transition: var(--transition-base);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 118, 110, 0.2);
}

/* Buton hover alt çizgi animasyonu */
.btn-underline {
  position: relative;
}
.btn-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.btn-underline:hover::after {
  width: 100%;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
#floating-wa-btn {
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

/* ==========================================================================
   FORM ELEMANLARI
   ========================================================================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* ==========================================================================
   GOOGLE MAPS YER TUTUCU
   ========================================================================== */
.map-placeholder {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   YILDIZ DEĞERLENDİRME
   ========================================================================== */
.stars {
  color: var(--color-accent);
  letter-spacing: 2px;
}

/* ==========================================================================
   ÖZEL SCROLL BAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
}

/* ==========================================================================
   RESPONSIVE YARDIMCI SINIFLAR
   ========================================================================== */
@media (max-width: 640px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  #floating-wa-btn,
  .no-print {
    display: none !important;
  }
}
