/* === TEMA: Minimal Beyaz === */
body.theme-white {
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --border-soft: #e5e5e5;
    --text-main: #1a1a1a;
    --text-muted: #6f6f6f;
    --accent: #3ba6c9;
    --radius: 10px;
    --shadow-soft: 0 8px 20px rgba(0,0,0,0.04);
}

/* === TEMA: Klinik Mavi === */
body.theme-blue {
    --bg: #f2f8fc;              /* Genel arka plan: açık mavi */
    --bg-soft: #e6f2fa;         /* Kart arka planı: daha belirgin mavi */
    --border-soft: #c5dced;     /* Çerçeveler: mavi-gri */
    --text-main: #0d2a42;       /* Ana metin: lacivert */
    --text-muted: #5b7a92;      /* Açıklama metni: mavi-gri */
    --accent: #1b7fb8;          /* Doygun klinik mavi */
    --radius: 10px;
    --shadow-soft: 0 8px 20px rgba(0, 60, 100, 0.08);
}

/* === GENEL === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}
img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* MODAL ARKA PLAN */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

/* MODAL KUTUSU */
.modal-content {
    background: var(--bg-soft, #fff);
    margin: 8% auto;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    box-shadow: var(--shadow-soft, 0 4px 20px rgba(0,0,0,0.15));
    animation: modalFade 0.4s ease;
}

/* BAŞLIK */
.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text, #222);
}

/* KAPATMA BUTONU */
.modal .close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted, #666);
}

.modal .close:hover {
    color: var(--text, #000);
}

/* ANİMASYON */
@keyframes modalFade {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* MOBİL UYUM */
@media (max-width: 480px) {
    .modal-content {
        margin-top: 20%;
        padding: 18px;
    }
}

/* == SLIDER == */
.slider-wrapper {
    margin-bottom: 40px;
}

.info-box {
    display: flex;
    gap: 24px;
    align-items: center;
}

.info-box.reverse {
    flex-direction: row-reverse;
}

.info-img {
    width: 180px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.link-strong {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .info-box,
    .info-box.reverse {
        flex-direction: column;
        text-align: center;
    }

    .info-img {
        width: auto;
        max-width: 220px; /* istediğin boyuta göre 200–280 arası ayarlayabilirsin */
        height: auto;
        margin: 0 auto;
        display: block;

    }
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

/* Dil seçici kapsayıcı */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

/* Globe butonu */
.lang-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #2a5bd7;
    padding: 5px;
}

/* Dropdown menü */
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 150px;
    z-index: 99999;
}

/* Açık hali */
.lang-menu.show {
    display: block;
}

/* Menü içi linkler */
.lang-menu a {
    display: block !important;
    padding: 10px 15px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    background: none !important;
}

.lang-menu a:hover {
    background: #f0f0f0 !important;
}

@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .lang-switcher {
        order: 2; /* hamburger butonundan hemen önce */
        margin-right: 10px;
    }

    .mobile-btn {
        order: 3;
    }

    .header-logo {
        order: 1;
    }
}

/*Pop-up dizayn*/
#uyari p {
    text-indent: 50px;
}

#uyari h2 {
    text-align: center;
}

#uyari p:last-of-type {
    text-align: right;
}

/* === MODERN HEADER === */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}

.header-logo img {
    width: 48px;
    height: 48px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #333;
}

.header-nav a {
    font-size: 1rem;
    color: #333;
    padding: 8px 0;
}

.header-nav a:hover {
    color: #3ba6c9;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    font-family: 'montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 0;
}

.dropbtn:hover {
    color: #3ba6c9;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 36px;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: #3ba6c9;
}



.show {
    display: block !important;
}

/* Mobil */
@media (max-width: 768px) {

    /* Menü başlangıçta gizli olsun */
    #mainMenu {
        display: none !important;
        flex-direction: column;
        background: #fff;
        position: fixed;
        top: 70px;
        right: 0;
        width: 80%;
        height: auto;
        padding: 20px;
        border-radius: 12px 0 0 12px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        opacity: 0;
    }

    /* Açılınca görünür olsun */
    #mainMenu.open {
        display: flex !important;
        transform: translateX(0);
        opacity: 1;
    }

    /* Mobil buton görünür */
    .mobile-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #2a5bd7;
    }
}

/* Masaüstünde mobil butonu gizle */
@media (min-width: 769px) {
    .mobile-btn {
        display: none !important;
    }
}


/* === SAYFA GENEL CONTAINER === */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

/* === BÖLÜM GENEL === */
.section {
    margin-top: 60px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.section-text {
    font-size: 1rem;
    color: #6f6f6f;
    margin-bottom: 20px;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-out;
    background: var(--bg);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--border-soft);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: var(--bg-soft);
}

.lastbtn {
    right: 200px !important;
    position: absolute !important;
}

.hero-image-wrapper {
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: var(--shadow-soft);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 80%;
    height: 70%;
    border-radius: 16px;
    border: 1px dashed var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* GRID KARTLAR */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.card-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* TEDAVİ YÖNTEMLERİ */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}

.method-thumb {
    border-radius: 12px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.method-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.method-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* SÜREÇ (TIMELINE) */
.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-soft);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    flex: 1 1 180px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--accent);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ÖNCESİ / SONRASI */
.before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ba-item {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    padding: 12px;
    background: var(--bg);
    box-shadow: var(--shadow-soft);
}

.ba-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ba-image-placeholder {
    border-radius: 10px;
    border: 1px dashed var(--border-soft);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SSS (FAQ) */
.faq-list {
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.faq-answer {
    padding: 0 16px 14px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: none; /* JS ile açılacak */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA ALT BÖLÜM */
.cta {
    border-radius: 18px;
    background: var(--bg-soft);
    padding: 24px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-text-main {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cta-text-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .before-after {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid a {
    display: block;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease-out;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Tablet: 2 sütun */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil: 1 sütun */
@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* İletişim Sayfası */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-box {
    background: var(--bg-soft);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* backToTop button */
#backToTop {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 55px !important;
    height: 55px !important;
    background: #2a5bd7 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
}

#backToTop.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#backToTop:hover {
    background: #1f4bb8 !important;
    transform: scale(1.08);
}

@media (max-width: 600px) {
    #backToTop {
        width: 42px !important;
        height: 42px !important;
        font-size: 22px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}