/* ==========================================================================
   BURAK TAN BARBER - LUXURY GENTLEMAN STYLING
   Palette: Bordo (Burgundy), Altın (Gold), Granit (Dark Slate)
   Light & Dark Mode Full Adaptive System (Ultra Okunaklı & Kontrastlı)
   ========================================================================== */

:root {
    /* ALTIN PALETİ */
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #8A5A00;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5DEB3 50%, #B8860B 100%);
    --gold-glow: 0 0 25px rgba(212, 175, 55, 0.35);

    /* BORDO PALETİ */
    --burgundy-primary: #6B0F1A;
    --burgundy-deep: #42070E;
    --burgundy-light: #8B1E2B;
    --burgundy-gradient: linear-gradient(135deg, #6B0F1A 0%, #42070E 100%);
    --burgundy-glow: 0 0 25px rgba(107, 15, 26, 0.4);

    /* FONT SETİ */
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   GÜNDÜZ MODU (LIGHT MODE) - ROYAL IVORY, TRAVERTINE & BORDO ZERAFETİ
   VIP Erkek Kuaför & Saç Tasarımına Özel Üst Segment Renk Mimarisi
   ========================================================================== */
html.light {
    --bg-main: #FBF8F3;            /* Sıcak İtalyan Alabaster / Fildişi */
    --bg-surface: #FFFFFF;         /* Pürüzsüz Saf Kart Beyazı */
    --bg-surface-elevated: #F2EBE0;/* Sıcak Traverten / Bej Geçiş */
    --text-primary: #0F172A;       /* Ultra Net Derin Kömür / Oniks */
    --text-secondary: #334155;     /* Asil Koyu Antrasit */
    --text-muted: #475569;         /* Okunaklı Doygun Gri */
    --border-color: rgba(184, 134, 11, 0.28); /* Antik Altın İnce Çerçeve */
    --card-shadow: 0 10px 30px -8px rgba(107, 15, 26, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Gündüz Modu Zemin ve Tipografi Kuralları */
html.light body {
    background-color: var(--bg-main) !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(107, 15, 26, 0.05) 0%, transparent 45%) !important;
    color: var(--text-primary) !important;
}

/* Açık modda Başlıklar: Güçlü, Derin ve Karakterli */
html.light main h1:not(.slider-slide h1),
html.light main h2:not(.slider-slide h2),
html.light main h3:not(.slider-slide h3),
html.light main h4:not(.slider-slide h4) {
    color: #111827 !important;
    font-weight: 800 !important;
}

html.light main .text-white:not(.slider-slide *):not(.btn-gold *):not(.btn-burgundy *):not(.badge-white *):not(#theme-toggle *) {
    color: #0F172A !important;
}

html.light main .text-slate-200:not(.slider-slide *),
html.light main .text-slate-300:not(.slider-slide *) {
    color: #334155 !important;
}

html.light main .text-slate-400:not(.slider-slide *) {
    color: #475569 !important;
}

html.light main .text-slate-500:not(.slider-slide *) {
    color: #64748B !important;
}

/* Açık modda Altın Gradienti: Soluk sarı yerine Ağırbaşlı Kraliyet Bronz-Altını */
html.light .text-gold-gradient {
    background: linear-gradient(135deg, #7A5000 0%, #B8860B 35%, #D4AF37 65%, #6B0F1A 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Açık modda Sarı İkonlar: Beyaz zeminde net parlayan Zengin Vurgu Altını */
html.light main i.text-amber-400,
html.light main span.text-amber-400 {
    color: #B8860B !important;
}

/* Açık modda Bölüm Zeminleri (Derinlik ve Katman Hissi) */
html.light .bg-granite-950:not(footer) {
    background-color: #FBF8F3 !important;
}
html.light .bg-granite-900:not(footer) {
    background-color: #F2EBE0 !important;
    border-top: 1px solid rgba(184, 134, 11, 0.12) !important;
    border-bottom: 1px solid rgba(184, 134, 11, 0.12) !important;
}
html.light .bg-granite-850:not(footer) {
    background-color: #ECE3D4 !important;
}
html.light .bg-granite-800 {
    background-color: #FFFFFF !important;
}

/* Açık Modda Lüks Kartlar: Katmanlı Gölge, Altın Çerçeve ve Zerafet */
html.light .card-luxury {
    background: #FFFFFF !important;
    border: 1px solid rgba(184, 134, 11, 0.28) !important;
    box-shadow: 0 10px 30px -8px rgba(107, 15, 26, 0.07), 0 0 1px 1px rgba(212, 175, 55, 0.14) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html.light .card-luxury:hover {
    border-color: #B8860B !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px -10px rgba(107, 15, 26, 0.14), 0 0 0 1px #D4AF37 !important;
}

/* Açık modda Header / Navbar: Yüksek Seviye Fildişi Cam Dokusu */
html.light .glass-nav {
    background: rgba(251, 248, 243, 0.95) !important;
    border-bottom: 1.5px solid rgba(184, 134, 11, 0.22) !important;
    box-shadow: 0 4px 25px rgba(107, 15, 26, 0.05) !important;
}
html.light .glass-nav a {
    color: #1E293B !important;
    font-weight: 600;
}
html.light .glass-nav a:hover,
html.light .glass-nav a.text-burgundy-600 {
    color: #6B0F1A !important;
    font-weight: 700;
}

/* Açık modda Çerçeveler */
html.light .border-slate-800,
html.light .border-slate-700 {
    border-color: rgba(184, 134, 11, 0.18) !important;
}
html.light .border-amber-500\/15,
html.light .border-amber-500\/20,
html.light .border-amber-500\/30 {
    border-color: rgba(184, 134, 11, 0.32) !important;
}

/* Açık modda Form Girişleri (Input, Select, Textarea) */
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html.light select,
html.light textarea {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
html.light input:focus,
html.light select:focus,
html.light textarea:focus {
    border-color: #6B0F1A !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.15) !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
    color: #94A3B8 !important;
}

/* Açık modda Randevu Slot Butonları */
html.light .time-slot-btn {
    background-color: #FFFFFF !important;
    border: 1.5px solid rgba(184, 134, 11, 0.32) !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.04) !important;
}
html.light .time-slot-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: #000000 !important;
    border-color: #B8860B !important;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35) !important;
}
html.light .time-slot-btn span.text-emerald-400 {
    color: #047857 !important;
    font-weight: 800 !important;
}

/* Açık modda Rozetler ve Etiketler */
html.light .bg-amber-500\/10 {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: #78350F !important;
    border: 1px solid rgba(184, 134, 11, 0.35) !important;
    font-weight: 700 !important;
}
html.light .bg-burgundy-600\/10 {
    background-color: rgba(107, 15, 26, 0.1) !important;
    color: #6B0F1A !important;
    border: 1px solid rgba(107, 15, 26, 0.3) !important;
    font-weight: 700 !important;
}

/* Açık modda Yıldız Derecelendirmeleri */
html.light .fa-star {
    color: #D4AF37 !important;
    filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.25));
}

/* ==========================================================================
   GECE MODU (DARK MODE - DEFAULT LUXURY GRANITE)
   ========================================================================== */
html.dark {
    --bg-main: #0C0D10;
    --bg-surface: #14161B;
    --bg-surface-elevated: #1C1F26;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: rgba(212, 175, 55, 0.16);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.85);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.font-heading {
    font-family: var(--font-heading);
}

/* LUXURY GOLD TEXT GRADIENT (DARK) */
html.dark .text-gold-gradient {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LUXURY BURGUNDY TEXT GRADIENT */
.text-burgundy-gradient {
    background: linear-gradient(135deg, #A52A3A 0%, #6B0F1A 50%, #42070E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ALTIN ÇERÇEVELER VE KARTLAR (DARK) */
html.dark .card-luxury {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .card-luxury:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px -10px rgba(212, 175, 55, 0.22);
}

/* GLASSMORPHISM (DARK) */
.glass-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
html.dark .glass-nav {
    background: rgba(12, 13, 16, 0.88);
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

/* ==========================================================================
   BUTONLAR
   ========================================================================== */
.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #0A0A0B !important;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-burgundy {
    background: linear-gradient(135deg, #8B1E2B 0%, #6B0F1A 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 15, 26, 0.3);
}
.btn-burgundy:hover {
    background: linear-gradient(135deg, #A52A3A 0%, #8B1E2B 100%);
    box-shadow: 0 6px 25px rgba(107, 15, 26, 0.5);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    background: transparent;
    transition: all 0.3s ease;
}
html.light .btn-outline-gold {
    border-color: #8A5A00 !important;
    color: #6B0F1A !important;
}
.btn-outline-gold:hover {
    background: var(--gold-primary) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   PUZZLE CAPTCHA STILLERI
   ========================================================================== */
.puzzle-container {
    position: relative;
    width: 320px;
    height: 160px;
    background: linear-gradient(135deg, #1f232b 0%, #111317 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gold-primary);
    margin: 0 auto;
}
html.light .puzzle-container {
    background: linear-gradient(135deg, #4A070E 0%, #1A1C20 100%);
}
.puzzle-slot {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 55px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px dashed #D4AF37;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}
.puzzle-piece {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 55px;
    left: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border: 2px solid #FFF;
    border-radius: 8px;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.puzzle-slider-track {
    width: 320px;
    height: 42px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    margin: 12px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4px;
}
.puzzle-handle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-gradient);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 4px;
    user-select: none;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
    color: white !important;
}
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.7;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.slider-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slider-slide.active {
    display: block;
    opacity: 1;
}

/* HERO SLIDER İÇİNDEKİ YAZILAR HER ZAMAN NET & PARLAK */
.slider-slide h1 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.slider-slide p {
    color: #E2E8F0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #42070E;
    border-radius: 4px;
    border: 1px solid var(--gold-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: #6B0F1A;
}

/* ==========================================================================
   QUILL RICH TEXT EDITOR (ADMIN DARK THEME)
   ========================================================================== */
.ql-toolbar.ql-snow {
    background: #1C1F26 !important;
    border: 1px solid #334155 !important;
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    padding: 10px !important;
}
.ql-container.ql-snow {
    background: #14161B !important;
    border: 1px solid #334155 !important;
    border-top: none !important;
    border-bottom-left-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
    color: #F1F5F9 !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    min-height: 250px !important;
}
.ql-editor {
    min-height: 250px !important;
    line-height: 1.7 !important;
}
.ql-snow .ql-stroke {
    stroke: #94A3B8 !important;
}
.ql-snow .ql-fill {
    fill: #94A3B8 !important;
}
.ql-snow .ql-picker {
    color: #94A3B8 !important;
}
.ql-snow .ql-picker-options {
    background-color: #1C1F26 !important;
    border: 1px solid #475569 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}
.ql-snow .ql-picker-item {
    color: #CBD5E1 !important;
}
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected {
    color: #D4AF37 !important;
}
.ql-snow button:hover .ql-stroke,
.ql-snow .ql-picker:hover {
    stroke: #D4AF37 !important;
    color: #D4AF37 !important;
}
.ql-snow button:hover .ql-fill {
    fill: #D4AF37 !important;
}
.ql-snow .ql-active .ql-stroke {
    stroke: #D4AF37 !important;
}
.ql-snow .ql-active .ql-fill {
    fill: #D4AF37 !important;
}
.ql-editor.ql-blank::before {
    color: #64748B !important;
    font-style: italic !important;
}
.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}
.ql-editor a {
    color: #D4AF37 !important;
    text-decoration: underline !important;
}
.ql-editor blockquote {
    border-left: 4px solid #D4AF37 !important;
    padding-left: 1rem !important;
    color: #CBD5E1 !important;
    font-style: italic !important;
}
