:root {
    --brand: #4B2C70;
    --brand-soft: #7C5C9E;
    --mint: #E8F8F5;
    --lavender: #F3EEF9;
    --sky: #EAF4FC;
    --peach: #FFF4ED;
    --page-a: #f7f4fb;
    --page-b: #eef8f6;
    --page-c: #eef4fb;
    --page-d: #fbf5f0;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes chameleon-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.05); }
    66% { transform: translate(-14px, 12px) scale(0.97); }
}

body.page-chameleon {
    background: #f5f3f7 !important;
    background-image: none !important;
    animation: none !important;
    color: #000000 !important;
    text-shadow: none !important;
}

.section-soft-lavender,
.section-soft-mint,
.section-soft-sky,
.section-soft-peach,
.hero-light {
    background: #f5f3f7 !important;
    background-image: none !important;
    animation: none !important;
    color: #000000 !important;
}

.hero-blob {
    display: none !important;
}

.glass-light,
.glass-dark,
.glass-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    filter: none !important;
    color: #000000 !important;
    text-shadow: none !important;
}

.panel-soft {
    background: linear-gradient(145deg, #ffffff 0%, #f7f3fb 55%, #eef8f6 100%);
    border: 1px solid rgba(124, 92, 158, 0.12);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-whatsapp-pulse {
    animation: pulse-ring 2s infinite;
}

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

.glass-dark {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 92, 158, 0.12);
    color: #334155;
}

/* Hero WhatsApp sohbet kutusu — açık tema */
.hero-chat-panel {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e5e7eb !important;
}
.hero-chat-bot {
    background: #f3f4f6 !important;
    color: #000000 !important;
}
.hero-chat-user {
    background: #dcfce7 !important;
    color: #000000 !important;
}
#hero-quick-select {
    background: #ffffff !important;
    color: #000000 !important;
}

.doctor-card-image {
    background: linear-gradient(135deg, #f8f5fc 0%, #eef8f6 100%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

/* Reveal: asla gizleme — Netlify'da soluk/görünmez yazı olmasın */
.reveal,
html.js-scroll-reveal .reveal,
html.js-scroll-reveal .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-content {
    max-height: 300px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
}

#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.doctor-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#health-tips-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

#health-tips-extra.expanded {
    max-height: 3000px;
    opacity: 1;
}

html {
    scroll-padding-top: 5.5rem;
}

#lang-switcher .lang-option {
    transition: background-color 0.15s ease;
}

#lang-menu {
    animation: fade-up 0.2s ease-out;
}

/* Before / After comparison slider */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 960 / 680;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 3px solid #fff;
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    background: #1c100e;
}

.ba-after,
.ba-before {
    position: absolute;
    inset: 0;
}

.ba-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.ba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.ba-slider:not(.ba-dragging) .ba-before,
.ba-slider:not(.ba-dragging) .ba-handle {
    transition: clip-path 0.12s linear, left 0.12s linear;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
}

.ba-handle-line {
    position: absolute;
    inset: 0;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #0d9488;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    font-size: 14px;
}

.ba-label {
    position: absolute;
    top: 12px;
    z-index: 5;
    background: rgba(75, 44, 112, 0.94);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 6px;
    pointer-events: none;
}

main#main-content .ba-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.ba-hint {
    animation: fade-up 0.3s ease-out;
}

.site-logo {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: min(11rem, 42vw);
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 640px) {
    .site-logo {
        height: 3.75rem;
        max-width: 13rem;
    }
}

@media (min-width: 1024px) {
    .site-logo {
        height: 4rem;
        max-width: 14rem;
    }
}

.site-header {
    background-color: #4B2C70 !important;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(61, 35, 89, 0.35);
}

.card-light {
    background: #ffffff !important;
    border: 1px solid rgba(75, 44, 112, 0.12) !important;
    box-shadow: 0 8px 24px rgba(75, 44, 112, 0.06);
}

.card-foot {
    background: linear-gradient(180deg, #faf7fd, #eef8f6) !important;
    border-top: 1px solid rgba(75, 44, 112, 0.08) !important;
}

.icon-soft {
    background: #F3EEF9 !important;
    color: #4B2C70 !important;
}

.faq-item {
    background: #fff !important;
    border: 1px solid rgba(75, 44, 112, 0.12) !important;
}

/* Tum icerik yazilari SIYAH ve belirgin */
main#main-content {
    color: #000000 !important;
    -webkit-font-smoothing: antialiased;
}

