/*
Theme Name: Av. Doğukan BAK Premium Tema
Theme URI: https://siteniz.com
Author: Doğukan Bak
Description: Özel tasarım hukuk ve danışmanlık teması.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: dogukan-tema
*/

/* =========================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR
   ========================================= */
:root {
    --primary-dark: #0a0d12;
    --gold: #b39359; 
    --gold-hover: #c9ac76;
    --text-gray: #8e9196;
    --white: #ffffff;
    --glass-white: rgba(255, 255, 255, 0.02);
}

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

body { 
    font-family: 'Montserrat', sans-serif; 
    background: #fff; 
    scroll-behavior: smooth; 
    color: var(--primary-dark); 
}

/* Linklerin varsayılan alt çizgisini kaldır */
a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   2. WORDPRESS ADMIN BAR DÜZELTMESİ
   ========================================= */
body.admin-bar .premium-header { top: 32px; }

@media screen and (max-width: 782px) {
    body.admin-bar .premium-header { top: 46px; }
}

/* =========================================
   3. HEADER VE NAVİGASYON
   ========================================= */
.premium-header {
    position: fixed;
    top: 0; width: 100%; z-index: 9999;
    transition: all 0.4s ease-in-out;
    background: transparent; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- SCROLL EDİLİNCE --- */
.header-scrolled {
    background: var(--primary-dark) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding-top: 0;
    border-bottom: none;
}

.header-scrolled .header-top {
    height: 0; padding: 0; overflow: hidden; opacity: 0; transition: 0.3s;
}

.header-top {
    color: var(--white);
    padding: 10px 10%;
    display: flex; justify-content: space-between;
    font-size: 10px; letter-spacing: 2px;
    border-bottom: 1px solid rgba(179, 147, 89, 0.15);
    font-weight: 400; transition: 0.3s;
}
.header-top i { color: var(--gold); margin-right: 5px; }

.main-nav {
    padding: 20px 10%;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.5s ease;
}

.header-scrolled .main-nav { padding: 15px 10%; }

.logo-box { text-align: center; }
.logo-box a { 
    color: var(--gold); 
    font-family: 'Bodoni Moda', serif; 
    font-size: 32px; font-weight: 700; 
    letter-spacing: -1px; transition: 0.3s;
}
.logo-sub { 
    display: block; font-size: 10px; color: var(--white); 
    letter-spacing: 6px; margin-top: -3px; text-transform: uppercase; opacity: 0.8;
}

/* --- MENÜ LİNKLERİ VE OK İŞARETİ AYARLARI --- */
.nav-links { display: flex; gap: 45px; margin: 0; }
.nav-links li { list-style: none; position: relative; }

.nav-links a {
    color: var(--white);
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; position: relative; transition: 0.3s;
    opacity: 0.85;
    padding-bottom: 5px; /* Çizgi için biraz boşluk */
}

/* 1. ALT ÇİZGİ (Artık ::before kullanıyoruz) */
.nav-links > li > a::before {
    content: ''; position: absolute; bottom: -8px; left: 0;
    width: 0; height: 1.5px; background: var(--gold); transition: 0.5s ease;
}

.nav-links > li > a:hover { opacity: 1; color: var(--gold); }
.nav-links > li > a:hover::before { width: 100%; }

.nav-links .current-menu-item > a { color: var(--gold); opacity: 1; }
.nav-links .current-menu-item > a::before { width: 100%; }

/* 2. AŞAĞI OK İŞARETİ (Sadece alt menüsü olanlara) */
.nav-links .menu-item-has-children > a {
    padding-right: 15px; /* Ok için sağdan boşluk bırak */
}

.nav-links .menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome Angle Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

/* Hover olunca ok dönsün ve parlasın */
.nav-links .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--gold);
}

.header-action a {
    padding: 14px 28px; border: 1.5px solid var(--gold); 
    color: var(--gold); font-size: 11px; 
    font-weight: 700; letter-spacing: 2.5px; transition: 0.4s;
    display: inline-block;
}
.header-action a:hover { 
    background: var(--gold); color: var(--primary-dark); 
    box-shadow: 0 0 20px rgba(179, 147, 89, 0.3); 
}

