/* ═══════════════════════════════════════════════════════════════
   Erkek Kuaförü Randevu — Global Stiller & Dinamik Tema Paletleri
   Tailwind CDN ile uyumlu, 4 Dükkan Konsept 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;
}

/* ── KADIN KUAFÖRÜ & GÜZELLİK SALONU TEMALARI ────────────────── */
/* 1. Zarif Gül Kurusu & Pudra Pembesi & Sıcak Krem (Rose Gold - Varsayılan) */
body.theme-rose_gold, body:not([class*="theme-"]) {
    --bg-main: #fbf5f4;
    --bg-card: #ffffff;
    --bg-subcard: #fffaf9;
    --border-color: #eedad7;
    --border-hover: #dfc2be;
    --text-primary: #2d1d21;
    --text-secondary: #785a60;
    --btn-primary: #b85265;
    --btn-primary-hover: #9c3f51;
    --btn-primary-50: #fdf5f6;
    --btn-primary-100: #fcecee;
    --btn-primary-200: #f9d8dd;
    --btn-primary-800: #7f2d3d;
    --accent: #d47b8d;
    --hero-gradient: linear-gradient(145deg, #1c1014 0%, #2a141c 25%, #351824 50%, #2b121c 75%, #180c11 100%);
}

/* 2. Sıcak Şampanya & Nude / Lüks Bej */
body.theme-champagne_nude {
    --bg-main: #faf5ee;
    --bg-card: #ffffff;
    --bg-subcard: #fdfaf5;
    --border-color: #e8dccb;
    --border-hover: #d8c8b0;
    --text-primary: #2a2118;
    --text-secondary: #6e5c4d;
    --btn-primary: #a07548;
    --btn-primary-hover: #865f36;
    --btn-primary-50: #fcf8f2;
    --btn-primary-100: #f7eee2;
    --btn-primary-200: #eddcc5;
    --btn-primary-800: #6f4c27;
    --accent: #c49767;
    --hero-gradient: linear-gradient(145deg, #1c1712 0%, #2b2016 25%, #38291c 50%, #2a1f15 75%, #18130e 100%);
}

/* 3. Lüks Lavanta & Platin İnci */
body.theme-lavender_chic {
    --bg-main: #f7f4fa;
    --bg-card: #ffffff;
    --bg-subcard: #fbf9fd;
    --border-color: #e5dceb;
    --border-hover: #d2c3dc;
    --text-primary: #251c2e;
    --text-secondary: #6b5a79;
    --btn-primary: #7e5399;
    --btn-primary-hover: #684180;
    --btn-primary-50: #faf7fc;
    --btn-primary-100: #f3ebf7;
    --btn-primary-200: #e5d4ec;
    --btn-primary-800: #55346a;
    --accent: #9f75ba;
    --hero-gradient: linear-gradient(145deg, #16121c 0%, #22182b 25%, #2e1e3b 50%, #21162a 75%, #130e17 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) !important;
}

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

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

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

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

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

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

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

.border-cream-100 {
    border-color: var(--border-color) !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: #2d5c27 !important;
    background-color: #f7faf6 !important;
    box-shadow: 0 0 0 2px #2d5c27, 0 8px 24px rgba(45, 92, 39, 0.12) !important;
}

body.theme-dark_anthracite .wizard-card.active {
    border-color: #d4af37 !important;
    background-color: #27272e !important;
    box-shadow: 0 0 0 2px #d4af37, 0 8px 24px rgba(212, 175, 55, 0.15) !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);
}

/* Sıcak Kahve Teması ile Uyum */
body.theme-coffee_warm .wz-date-btn:hover,
body.theme-coffee_warm .wz-custom-date-card:hover {
    border-color: #6c3b1d;
    box-shadow: 0 8px 20px -3px rgba(108, 59, 29, 0.15);
}

body.theme-coffee_warm .wz-date-btn.active, 
body.theme-coffee_warm .wz-custom-date-card.active {
    background: linear-gradient(145deg, #6c3b1d, #522d16) !important;
    border-color: #6c3b1d !important;
    box-shadow: 0 10px 24px -3px rgba(108, 59, 29, 0.35), 0 0 0 2px rgba(108, 59, 29, 0.25) !important;
}

/* ── Responsive Düzeltmeler ──────────────────────────────────── */
@media (max-width: 640px) {
    #hero h1 { font-size: 2.75rem; line-height: 1.08; }
    #modal-booking > div,
    #modal-success > div,
    #modal-track   > div { margin: 0.5rem; }
}

/* ── Panel & Sayfa Tema Uyarlamaları ─────────────────────────── */
body.theme-dark_anthracite {
    background-color: #141416 !important;
    color: #f4f4f6 !important;
}
body.theme-dark_anthracite header,
body.theme-dark_anthracite aside,
body.theme-dark_anthracite .bg-white {
    background-color: #1f1f24 !important;
    color: #f4f4f6 !important;
    border-color: #2e2e38 !important;
}
body.theme-dark_anthracite .bg-slate-50,
body.theme-dark_anthracite .bg-\[\#fbf8f3\],
body.theme-dark_anthracite .bg-\[\#f7f2ea\],
body.theme-dark_anthracite .bg-\[\#f7f3ec\] {
    background-color: #27272e !important;
    border-color: #383842 !important;
}
body.theme-dark_anthracite .text-slate-900,
body.theme-dark_anthracite .text-slate-800,
body.theme-dark_anthracite .text-slate-700,
body.theme-dark_anthracite .text-\[\#1c1917\],
body.theme-dark_anthracite .text-\[\#2c2621\] {
    color: #f4f4f6 !important;
}
body.theme-dark_anthracite .text-slate-500,
body.theme-dark_anthracite .text-slate-400 {
    color: #a1a1aa !important;
}
body.theme-dark_anthracite .border-\[\#e8decb\],
body.theme-dark_anthracite .border-slate-200,
body.theme-dark_anthracite .border-slate-300 {
    border-color: #33333d !important;
}
body.theme-dark_anthracite input:not([type="checkbox"]):not([type="radio"]),
body.theme-dark_anthracite select,
body.theme-dark_anthracite textarea {
    background-color: #27272e !important;
    color: #f4f4f6 !important;
    border-color: #3e3e4a !important;
}

body.theme-midnight_blue {
    background-color: #0c1222 !important;
    color: #f8fafc !important;
}
body.theme-midnight_blue header,
body.theme-midnight_blue aside,
body.theme-midnight_blue .bg-white {
    background-color: #151f36 !important;
    color: #f8fafc !important;
    border-color: #233355 !important;
}
body.theme-midnight_blue .bg-slate-50,
body.theme-midnight_blue .bg-\[\#fbf8f3\],
body.theme-midnight_blue .bg-\[\#f7f2ea\],
body.theme-midnight_blue .bg-\[\#f7f3ec\] {
    background-color: #1a2744 !important;
    border-color: #283a60 !important;
}
body.theme-midnight_blue .text-slate-900,
body.theme-midnight_blue .text-slate-800,
body.theme-midnight_blue .text-slate-700,
body.theme-midnight_blue .text-\[\#1c1917\],
body.theme-midnight_blue .text-\[\#2c2621\] {
    color: #f8fafc !important;
}
body.theme-midnight_blue .text-slate-500,
body.theme-midnight_blue .text-slate-400 {
    color: #94a3b8 !important;
}
body.theme-midnight_blue .border-\[\#e8decb\],
body.theme-midnight_blue .border-slate-200,
body.theme-midnight_blue .border-slate-300 {
    border-color: #27395c !important;
}
body.theme-midnight_blue input:not([type="checkbox"]):not([type="radio"]),
body.theme-midnight_blue select,
body.theme-midnight_blue textarea {
    background-color: #1a2744 !important;
    color: #f8fafc !important;
    border-color: #2f436b !important;
}

body.theme-coffee_warm {
    background-color: #f5ece2 !important;
    color: #2c221a !important;
}
body.theme-coffee_warm .bg-\[\#fbf8f3\],
body.theme-coffee_warm .bg-\[\#f7f2ea\],
body.theme-coffee_warm .bg-\[\#f7f3ec\] {
    background-color: #ece1d3 !important;
    border-color: #dbc9b5 !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;
}

