/*
Theme Name: Policlinic Med (Platinum Edition)
Theme URI: https://policlinicmed.com
Author: 360 Soft
Description: Senin Orijinal Gri-Siyah Teman (Menü Düzeltildi)
Version: 4.3
*/

:root {
    --primary: #0a0a0a;   /* Ana Zemin (Neredeyse Siyah) */
    --secondary: #141414; /* İkincil Zemin (Koyu Gri) */
    --platinum: #e0e0e0;  /* Gold yerine PLATİN/GÜMÜŞ Rengi */
    --text-grey: #b0b0b0; /* Okunabilir Açık Gri Yazı */
    --white: #ffffff;
}

body {
    background-color: var(--primary);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   1. HEADER & MENÜ DÜZENİ
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo sola, Menü ortaya, Buton sağa */
    padding: 0 5%;
    box-sizing: border-box;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo span { color: var(--platinum); } 

/* --- MASAÜSTÜ MENÜ (YENİ EKLENEN KISIM) --- */
.main-navigation.desktop-only ul {
    display: flex; /* Yan yana diz */
    gap: 30px;     /* Aralarında boşluk bırak */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation.desktop-only ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.main-navigation.desktop-only ul li a:hover {
    color: var(--platinum);
}

/* Header Sağ Taraf */
.header-right {
    display: flex;
    align-items: center;
}

.header-cta-btn {
    background-color: var(--platinum) !important;
    color: #000 !important;
    padding: 12px 30px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 0 15px rgba(224, 224, 224, 0.3);
}

.header-cta-btn:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* =========================
   2. MOBİL MENÜ STİLLERİ
========================= */
.mobile-toggle {
    display: none; /* Masaüstünde gizli */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-left: 20px;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Mobil Menü Açılır Pencere */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Ekran dışı */
    width: 80%; /* Ekranın %80'ini kaplasın */
    height: 100vh;
    background: #000;
    z-index: 10000;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #333;
}

.mobile-menu-overlay.active {
    right: 0; /* Açılınca ekrana girer */
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
}

/* Mobildeki Linkler */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu-list li {
    margin: 20px 0;
}

.mobile-menu-list li a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.mobile-cta-btn {
    margin-top: 30px;
    display: inline-block;
    background-color: var(--platinum);
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
}

/* =========================
   3. HERO SECTION
========================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 5%;
    background: radial-gradient(circle at 30% 50%, #1f1f1f 0%, #0a0a0a 100%);
}

.hero-content {
    width: 50%;
    z-index: 5;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    border-left: 4px solid var(--platinum);
    padding-left: 20px;
    max-width: 600px;
}

.hero-main-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 45px;
    border: 2px solid #e0e0e0;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.hero-main-btn:hover {
    background-color: #e0e0e0;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    opacity: 0.6; 
}

/* =========================
   4. SERVICES & CARDS
========================= */
.services-container {
    padding: 100px 5%;
    background: var(--secondary);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 800;
    color: #fff;
}
.section-title span { color: var(--platinum); }

.cards-wrapper {
    display: flex;
    gap: 15px;
    height: 500px;
    width: 100%;
}

.expand-card {
    flex: 1;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 12px;
    position: relative;
    transition: flex 0.7s cubic-bezier(0.25, 0.4, 0.45, 1.4);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #222;
}

.expand-card:hover { flex: 4; }

.expand-card::before {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: #fff;
    z-index: 2;
    width: 90%;
}

.card-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: var(--platinum);
    text-transform: uppercase;
    font-weight: 900;
    white-space: nowrap;
}

.card-content p {
    font-size: 1rem;
    color: #ddd;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s delay 0.1s;
}

.expand-card:hover .card-content p {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   5. ABOUT & FOOTER
========================= */
.about-modern {
    padding: 120px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--primary);
}

.about-text { flex: 1; }
.about-visual { flex: 1; position: relative; height: 600px; }

.img-main {
    width: 85%; height: 90%; object-fit: cover;
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: absolute; top: 0; right: 0;
}

.img-float {
    width: 250px; height: 300px; object-fit: cover;
    position: absolute; bottom: 20px; left: 0;
    border: 5px solid var(--secondary);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.site-footer {
    background-color: #000000 !important; 
    border-top: 1px solid #222 !important;
    padding: 60px 0 !important;
    text-align: center !important;
}

.site-footer h2 { color: #ffffff !important; }
.site-footer span { color: #e0e0e0 !important; }
.site-footer p { color: #888888 !important; }
.site-footer div[style*="background"] { background-color: #e0e0e0 !important; }

.footer-nav a {
    color: #ffffff !important; 
    font-weight: bold !important;
    text-decoration: none !important;
}
.footer-nav a:hover {
    color: #b0b0b0 !important; 
    border-bottom-color: #b0b0b0 !important;
}

.footer-legal a { color: #666666 !important; }
.footer-legal a:hover { color: #ffffff !important; }
.separator { color: #444 !important; }

/* =========================
   6. MOBİL UYUMLULUK (BREAKPOINT GÜNCELLENDİ)
========================= */
@media (max-width: 992px) { /* Tablet ve Mobil için */
    .site-header { padding: 0 20px; }
    
    /* Masaüstü menüyü gizle */
    .desktop-only { display: none !important; }
    
    /* Mobil hamburgeri göster */
    .mobile-toggle { display: flex; }
    
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    .hero-content { width: 100%; margin-bottom: 40px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-bg {
        width: 100%; height: 40%;
        top: auto; bottom: 0;
        clip-path: none;
        opacity: 0.4;
    }
    
    .hero-main-btn {
        padding: 12px 30px;
        font-size: 14px;
        display: block;
        width: fit-content;
        margin: 0 auto;
    }
    
    .cards-wrapper { flex-direction: column; height: auto; }
    .expand-card {
        height: 250px;
        margin-bottom: 15px;
        flex: none !important;
        width: 100%;
    }
    .card-content p { opacity: 1; transform: none; } 
    
    .about-modern { flex-direction: column; padding: 60px 20px; }
    .about-visual { height: 400px; width: 100%; }
    .img-float { width: 150px; height: 180px; bottom: -20px; }
    
    .footer-nav { flex-direction: column; gap: 15px; }
    .footer-legal { display: flex; flex-direction: column; gap: 10px; }
    .separator { display: none; }
}
/* =========================================
   MENÜ DÜZENLEMESİ (DROPDOWN & MOBİL)
   ========================================= */

/* 1. HEADER YERLEŞİMİ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Diğer header özellikleri yukarıdaki kodunda zaten var */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 2. MASAÜSTÜ MENÜ (NAV-MENU) */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-menu > li {
    position: relative; /* Dropdown için gerekli */
}

.nav-menu > li > a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 0;
    display: block;
    transition: 0.3s;
}

.nav-menu > li > a:hover {
    color: var(--platinum);
}

/* 3. DROPDOWN (ALT MENÜ - HİZMETLERİMİZ) */
/* WordPress alt menülere otomatik 'sub-menu' class'ı verir */
.nav-menu .sub-menu {
    display: none; /* Başlangıçta gizle */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000; /* Siyah zemin */
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid var(--platinum);
    
    /* Menü çok uzunsa taşmasın, scroll çıksın */
    max-height: 400px; 
    overflow-y: auto;
    z-index: 99999;
}

/* Hover olunca göster */
.nav-menu li:hover > .sub-menu {
    display: block;
}

/* Alt Menü Linkleri */
.nav-menu .sub-menu li a {
    color: #bbb;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #222;
    transition: 0.3s;
}

.nav-menu .sub-menu li a:hover {
    background-color: #111;
    color: #fff;
    padding-left: 25px; /* Hafif sağa kayma efekti */
}

/* 4. MOBİL HAMBURGER İKONU */
.hamburger {
    display: none; /* Masaüstünde gizli */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.close-btn, .mobile-only-btn {
    display: none;
}

/* =========================================
   MOBİL GÖRÜNÜM (TABLET VE TELEFON)
   ========================================= */
@media (max-width: 992px) {
    /* Masaüstü Butonunu Gizle */
    .desktop-only { display: none !important; }
    
    /* Hamburgeri Göster */
    .hamburger { display: flex; }

    /* Menüyü Gizle (Yandan Açılacak Şekle Getir) */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Ekran dışına it */
        width: 75%;
        height: 100vh;
        background-color: #0a0a0a;
        flex-direction: column;
        padding: 60px 20px;
        transition: 0.4s ease;
        z-index: 10000;
        border-left: 1px solid #333;
        overflow-y: auto;
        display: block; /* Flex'i bozmasın diye */
    }

    /* Menü Aktifken (JS ile eklenir) */
    .main-navigation.active {
        right: 0;
    }

    /* Mobilde Liste Düzeni */
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > li {
        border-bottom: 1px solid #222;
    }

    .nav-menu > li > a {
        font-size: 16px;
        padding: 15px 0;
    }

    /* Mobilde Dropdown Hep Açık veya Tıklanınca Görünür Olsun */
    .nav-menu .sub-menu {
        position: relative; /* Mobilde aşağıya iteklesin */
        display: none; /* JS yoksa CSS hover ile açılmaz mobilde, hep açık yapalım: */
        top: 0;
        background: #111;
        width: 100%;
        box-shadow: none;
        max-height: none;
        border-top: none;
    }
    
    /* Mobilde Alt Menüyü Göster (Basit çözüm) */
    .nav-menu li:hover .sub-menu {
        display: block;
    }

    /* Kapatma Butonu */
    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: #fff;
        cursor: pointer;
    }

    /* Mobil Randevu Butonu */
    .mobile-only-btn {
        display: block;
        text-align: center;
        margin-top: 30px;
        background-color: var(--platinum);
        color: #000;
        padding: 15px;
        text-decoration: none;
        font-weight: 800;
        border-radius: 5px;
    }
}