/*
Theme Name: Berdental Tema
Theme URI: https://navajowhite-donkey-209431.hostingersite.com
Author: Berdental
Description: Berdental Klinik için özel minimal tema.
Version: 1.0
*/

/* --- RBN CLINIC STYLE: MİNİMAL & PRESTİJLİ --- */
:root {
    --primary: #2c3e50; /* Koyu, kurumsal gri-lacivert */
    --accent: #c0a16b; /* Altın/Gold detay rengi */
    --text: #555555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 0;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #777;
    font-size: 1.1rem;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- HEADER --- */
.berdental-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- Masaüstü Menü Hizalama Düzeltmesi --- */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center; /* İŞTE BU EKSİK: Yazıları ve butonu dikeyde ortalar */
}

.nav-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

.nav-links a:hover { color: var(--accent); }

/* --- HERO SECTION --- */
/* Masaüstü ve Genel Ayarlar */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Masaüstünde ekranın %70'ini kaplar (Kısaltıldı) */
    min-height: 400px; /* Çok kısa ekranlarda videonun çok küçülmesini engeller */
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fill-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görüntüyü kırparak alanı doldurur */
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Mobil Cihazlar İçin (Telefonlar) */
@media (max-width: 768px) {
    .hero-video-section {
        height: 50vh; /* Mobilde ekranın sadece yarısını kaplar */
        min-height: 300px;
    }
}

/* --- KLİNİĞİMİZ --- */
#clinic {
    padding: 100px 0;
    background: var(--white);
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.clinic-item {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.clinic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.clinic-item:hover img {
    transform: scale(1.05);
}

/* --- DOCTORS SECTION --- */
#doctors {
    padding: 120px 0;
    background: var(--bg-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.doctor-card {
    background: var(--white);
    text-align: center;
    transition: transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.doc-img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.doc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.doctor-card:hover .doc-img-wrapper img {
    transform: scale(1.05);
}

.doc-info {
    padding: 30px 20px;
}

.doc-name {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-title {
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

/* --- SERVICES --- */
#services {
    padding: 120px 0;
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-item {
    border: 1px solid #eee;
    padding: 50px 30px;
    width: 300px;
    text-align: center;
    transition: 0.3s;
    background: var(--white);
}

.service-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-item h3 { font-size: 1.2rem; margin-bottom: 15px; }

/* --- İLETİŞİM BÖLÜMÜ (CONTACT SECTION) --- */
#contact {
    background-color: #f8f9fa; /* Hafif gri arka plan (Formun beyaz kutusunu öne çıkarır) */
    padding: 80px 0;
}

/* Başlık Alanı */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-wrapper h2 {
    color: #2c3e50; /* Ana Lacivert */
    font-size: 2.2rem;
    font-weight: 300;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* Başlığın altındaki Gold çizgi */
.section-title-wrapper h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c0a16b; /* Gold Rengi */
    margin: 10px auto 0;
}

/* Grid Yapısı (Yan Yana Dizilim) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ekranı ikiye böl */
    gap: 60px; /* İki sütun arası boşluk */
    align-items: start; /* Yukarı hizala */
}

/* --- SOL TARAFTAKİ BİLGİLER --- */
.contact-detail {
    padding-right: 20px;
}

.contact-detail p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.contact-detail strong {
    display: block;
    color: #2c3e50; /* Koyu Lacivert */
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- SAĞ TARAFTAKİ FORM ALANI --- */
.contact-form-area {
    background: #ffffff; /* Beyaz kart görünümü */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); /* Modern, yumuşak gölge */
    border-top: 4px solid #c0a16b; /* Üste ince gold çizgi detayı */
}

/* Input ve Textarea Stilleri */
.contact-form-area input,
.contact-form-area textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    background-color: #fbfbfb;
    border-radius: 4px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

/* Kutuya tıklayınca oluşan efekt */
.contact-form-area input:focus,
.contact-form-area textarea:focus {
    border-color: #c0a16b; /* Gold renk kenarlık */
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(192, 161, 107, 0.1); /* Hafif gold parlama */
}

/* Gönder Butonu */
#contact-submit-btn {
    width: 100%;
    padding: 18px;
    background-color: #2c3e50; /* Ana renk */
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Buton Hover Efekti */
#contact-submit-btn:hover {
    background-color: #c0a16b; /* Hoverda Gold olsun */
    transform: translateY(-2px); /* Hafif yukarı kalksın */
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütuna düş */
        gap: 40px;
    }

    .contact-form-area {
        padding: 25px; /* Mobilde iç boşluğu biraz azalt */
    }

    .section-title-wrapper h2 {
        font-size: 1.8rem; /* Mobilde başlığı biraz küçült */
    }
    
    .contact-detail {
        text-align: center; /* Mobilde bilgileri ortala */
        padding-right: 0;
    }
}

/* --- FOOTER SECTION --- */
footer {
    background: #1a1a1a;
    color: #777;
    padding: 40px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 9999;
    display: none;
    border-top: 3px solid var(--accent);
}

.cookie-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    min-width: 300px;
}

.cookie-btns {
    display: flex;
    gap: 15px;
}

.btn-accept-cookie {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-close-cookie {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content { padding: 30px; width: 90%; }
    .contact-grid { grid-template-columns: 1fr; }
    #hero { height: 70vh; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-btns { width: 100%; justify-content: center; }
}

/* --- HAMBURGER MENU & MOBIL NAVIGASYON EKLEMELERI --- */

/* Hamburger Menü Butonu (Masaüstünde gizli) */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mevcut Media Query'nizin Güncellenmiş Hali */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Yatay kaymayı engelle */
    }

    /* Hamburger butonu mobilde görünür olsun */
    .burger {
        display: block;
    }

    /* Navigasyon menüsü tasarımı (Açılır menü) */
    .nav-links {
        display: flex; /* 'none' yerine flex yapıyoruz ama ekran dışına itiyoruz */
        position: fixed;
        right: 0px;
        height: calc(100vh - 90px); /* Header yüksekliğini (90px) düşüyoruz */
        top: 90px;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        width: 100%; /* İsterseniz %60 yapıp yan menü gibi gösterebilirsiniz */
        transform: translateX(100%); /* Menüyü varsayılan olarak sağa gizle */
        transition: transform 0.4s ease-in-out;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
    }

    /* JavaScript ile bu class eklendiğinde menü kayarak gelecek */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 20px 0;
        opacity: 1; /* Görünürlük */
    }

    /* Hamburger İkonu Animasyonu (X şekline dönüşme) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
/* Dil değiştirici hizalaması için */
.lang-switch-item {
    margin-left: 10px; /* Masaüstünde biraz boşluk bırakır */
}
@media (max-width: 768px) {
    .lang-switch-item {
        margin-left: 0;
        margin-top: 20px; /* Mobilde diğer linklerden ayrılır */
    }
}

@media (max-width: 768px) {
    
    /* ... Diğer kodlar aynı kalabilir ... */

    .nav-links {
        display: flex;
        position: fixed;
        right: 0px;
        height: calc(100vh - 90px);
        top: 90px;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);

        /* --- YENİ EKLENEN KISIMLAR (Sorunu Çözenler) --- */
        overflow-y: auto;      /* Menü uzunsa aşağı kaydırmaya izin ver */
        padding-bottom: 150px; /* Diller açıldığında sığması için alta bolca boşluk bırak */
    }

    /* Eğer TranslatePress dropdown menüsü menünün arkasında kalıyorsa bunu da ekleyin: */
    .trp-language-switcher {
        z-index: 9999 !important;
    }
}