/*
Theme Name: Jeotek Modern Teması
Author: Jeotek Mühendislik & Gemini
Version: 2.4 (Global Button Fix)
Description: Jeotek Mühendislik için özel olarak tasarlanmış modern ve minimalist kurumsal WordPress teması.
Text Domain: jeotek-tema
*/

/* 1. TEMA DEĞİŞKENLERİ */
/*:root {
    --bg-color: #ffffff;
    --surface-color: #f4f4f4;
    --text-color: #212121;
    --heading-color: #1a237e;
    --primary-color: #3949ab;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #9fa8da;
    --primary-color: #3949ab;
    --border-color: #424242;
    --white: #ffffff;
}
/*
Theme Name: Jeotek Modern Teması
Author: Jeotek Mühendislik & Gemini
Version: 4.0 (Final Version)
Description: Jeotek Mühendislik için özel olarak tasarlanmış modern ve minimalist kurumsal WordPress teması.
Text Domain: jeotek-tema
*/

/* 1. TEMA DEĞİŞKENLERİ (RENKLER & FONT'LAR) */
:root {
    --bg-color: #ffffff;
    --surface-color: #f4f4f4;
    --text-color: #212121;
    --heading-color: #1a237e;
    --primary-color: #3949ab;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #9fa8da;
    --primary-color: #3949ab;
    --border-color: #424242;
    --white: #ffffff;
}