main#main-content p,
main#main-content li,
main#main-content label,
main#main-content td,
main#main-content th,
main#main-content div,
main#main-content span,
main#main-content a:not([class*="bg-"]),
main#main-content button:not(.bg-whatsapp):not([class*="bg-whatsapp"]):not([class*="bg-blue"]):not([class*="bg-teal"]) {
    color: #000000 !important;
    opacity: 1 !important;
}

main#main-content p,
main#main-content li,
main#main-content label {
    font-weight: 500;
}

main#main-content h1,
main#main-content h2,
main#main-content h3,
main#main-content h4 {
    color: #000000 !important;
    font-weight: 800;
    opacity: 1 !important;
}

.card-light,
.card-light h1,
.card-light h2,
.card-light h3,
.card-light h4,
.card-light p,
.card-light li,
.card-light span,
.card-light ul {
    color: #000000 !important;
    opacity: 1 !important;
}

.card-light .icon-soft,
.card-light .icon-soft * {
    color: #4B2C70 !important;
}

.card-light .text-emerald-500 {
    color: #047857 !important;
}

main#main-content .text-white,
main#main-content [class*="text-white"],
main#main-content .text-slate-300,
main#main-content .text-slate-400,
main#main-content .text-slate-500,
main#main-content .text-slate-600,
main#main-content [class*="text-slate"],
main#main-content [class*="text-gray"] {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

footer.site-footer,
footer.site-footer p,
footer.site-footer a,
footer.site-footer button,
footer.site-footer span {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

main#main-content .bg-whatsapp,
main#main-content .bg-whatsapp *,
main#main-content button.bg-whatsapp,
main#main-content button.bg-whatsapp * {
    color: #ffffff !important;
}

/* Tailwind CDN olmadan da marka renkleri görünsün */
.bg-brand { background-color: #4B2C70 !important; }
.bg-brand-dark { background-color: #3D2359 !important; }
.text-brand { color: #4B2C70 !important; }
.hover\:text-brand:hover { color: #4B2C70 !important; }
.hover\:bg-brand-dark:hover { background-color: #3D2359 !important; }
.border-brand\/5 { border-color: rgba(75, 44, 112, 0.05) !important; }
.border-brand\/10 { border-color: rgba(75, 44, 112, 0.10) !important; }
.border-brand\/15 { border-color: rgba(75, 44, 112, 0.15) !important; }

@media (prefers-reduced-motion: reduce) {
    body.page-chameleon,
    .hero-light,
    .hero-blob {
        animation: none !important;
    }
}

/* SEO & erişilebilirlik */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.seo-tag {
    display: inline-block;
    font-size: 0.6875rem;
    line-height: 1.25;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.seo-tag:hover {
    border-color: #0d9488;
    color: #0f766e;
}

/* Online randevu formu */
.appointment-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 28px rgba(75, 44, 112, 0.08);
}

.appointment-container h2 {
    margin: 0 0 22px;
    color: #000000 !important;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
}

.appointment-container .form-group {
    margin-bottom: 15px;
}

.appointment-container .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #000000 !important;
    font-size: 0.875rem;
}

.appointment-container .form-group input,
.appointment-container .form-group select,
.appointment-container .form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    color: #000000 !important;
    background: #fff !important;
    font-family: inherit;
}

.appointment-container .form-group input:focus,
.appointment-container .form-group select:focus,
.appointment-container .form-group textarea:focus {
    outline: none;
    border-color: #4B2C70;
    box-shadow: 0 0 0 3px rgba(75, 44, 112, 0.15);
}

.appointment-container .submit-btn {
    width: 100%;
    padding: 13px;
    background-color: #4B2C70 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.appointment-container .submit-btn:hover {
    background-color: #3D2359 !important;
}

.appointment-hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #000000 !important;
    opacity: 0.75;
}

@media (min-width: 1024px) {
    .appointment-container {
        margin: 0;
        max-width: none;
    }
}

#iletisim .contact-tile {
    min-width: 0;
    overflow: hidden;
}

#iletisim .contact-tile p,
#iletisim .contact-tile h3,
#iletisim .contact-tile a,
#iletisim .contact-tile button,
#iletisim .contact-tile span {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#iletisim .contact-tile a,
#iletisim .contact-tile button {
    white-space: normal;
    line-height: 1.35;
}

/* Ziyaretçilere gizlenir; HTML kaynakta kalır */
.seo-hidden,
#seo-hizmetler {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
