/* ==========================================================================
   Uzman Terapistim - Özel Stiller & Animasyonlar
   Tasarım Dili: Adaçayı Yeşili (#87A987 / #4E7356), Huzur Mavisi (#4A90E2),
   Kırık Beyaz (#F9FAF8), Sıcak Altın/Terrakotta (#E07A5F)
   ========================================================================== */

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

:root {
  --primary-sage: #4E7356;
  --primary-light: #87A987;
  --primary-soft: #F0F5F1;
  --primary-dark: #37533E;
  --serene-blue: #4A90E2;
  --serene-light: #EBF4FC;
  --accent-warm: #E07A5F;
  --accent-gold: #D97706;
  --bg-cream: #F9FAF8;
  --text-primary: #1F2937;
  --text-muted: #64748B;
  --border-soft: #E2E8F0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* WhatsApp Floating Pulse Button */
.whatsapp-pulse {
  position: relative;
}
.whatsapp-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  background-color: #25D366;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Custom Soft Box Shadows */
.shadow-soft {
  box-shadow: 0 10px 30px -10px rgba(78, 115, 86, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
}

.shadow-soft-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.shadow-soft-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(78, 115, 86, 0.18), 0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

/* Custom Gradient Backgrounds */
.bg-sage-gradient {
  background: linear-gradient(135deg, #F0F5F1 0%, #FFFFFF 50%, #EBF4FC 100%);
}

.bg-hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(135, 169, 135, 0.15) 0%, rgba(249, 250, 248, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.12) 0%, rgba(249, 250, 248, 0) 50%);
}

/* Modal Transitions */
.modal-backdrop {
  transition: opacity 0.3s ease-out;
}
.modal-content {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}

/* Accordion Active Styling */
.accordion-content {
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
}

/* Badge Glow */
.badge-glow {
  box-shadow: 0 0 15px rgba(135, 169, 135, 0.35);
}

/* Test Option Card Selected */
.test-option-btn.selected {
  border-color: #4E7356;
  background-color: #F0F5F1;
  color: #37533E;
  font-weight: 600;
}

/* Keyboard Shortcut Badges */
kbd.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-bottom-width: 2px;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Question Transition Animation */
.test-slide-in {
  animation: testSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Visual Score Gauge Bar */
.gauge-bar-container {
  position: relative;
  height: 12px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: visible;
}

.gauge-pin {
  position: absolute;
  top: -6px;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 3px solid #1F2937;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transform: translateX(-50%);
  transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

/* Breathing Bubble Animation for Micro-Intermissions */
.breathing-circle-outer {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(135, 169, 135, 0.4) 0%, rgba(78, 115, 86, 0.1) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathePulse 5s ease-in-out infinite;
}

.breathing-circle-inner {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: #4E7356;
  box-shadow: 0 0 25px rgba(78, 115, 86, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  animation: breatheInner 5s ease-in-out infinite;
}

@keyframes breathePulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.35); opacity: 0.95; }
}

@keyframes breatheInner {
  0%, 100% { transform: scale(0.88); }
  50% { transform: scale(1.15); }
}

/* Zen Focus Mode Overlay */
body.zen-active {
  overflow: hidden !important;
}

.zen-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 50% 20%, #F0F5F1 0%, #E2ECE4 50%, #D4E3D7 100%);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Luxury Therapist Match Card */
.therapist-badge-glow {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #86EFAC;
  box-shadow: 0 4px 14px 0 rgba(74, 222, 128, 0.2);
}

/* Timeline Roadmap Styling */
.timeline-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  bottom: -18px;
  width: 2px;
  background: #E2E8F0;
  transform: translateX(-50%);
}
.timeline-step:last-child .timeline-dot::after {
  display: none;
}

/* Print Optimization for Clinical Report Cards */
@media print {
  /* Hide non-report layout elements */
  #main-header,
  footer,
  .top-bar-notice,
  .whatsapp-pulse,
  #lead-popup,
  #appointment-modal,
  #test-catalog-section,
  #test-filters,
  .no-print,
  button:not(.print-include) {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 11pt;
  }

  .print-clean-card {
    box-shadow: none !important;
    border: 2px solid #4E7356 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .print-header {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4E7356;
  }
}