/* 2. TEMEL AYARLAR (RESET & GLOBAL) */
body, html { margin: 0; padding: 0; font-family: var(--font-secondary); line-height: 1.7; }
body { background-color: var(--bg-color); color: var(--text-color); transition: background-color 0.3s ease, color 0.3s ease; }
body.mobile-menu-is-open { overflow: hidden; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; color: var(--heading-color); }
a { text-decoration: none; color: var(--primary-color); }
main { overflow-x: hidden; }
section { padding: 80px 0; }
input::placeholder, textarea::placeholder { color: #aaa; font-style: italic; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

/* 3. GENEL BUTON STİLLERİ */
.btn { display: inline-block; background-color: var(--primary-color); color: var(--white) !important; padding: 15px 30px; border-radius: 5px; font-family: var(--font-primary); font-weight: 600; transition: all 0.3s ease; border: 2px solid var(--primary-color); cursor: pointer; }
.btn:hover { background-color: transparent; color: var(--primary-color) !important; }
.btn.btn-light { background-color: var(--white); color: var(--secondary-color) !important; border-color: var(--white); }
.btn.btn-light:hover { background-color: transparent; color: var(--white) !important; border-color: var(--white); }

/* 4. HEADER & NAVİGASYON */
.site-header { background-color: var(--bg-color); position: sticky; top: 0; z-index: 1001; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-bottom: 1px solid var(--border-color); transition: background-color 0.3s ease, border-color 0.3s ease; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; }
.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 55px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .line-1 { font-family: var(--font-primary); font-weight: 700; font-size: 1.6rem; color: var(--heading-color); line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; }
.logo-text .line-2 { font-family: var(--font-secondary); font-size: 1rem; color: var(--text-color); line-height: 1; margin-top: 4px; letter-spacing: 1px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.main-navigation { margin-left: auto; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-menu li { margin-left: 40px; }
.main-menu li a { color: var(--text-color); font-weight: 600; position: relative; padding-bottom: 5px; }
.theme-toggle-btn { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--text-color); padding: 5px; }
.theme-toggle-btn .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .fa-sun { display: block; }
.user-menu { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
.user-menu:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu .dropdown-menu { opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease-in-out; position: absolute; top: 100%; right: 0; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; margin: 0; min-width: 180px; z-index: 1002; }
.user-menu > a { cursor: default; display: flex; align-items: center; gap: 8px; }
.user-menu .fa-user-circle { font-size: 1.8rem; color: var(--text-color); }
.user-menu .fa-chevron-down { font-size: 0.7rem; transition: transform 0.3s ease; }
.user-menu:hover .fa-chevron-down { transform: rotate(180deg); }
.user-menu .dropdown-menu li { margin: 0 !important; }
.user-menu .dropdown-menu li a { display: block; padding: 10px 20px; white-space: nowrap; font-weight: 600; }
.user-menu .dropdown-menu li a:hover { background-color: var(--surface-color); }

/* 5. ANA SAYFA BÖLÜMLERİ */
.hero { position: relative; height: 90vh; padding: 0 5%; background-size: cover; background-position: center; background-attachment: scroll; display: flex; align-items: center; color: var(--white); }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(13, 71, 161, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 3.8rem; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); color: var(--white); }
.services-section { background-color: var(--surface-color); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { color: var(--primary-color); font-family: var(--font-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.section-title h2 { font-size: 2.5rem; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background-color: var(--bg-color); padding: 40px; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.about-section { background-color: var(--bg-color); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.cta-section { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 60px 20px; }
.cta-section h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }

/* 6. GENEL SAYFA & İÇERİK STİLLERİ */
.page-header-section { background-color: var(--surface-color); padding: 50px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-header-section h1 { font-size: 2.8rem; margin: 0; }
.page-content-wrapper { padding: 80px 0; }
.content-area { max-width: 800px; margin: 0 auto; }
.content-area p, .project-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5em; }
.content-area h2, .content-area h3, .project-content h2, .project-content h3 { margin-top: 2em; margin-bottom: 1em; }

/* 7. PROJE SAYFALARI */
.archive-wrapper { padding: 80px 0; background-color: var(--surface-color); }
.projects-archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.project-card-archive .project-image a {
    display: block;
    height: 220px;
}
.project-card-archive .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card-archive { background-color: var(--bg-color); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: all 0.3s ease; }
.project-card-archive:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.project-detail-wrapper { max-width: 900px; padding: 60px 0; margin: 0 auto; }
.project-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden; /* Yuvarlak kenarların düzgün görünmesi için önemli */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    aspect-ratio: 16 / 9; /* Görsel alanına her zaman 16:9 (geniş ekran) oranı ver */
}
.project-featured-image img {
    width: 100%;
    height: 100%; /* Resmin, kabına tam olarak yayılmasını sağla */
    object-fit: cover; /* Orantıyı bozmadan, kabı dolduracak şekilde resmi sığdır */
}
.project-meta-single { background-color: var(--surface-color); border: 1px solid var(--border-color); padding: 20px 30px; border-radius: 8px; margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.meta-item { display: flex; align-items: center; gap: 15px; }
.meta-item i { font-size: 2rem; color: var(--primary-color); }
.meta-item div { display: flex; flex-direction: column; }
.meta-item strong { color: var(--heading-color); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
.meta-item span { font-size: 1.1rem; font-weight: 600; color: var(--text-color); }

/* 8. MÜŞTERİ PANELİ */
[data-theme="dark"] .page-template-page-musteri-paneli .page-header-section h1 { color: var(--white) !important; }
.client-dashboard .report-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.client-dashboard .report-list li a { display: flex; align-items: center; padding: 20px; text-decoration: none; color: var(--text-color); border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease; }
.client-dashboard .report-list li:last-child a { border-bottom: none; }
.client-dashboard .report-list li a:hover { background-color: var(--surface-color); }

/* 9. FORM STİLLERİ (İletişim & Giriş) */
.wpcf7-form, form#jeotek-loginform { margin-top: 30px; }
.wpcf7-form p, form#jeotek-loginform p { margin-bottom: 20px; }
.wpcf7-form label, form#jeotek-loginform label { display: block; font-family: var(--font-primary); font-weight: 600; color: var(--heading-color); font-size: 1rem; margin-bottom: 8px; }
.wpcf7-form-control, form#jeotek-loginform input[type="text"], form#jeotek-loginform input[type="password"] { background-color: var(--surface-color); color: var(--text-color); border: 2px solid var(--border-color); border-radius: 8px; padding: 15px; width: 100%; box-sizing: border-box; font-family: var(--font-secondary); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.wpcf7-form-control:focus, form#jeotek-loginform input[type="text"]:focus, form#jeotek-loginform input[type="password"]:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(57, 73, 171, 0.15); }
.wpcf7-form-control.wpcf7-submit, .login-submit input#wp-submit { width: 100%; }
.login-remember label { font-family: var(--font-secondary); font-weight: 400; font-size: 0.9rem; color: var(--text-color); display: inline; }
.logged-in-message { text-align: center; padding: 30px; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; }

/* 10. HARİTA & FOOTER */
.iletisim-harita-konteyner { max-width: 900px !important; margin: 60px auto !important; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); aspect-ratio: 16 / 9; }
.iletisim-harita-konteyner a { position: relative; display: block; width: 100%; height: 100%; }
.iletisim-harita-konteyner img { width: 100%; height: 100%; object-fit: cover; display: block; }
footer { background-color: #1e1e1e; color: #a0a0a0; padding: 60px 0; margin-top: 0; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #444; font-size: 0.9em; }

/* 11. MOBİL UYUMLULUK */
/* 12. MOBİL UYUMLULUK - NİHAİ VERSİYON */

/* Menü açıkken arka planın kaymasını engelle */
body.mobile-menu-is-open {
    overflow: hidden;
}

@media (max-width: 992px) { /* Tablet ve altı için */
    .main-navigation, .header-actions .user-menu, .header-actions .theme-toggle-btn { display: none; }
    
    /* MODERN HAMBURGER İKONU */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .mobile-menu-toggle .line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }
    
    /* MOBİL MENÜNÜN KENDİSİ - DÜZELTİLDİ */
    .main-navigation {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* vh yerine % daha kararlı */
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start; /* ORTALAMAYI KALDIRDIK, YUKARIDAN BAŞLAT */
        align-items: center;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
        overflow-y: auto; /* İÇERİK SIĞMAZSA KAYDIRMAYI AKTİF ET */
        padding: 120px 0 40px 0; /* İçeriğin üstten ve alttan boşluklu başlamasını sağla */
        box-sizing: border-box;
    }

    body.mobile-menu-is-open .main-navigation { transform: translateX(0); }
    
    .mobile-menu-close { display: block; position: fixed; top: 25px; right: 25px; font-size: 2.5rem; background: none; border: none; color: var(--text-color); cursor: pointer; z-index: 1001; }

    /* MOBİL MENÜ İÇİNDEKİ LİNKLER */
    .main-navigation .main-menu { flex-direction: column; gap: 15px; width: 100%; }
    .main-navigation .main-menu li { margin: 0 !important; text-align: center; width: 100%; }
    .main-navigation .main-menu li a { font-size: 1.5rem; padding: 10px; display: block; font-weight: 700; }
    
    /* Mobil menüdeki profil ve giriş butonları için özel stiller - DÜZELTİLDİ */
	.mobile-menu-is-open .user-menu,
	.mobile-menu-is-open .menu-item-login-btn {
		display: block;
		margin-top: 30px !important;
		padding-top: 20px;
		border-top: 1px solid var(--border-color);
		width: 100%; /* Genişliği tam yap */
		text-align: center;
}
	.mobile-menu-is-open .user-menu.submenu-is-open .dropdown-menu {
		display: block;
}
	.mobile-menu-is-open .user-menu .dropdown-menu {
		display: none;
		list-style: none;
		padding: 0;
		margin-top: 15px;
		width: 100%;
}
	.mobile-menu-is-open .user-menu > a { /* 'jeotekadmin' yazısı */
		font-size: 1.5rem; /* Ana menü ile aynı boyutta */
		padding: 10px;
		display: inline-block;
}
	.mobile-menu-is-open .user-menu > a .fa-chevron-down {
		display: none;
}
/* Müşteri Paneli ve Çıkış Yap linkleri - GÜNCELLENDİ */
	.mobile-menu-is-open .user-menu .dropdown-menu li a {
		font-size: 1.5rem; /* Ana menü ile aynı boyuta getirildi */
		color: var(--primary-color); /* Rengi korundu */
		font-weight: 700;
		padding: 10px; /* Ana menü ile aynı padding */
		display: block;
}
    /* Alt menüyü normalde gizle */
    .main-navigation .user-menu .dropdown-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin-top: 15px;
    }
    /* Aktif olduğunda göster */
    .main-navigation .user-menu.submenu-is-open .dropdown-menu {
        display: block;
    }
    .main-navigation .user-menu .dropdown-menu li a { font-size: 1.1rem; color: var(--primary-color); font-weight: 700; padding: 8px; }
    
    /* Diğer mobil düzenlemeler */
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 2rem; }
}

@media (min-width: 993px) {
    .mobile-menu-toggle, .mobile-menu-close { display: none; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.login-submit input#wp-submit {
background-color: var(--primary-color);
color: var(--white) !important;
padding: 12px 25px;
border-radius: 5px;
font-family: var(--font-primary);
font-weight: 600;
transition: background-color 0.3s ease;
border: none;
cursor: pointer;
font-size: 1rem;
}

.login-submit input#wp-submit:hover {
background-color: transparent;
color: var(--primary-color) !important;
border: 2px solid var(--primary-color);
}
/* MÜŞTERİ PANELİ SEKMELİ YAPI */
.client-dashboard-tabs {
    width: 100%;
}
ul.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--border-color);
}
ul.nav-tabs li {
    margin: 0;
}
ul.nav-tabs li a {
    display: block;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
ul.nav-tabs li.active a,
ul.nav-tabs li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.tab-content .tab-pane {
    display: none;
}
.tab-content .tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}
.tab-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* 9. MODERN MÜŞTERİ PANELİ */

.client-dashboard-modern {
    width: 100%;
}

/* Sekme Butonları */
ul.nav-tabs-modern {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    gap: 15px;
}
ul.nav-tabs-modern li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 120px;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-primary);
    text-align: center;
    transition: all 0.3s ease;
}
ul.nav-tabs-modern li a i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
ul.nav-tabs-modern li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
ul.nav-tabs-modern li.active a {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
ul.nav-tabs-modern li.active a i {
    color: var(--white);
}

/* Sekme İçerikleri */
.tab-content-modern .tab-pane {
    display: none;
}
.tab-content-modern .tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Rapor Listesi */
.report-list-modern {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.report-item {
    display: flex;
    align-items: center;
    padding: 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}
.report-item:last-child {
    border-bottom: none;
}
.report-item:hover {
    background-color: var(--surface-color);
}
.report-item-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
}
.report-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.report-item-title {
    font-weight: 600;
    font-family: var(--font-primary);
}
.report-item-date {
    font-size: 0.9rem;
    opacity: 0.7;
}
.report-item-action i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.report-item:hover .report-item-action i {
    transform: translateX(5px);
}