/* ═══════════════════════════════════════════════════════════════
   Diyetisyen & Beslenme Danışmanlığı — Global Stiller & Dinamik Tema Paletleri
   Tailwind CDN ile uyumlu, 4 Doğal Beslenme & Sağlıklı Yaşam Teması Destekli
   ═══════════════════════════════════════════════════════════════ */

/* ── Temel ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── DİYETİSYEN & BESLENME DANIŞMANLIĞI TEMALARI ───────────── */
/* 1. Taze Yaprak & Avokado (Varsayılan - fresh_leaf) */
body.theme-fresh_leaf, body:not([class*="theme-"]) {
    --bg-main: #f0fdf4;
    --bg-card: #ffffff;
    --bg-subcard: #dcfce7;
    --border-color: #bbf7d0;
    --border-hover: #4ade80;
    --text-primary: #14532d;
    --text-secondary: #166534;
    --btn-primary: #15803d;
    --btn-primary-hover: #166534;
    --btn-primary-50: #f0fdf4;
    --btn-primary-100: #dcfce7;
    --btn-primary-200: #bbf7d0;
    --btn-primary-800: #14532d;
    --accent: #22c55e;
    --hero-gradient: linear-gradient(145deg, #052e16 0%, #14532d 35%, #15803d 70%, #22c55e 100%);
}

/* 2. Canlı Narenciye & Enerji (theme-citrus_energy) */
body.theme-citrus_energy {
    --bg-main: #fff7ed;
    --bg-card: #ffffff;
    --bg-subcard: #ffedd5;
    --border-color: #fed7aa;
    --border-hover: #fb923c;
    --text-primary: #7c2d12;
    --text-secondary: #9a3412;
    --btn-primary: #c2410c;
    --btn-primary-hover: #9a3412;
    --btn-primary-50: #fff7ed;
    --btn-primary-100: #ffedd5;
    --btn-primary-200: #fed7aa;
    --btn-primary-800: #7c2d12;
    --accent: #ea580c;
    --hero-gradient: linear-gradient(145deg, #431407 0%, #7c2d12 35%, #c2410c 70%, #ea580c 100%);
}

/* 3. Klinik Turkuaz & Mint (theme-clean_teal) */
body.theme-clean_teal {
    --bg-main: #f0fdfa;
    --bg-card: #ffffff;
    --bg-subcard: #ccfbf1;
    --border-color: #99f6e4;
    --border-hover: #2dd4bf;
    --text-primary: #134e4a;
    --text-secondary: #115e59;
    --btn-primary: #0f766e;
    --btn-primary-hover: #115e59;
    --btn-primary-50: #f0fdfa;
    --btn-primary-100: #ccfbf1;
    --btn-primary-200: #99f6e4;
    --btn-primary-800: #134e4a;
    --accent: #14b8a6;
    --hero-gradient: linear-gradient(145deg, #042f2e 0%, #134e4a 35%, #0f766e 70%, #14b8a6 100%);
}

/* 4. Organik Zeytin & Toprak (theme-olive_earth) */
body.theme-olive_earth {
    --bg-main: #f7fee7;
    --bg-card: #ffffff;
    --bg-subcard: #ecfccb;
    --border-color: #d9f99d;
    --border-hover: #a3e635;
    --text-primary: #365314;
    --text-secondary: #4d7c0f;
    --btn-primary: #4d7c0f;
    --btn-primary-hover: #365314;
    --btn-primary-50: #f7fee7;
    --btn-primary-100: #ecfccb;
    --btn-primary-200: #d9f99d;
    --btn-primary-800: #365314;
    --accent: #65a30d;
    --hero-gradient: linear-gradient(145deg, #1a2e05 0%, #365314 35%, #4d7c0f 70%, #65a30d 100%);
}

/* ── Dinamik Tema Renk Bağlamaları (Tüm Arayüzü Canlı Yönetir) ─── */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

.hero-default-bg {
    background: var(--hero-gradient) !important;
}

.bg-forest-600,
button.bg-forest-600,
a.bg-forest-600,
div.bg-forest-600,
span.bg-forest-600 {
    background-color: var(--btn-primary, #15803d) !important;
    color: #ffffff !important;
}

.hover\:bg-forest-700:hover,
button.hover\:bg-forest-700:hover,
a.hover\:bg-forest-700:hover {
    background-color: var(--btn-primary-hover, #166534) !important;
    color: #ffffff !important;
}

.text-forest-600,
i.text-forest-600,
span.text-forest-600,
strong.text-forest-600,
a.text-forest-600 {
    color: var(--btn-primary, #15803d) !important;
}

.border-forest-600 {
    border-color: var(--btn-primary, #15803d) !important;
}

.focus\:border-forest-600:focus {
    border-color: var(--btn-primary, #15803d) !important;
}

.bg-forest-600\/10 {
    background-color: color-mix(in srgb, var(--btn-primary, #15803d) 10%, transparent) !important;
}

.bg-forest-600\/15 {
    background-color: color-mix(in srgb, var(--btn-primary, #15803d) 15%, transparent) !important;
}

.border-cream-200 {
    border-color: var(--border-color, #dcfce7) !important;
}

.border-cream-100 {
    border-color: var(--border-color, #dcfce7) !important;
}

.bg-cream-100 {
    background-color: var(--bg-subcard) !important;
}

.bg-cream-50 {
    background-color: var(--bg-card) !important;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }

/* ── Nav Geçiş Efektleri ─────────────────────────────────────── */
#main-nav {
    transition: background-color 0.3s ease,
                border-color     0.3s ease,
                box-shadow       0.3s ease,
                backdrop-filter  0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* ── Form Elemanları ─────────────────────────────────────────── */
.bk-field {
    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.bk-field:focus {
    border-color: var(--btn-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 92, 39, 0.12);
}

/* Tarih Input İkonu (Yalnızca Ön Yüz Hızlı Randevu Kartı ve Sihirbaz İleri Tarih için) */
.bk-field[type="date"]::-webkit-calendar-picker-indicator,
#wz-custom-date::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Standart ve Admin modal tarih inputları için katman çakışmasını önle */
input[type="date"]:not(.bk-field):not(#wz-custom-date)::-webkit-calendar-picker-indicator {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    cursor: pointer;
}

/* ── Modal Animasyonları ─────────────────────────────────────── */
.modal-overlay {
    animation: fadeIn 0.2s ease;
}

.modal-overlay > div {
    animation: slideUp 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Galeri Kartları ─────────────────────────────────────────── */
.gallery-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── Buton Vurguları ─────────────────────────────────────────── */
.btn-primary-theme {
    background-color: var(--btn-primary);
    color: #ffffff;
    transition: all 0.2s ease;
}
.btn-primary-theme:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── 3 Adımlı Sihirbaz Seçim Kartları ───────────────────────── */
.wizard-card {
    transition: all 0.2s ease;
    cursor: pointer;
}
.wizard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.wizard-card.active {
    border-color: var(--btn-primary, #15803d) !important;
    background-color: var(--bg-subcard, #f0fdf4) !important;
    box-shadow: 0 0 0 2px var(--btn-primary, #15803d), 0 8px 24px rgba(21, 128, 61, 0.15) !important;
}

/* ── Randevu Saat Hapları (Slot Pills) ────────────────────────── */
.slot-pill {
    transition: all 0.2s ease;
    cursor: pointer;
}
.slot-pill.active,
button.slot-pill.active,
.slot-pill.border-forest-600.bg-forest-600,
button.slot-pill.border-forest-600.bg-forest-600 {
    background-color: var(--btn-primary, #15803d) !important;
    border-color: var(--btn-primary, #15803d) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3) !important;
}

/* ── Adım Hapları (Step Pills) ───────────────────────────────── */
.wz-pill.bg-forest-600,
div.wz-pill.border-forest-600.bg-forest-600,
.wz-pill.border-forest-600.bg-forest-600 {
    background-color: var(--btn-primary, #15803d) !important;
    border-color: var(--btn-primary, #15803d) !important;
    color: #ffffff !important;
}

.wz-pill.bg-forest-600\/15,
div.wz-pill.bg-forest-600\/15,
div.wz-pill.border-forest-600.bg-forest-600\/15 {
    background-color: #dcfce7 !important;
    border-color: #15803d !important;
    color: #15803d !important;
}

/* ── Sihirbaz İlerleme & Onay Butonları ───────────────────────── */
#wz-btn-step1,
#wz-btn-step2,
#wz-submit-btn,
#bk-hero-btn {
    transition: all 0.2s ease;
}

#wz-btn-step1:not(:disabled),
#wz-btn-step2:not(:disabled),
#wz-submit-btn:not(:disabled),
#bk-hero-btn:not(:disabled) {
    background-color: var(--btn-primary, #15803d) !important;
    border-color: var(--btn-primary, #15803d) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.25) !important;
}

#wz-btn-step1:not(:disabled):hover,
#wz-btn-step2:not(:disabled):hover,
#wz-submit-btn:not(:disabled):hover,
#bk-hero-btn:not(:disabled):hover {
    background-color: var(--btn-primary-hover, #166534) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(21, 128, 61, 0.35) !important;
}

#wz-btn-step1:disabled,
#wz-btn-step2:disabled,
#wz-submit-btn:disabled,
#bk-hero-btn:disabled {
    background-color: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ── Modern Randevu Sihirbazı Tarih Kartları (Adım 2) ────────── */
.wz-date-btn, 
.wz-custom-date-card {
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    background-color: #ffffff;
    border: 1.5px solid #e8decb;
    border-radius: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.wz-date-btn:hover, 
.wz-custom-date-card:hover {
    border-color: var(--btn-primary, #2d5c27);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(45, 92, 39, 0.15);
}

.wz-date-btn.active, 
.wz-custom-date-card.active {
    background: linear-gradient(145deg, var(--btn-primary, #2d5c27), var(--btn-primary-hover, #23481f)) !important;
    border-color: var(--btn-primary, #2d5c27) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -3px rgba(45, 92, 39, 0.35), 0 0 0 2px rgba(45, 92, 39, 0.25) !important;
}

.wz-date-btn.active .wz-day-badge, 
.wz-custom-date-card.active .wz-day-badge {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.wz-date-btn.active .wz-day-num,
.wz-date-btn.active .wz-day-month,
.wz-custom-date-card.active #wz-custom-day-text,
.wz-custom-date-card.active #wz-custom-day-text i {
    color: #ffffff !important;
}

.wz-date-btn.active .wz-day-dot,
.wz-custom-date-card.active .wz-day-dot {
    background-color: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* ── Diyetisyen & Sağlıklı Yaşam Tema Uyarlamaları ─────────── */
body.theme-fresh_leaf {
    --primary: #15803d;
    --primary-hover: #166534;
}

body.theme-citrus_energy {
    --primary: #ea580c;
    --primary-hover: #c2410c;
}

body.theme-clean_teal {
    --primary: #0f766e;
    --primary-hover: #115e59;
}

body.theme-olive_earth {
    --primary: #4d7c0f;
    --primary-hover: #3f6212;
}

body.theme-fresh_leaf .wz-date-btn.active, 
body.theme-fresh_leaf .wz-custom-date-card.active {
    background: linear-gradient(145deg, #15803d, #166534) !important;
    border-color: #15803d !important;
    box-shadow: 0 10px 24px -3px rgba(21, 128, 61, 0.35) !important;
}

body.theme-citrus_energy .wz-date-btn.active, 
body.theme-citrus_energy .wz-custom-date-card.active {
    background: linear-gradient(145deg, #ea580c, #c2410c) !important;
    border-color: #ea580c !important;
    box-shadow: 0 10px 24px -3px rgba(234, 88, 12, 0.35) !important;
}

body.theme-clean_teal .wz-date-btn.active, 
body.theme-clean_teal .wz-custom-date-card.active {
    background: linear-gradient(145deg, #0f766e, #115e59) !important;
    border-color: #0f766e !important;
    box-shadow: 0 10px 24px -3px rgba(15, 118, 110, 0.35) !important;
}

body.theme-olive_earth .wz-date-btn.active, 
body.theme-olive_earth .wz-custom-date-card.active {
    background: linear-gradient(145deg, #4d7c0f, #3f6212) !important;
    border-color: #4d7c0f !important;
    box-shadow: 0 10px 24px -3px rgba(77, 124, 15, 0.35) !important;
}

/* ── Admin Canlı Bildirim Animasyonları ───────────────────────── */
@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-4deg); }
}
.bell-ring {
    animation: bellRing 0.8s ease-in-out;
    transform-origin: top center;
}