/* =========================================
   4. DROPDOWN (ALT MENÜ)
   ========================================= */
.nav-links ul.sub-menu {
    position: absolute;
    top: 130%; 
    left: -20px;
    width: 240px;
    background: var(--primary-dark);
    padding: 15px 0;
    border-top: 2px solid var(--gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999; display: block;
}

.nav-links li:hover > ul.sub-menu {
    opacity: 1; visibility: visible; top: 130%;
}

.nav-links ul.sub-menu li { display: block; margin: 0; border: none; }

.nav-links ul.sub-menu a {
    display: block; padding: 12px 25px;
    color: var(--text-gray); font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s ease;
}

/* Alt menüde ana menüdeki efektleri sıfırla */
.nav-links ul.sub-menu a::before, 
.nav-links ul.sub-menu a::after { display: none; }

.nav-links ul.sub-menu a:hover {
    color: var(--gold);
    background: rgba(179, 147, 89, 0.05);
    padding-left: 32px; opacity: 1;
}

/* =========================================
   5. GENEL DÜZEN
   ========================================= */
main { min-height: 800px; padding-top: 0; }

/* =========================================
   6. FOOTER ALANI
   ========================================= */
.premium-footer {
    background: var(--primary-dark); color: var(--white);
    padding: 120px 10% 40px; position: relative; overflow: hidden;
    border-top: 1px solid rgba(179, 147, 89, 0.1);
}
.premium-footer::before {
    content: 'JUSTITIA'; position: absolute; top: 5%; right: -2%;
    font-family: 'Bodoni Moda'; font-size: 18vw;
    color: rgba(255,255,255,0.015); font-weight: 900; pointer-events: none;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px; position: relative; z-index: 1;
}
.footer-col h4 {
    color: var(--gold); font-family: 'Bodoni Moda', serif;
    font-size: 22px; margin-bottom: 35px; font-weight: 700; position: relative;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: -12px; left: 0;
    width: 40px; height: 1px; background: var(--gold); opacity: 0.5;
}
.footer-col p { 
    color: var(--text-gray); line-height: 1.9; font-size: 14px; margin-bottom: 15px; 
}
.footer-links li { margin-bottom: 18px; }
.footer-links a { 
    color: var(--text-gray); transition: 0.4s ease; font-size: 13px; letter-spacing: 0.5px;
}
.footer-links a:hover { 
    color: var(--gold); transform: translateX(8px); display: inline-block; 
}
.contact-info-list li { display: flex; margin-bottom: 25px; align-items: flex-start; gap: 15px; }
.contact-info-list i { color: var(--gold); font-size: 16px; margin-top: 4px; opacity: 0.9; }

.footer-bottom {
    margin-top: 100px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: #4a4d52; letter-spacing: 2px; text-transform: uppercase;
}
.social-icons { display: flex; gap: 15px; margin-top: 25px; }
.social-icons a { 
    width: 42px; height: 42px; border: 1px solid rgba(179, 147, 89, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); border-radius: 50%; transition: 0.5s;
}
.social-icons a:hover { 
    background: var(--gold); color: var(--primary-dark); 
    border-color: var(--gold); transform: translateY(-5px); 
}

/* =========================================
   7. MOBİL MENÜ BUTONU VE RESPONSIVE
   ========================================= */
.mobile-toggle {
    display: none; font-size: 24px; color: var(--white);
    cursor: pointer; transition: 0.3s;
}
.mobile-toggle:hover { color: var(--gold); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-top { display: none; }
    .main-nav { padding: 20px 5%; }
    .nav-links { display: none; } 
    
    .premium-header { background: var(--primary-dark); }
    main { padding-top: 100px; }

    .mobile-toggle {
        display: block; position: absolute; right: 30px; top: 35px;
    }
    .header-action { display: none; }
    
    /* Mobilde ok işaretlerini gizle veya ayrıca ayarla */
    .nav-links .menu-item-has-children > a::after { display: none; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .premium-footer { padding: 60px 5% 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}