/* ======================= GENEL VE PAYLAŞILAN STİLLER ======================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f8f9fa; /* Sayfa arkaplanını hafif gri yapalım */
    line-height: 1.5;
    margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.hidden { display: none; }

/* === ÜST SİYAH BAR (PAYLAŞILAN) === */
.top-bar { background-color: #3b3939; color: #fff; font-size: 14px; height: 60px; display: flex; align-items: center; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-links { margin-left: 100px; display: flex; gap: 35px; }
.top-links a { color: #cec4c4; text-decoration: none; margin-right: 20px; font-size: 12px; }
.top-links a:hover { text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 25px; }
.phone { display: flex; align-items: center; gap: 6px; color: #cec4c4; font-size: 15px; font-weight: bold; }
.phone a { text-decoration: none; color: #cec4c4; }
.phone a:hover, .phone a:hover i.fa-whatsapp { color: #25D366; }
.lang-dropdown { position: relative; padding-left: 15px; border-left: 1px solid rgba(255, 255, 255, 0.3); height: 20px; }
.lang-dropdown button { background: none; border: none; color: #cec4c4; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.lang-menu { position: absolute; top: 30px; right: 0; background: #fff; color: #000; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); padding: 10px; min-width: 160px; z-index: 999; }
.lang-menu a { display: flex; align-items: center; gap: 8px; color: #000; padding: 5px 0; font-size: 13px; }
.fi { margin-right: 5px; font-size: 13px; border-radius: 1.5px; }

/* === HEADER (PAYLAŞILAN) === */
.header-bar { background: #fff; border-bottom: 1px solid #eee; width: 100%; }
.header-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.left-side { display: flex; align-items: center; gap: 12px; }
.categories-btn { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; background: #16163a; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.search { display: flex; align-items: center; height: 44px; border: 1px solid #e2e2e2; border-radius: 8px; padding: 0 12px 0 36px; position: relative; background: #fff; }
.search i { position: absolute; left: 12px; color: #8b8b8b; }
.search input { border: none; outline: none; font-size: 14px; background: transparent; }
.center-side img { height: 100px; width: auto; }
.right-side { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.right-side a { display: flex; align-items: center; gap: 6px; color: #222; font-weight: 500; }
.right-side i { font-size: 18px; }
.right-side a:hover { color: #16163a; }

/* === KATEGORİ MENÜSÜ (PAYLAŞILAN) === */
.category-menu-container { position: absolute; top: 167px; left: 0; right: 0; margin: auto; width: 1200px; z-index: 998; background-color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border-top: 1px solid #e0e0e0; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; }
.category-menu-container.visible { max-height: 500px; padding: 30px 0; }
.category-menu-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.category-list li a { display: flex; align-items: center; padding: 12px 10px; color: #323233; font-size: 16px; border-radius: 6px; border: 1px solid #f0f0f0; margin-bottom: 5px; }
.category-list li a:hover { background-color: #f4f4f4; color: #0056b3; }
.category-list li a i { font-size: 20px; width: 30px; text-align: center; margin-right: 15px; color: #7c96c7; }

/* ======================= SAYFA İÇERİĞİ STİLLERİ ======================= */
.page-content {
    padding: 50px 0;
}

.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.content-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    max-width: 800px; /* İçerik kutusunun maksimum genişliği */
    margin: 0 auto; /* Kutuyu ortala */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.belge-resim {
    display: block; /* Her resmin kendi satırında olmasını sağlar */
    margin: 0 auto 25px auto; /* Resmi yatayda ortala ve altına boşluk bırak */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Resme hafif bir gölge efekti */
}

.belge-resim:last-child {
    margin-bottom: 0; /* Son resmin altındaki boşluğu kaldır */
}
/* ======================= YUKARI ÇIK BUTONU STİLLERİ ======================= */
.scroll-top-btn {
    position: fixed; /* Sayfa kaysa bile yerinde kalır */
    bottom: 70px; /* Alttan boşluk */
    right: 30px; /* Sağdan boşluk */
    z-index: 999; /* Diğer elemanların üstünde kalır */
    
    width: 50px; /* Genişlik */
    height: 50px; /* Yükseklik */
    
    background-color: #333; /* Arkaplan rengi */
    color: #fff; /* Ok ikonunun rengi */
    
    border: none;
    border-radius: 50%; /* Tam yuvarlak yapar */
    
    /* İkonu tam ortalamak için */
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 20px;
    text-decoration: none;
    
    cursor: pointer;
    
    /* Başlangıçta görünmez ve ekranın dışında olacak */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Aşağıda gizli duracak */
    
    /* Belirip kaybolma animasyonu */
    transition: all 0.3s ease-in-out;
    
}

/* JavaScript ile eklenecek olan 'show' sınıfı */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Normal konumuna gelecek */
}

/* Üzerine gelince hafif bir renk değişimi */
.scroll-top-btn:hover {
    background-color: #555;
    text-decoration: none;
}
/* ======================= FOOTER (PAYLAŞILAN) ======================= */
.main-footer { background-color: #f4f4f4; color: #555; padding: 50px 20px 0 20px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.95fr auto 1.05fr; gap: 350px; align-items: start; }
.footer-column h3 { font-size: 18px; color: #333; margin-bottom: 20px; font-weight: bold; }
.contact-list li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 15px; }
.contact-list i { color: #0056b3; width: 20px; margin-right: 10px; margin-top: 3px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #0056b3; }
.social-main { display: flex; align-items: center; margin-bottom: 20px; font-size: 16px; font-weight: bold; }
.social-main i { font-size: 24px; margin-right: 10px; }
.social-other { display: flex; gap: 15px; }
.social-other a { color: #555; font-size: 22px; }
.social-other a:hover { color: #0056b3; transform: scale(1.1); }
.site-footer { background-color:#302e2e; color: #cec4c4; padding: 15px 0; text-align: center; font-size: 14px; border-top: 1px solid #e0e0e0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-footer p { margin: 0; }
/* ======================= YUKARI ÇIK BUTONU STİLLERİ ======================= */
.scroll-top-btn {
    position: fixed; /* Sayfa kaysa bile yerinde kalır */
    bottom: 70px; /* Alttan boşluk */
    right: 30px; /* Sağdan boşluk */
    z-index: 999; /* Diğer elemanların üstünde kalır */
    
    width: 50px; /* Genişlik */
    height: 50px; /* Yükseklik */
    
    background-color: #333; /* Arkaplan rengi */
    color: #fff; /* Ok ikonunun rengi */
    
    border: none;
    border-radius: 50%; /* Tam yuvarlak yapar */
    
    /* İkonu tam ortalamak için */
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 20px;
    text-decoration: none;
    
    cursor: pointer;
    
    /* Başlangıçta görünmez ve ekranın dışında olacak */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Aşağıda gizli duracak */
    
    /* Belirip kaybolma animasyonu */
    transition: all 0.3s ease-in-out;
    
}

/* JavaScript ile eklenecek olan 'show' sınıfı */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Normal konumuna gelecek */
}

/* Üzerine gelince hafif bir renk değişimi */
.scroll-top-btn:hover {
    background-color: #555;
    text-decoration: none;
}

/* ======================= ADMİN GİRİŞ POP-UP STİLLERİ ======================= */

/* Arkaplanı karartan katman */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* Pop-up kutusunun kendisi */
.login-popup {
    background-color: #fff;
    padding: 50px; /* İç boşluk artırıldı */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    /* DEĞİŞİKLİK: Kutu büyütüldü */
    max-width: 500px; 
    text-align: center;
}

.login-logo {
    display: block; /* Tam ortalanması için */
    margin: 0 auto 20px auto; /* Üstten boşluk sıfır, yanlardan otomatik, alttan 20px */
    height: 150px;
    width: 150px;
}

/* YENİ: Başlık stili */
.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#admin-password-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.login-btn {
    padding: 12px;
    border: none;
    background-color: #16163a; /* Header'daki buton rengiyle uyumlu */
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #2b2b5a;
}

.error-msg {
    color: #d9534f; /* Kırmızı hata rengi */
    font-weight: bold;
    margin-top: 15px;
    height: 20px; /* Boşluk yaratmaması için sabit yükseklik */
}

/* Gizleme/gösterme için kullanılan sınıf */
.hidden {
    visibility: hidden;
    opacity: 0;
}
/* ====================================================================== */
/* ======================= MOBİL UYUMLULUK (RESPONSIVE) ======================= */
/* ====================================================================== */

@media (max-width: 1200px) {
    /* --- ORTAK ALANLAR --- */
    .category-menu-container {
        width: 95%;
        right: 2.5%;
        left: 2.5%;
    }
    .footer-content {
        gap: 40px;
        grid-template-columns: 1fr 1fr 1fr; 
    }
}

/* TABLET BOYUTU (992px ve altı) */
@media (max-width: 992px) {
    /* --- ORTAK HEADER / FOOTER --- */
    .search.active input { width: 100px; }
    .search.active { background-color: #fff; border: 1px solid #e2e2e2; }
    .top-bar-container {
        justify-content: space-between;
        width: 100%;
        padding: 0 15px;
    }
    .top-links { display: flex; gap: 15px; margin-left: 0; align-items: center; }
    .top-links a { font-size: 12px; margin-right: 0; }
    .phone span { display: none; }
    .phone i { font-size: 22px; }
    .header-inner { padding: 0 15px; grid-template-columns: auto 1fr auto; }
    .footer-content { grid-template-columns: 1fr 1fr; text-align: left; }
    .contact-list li, .social-main, .social-other { justify-content: flex-start; }
    
    /* --- BU SAYFAYA ÖZEL İÇERİK --- */
    .content-box {
        grid-template-columns: repeat(2, 1fr); /* Belge resimlerini 2'li sırala */
    }
}

/* KÜÇÜK TABLET VE BÜYÜK TELEFON BOYUTU (768px ve altı) */
@media (max-width: 768px) {
     /* Tıklayınca açılan arama animasyonu */
     .search {
        background-color: transparent;
        border: 1px solid transparent; /* Başlangıçta çerçeve görünmez */
        border-radius: 8px;
        padding-left: 10px; /* İkon için boşluk */
        padding-right: 10px;
        transition: all 0.4s ease-in-out;
    }

    /* Arama ikonuna tıklandığını belli etmek için */
    .search i {
        cursor: pointer;
    }
    
    /* Arama input'u (başlangıçta gizli) */
    .search input {
        width: 0; /* Genişliği sıfır */
        padding: 0; /* İç boşluğu sıfır */
        border: none;
        opacity: 0; /* Görünmez */
        pointer-events: none; /* Tıklanamaz */
        transition: all 0.4s ease-in-out;
    }

    /* JavaScript ile .active sınıfı eklendiğinde olacaklar */
    .search.active {
        background-color: #fff;
        border: 1px solid #e2e2e2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .search.active input {
        width: 100px; /* Genişliği artır (istediğin gibi ayarla) */
        padding-left: 10px; /* Soluna boşluk ver */
        opacity: 1; /* Görünür yap */
        pointer-events: auto; /* Tıklanabilir yap */
    }
    .search.active i {
        opacity: 0; /* İkonu yavaşça görünmez yap */
        pointer-events: none; /* Tıklanmasını engelle */
    }
    /* --- ORTAK HEADER / FOOTER --- */
    .header-inner {
        display: flex; justify-content: space-between; align-items: center;
        position: relative; height: 70px; padding: 0 15px;
    }
    .left-side, .right-side { flex: 1; }
    .left-side { justify-content: flex-start; }
    .right-side { justify-content: flex-end; }
    .center-side {
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%); width: auto;
    }
    .center-side .logo-link img { height: 50px; }
    .right-side .admin-link span { display: none; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .contact-list li, .social-main, .social-other { justify-content: center; }

    /* --- BU SAYFAYA ÖZEL İÇERİK --- */
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .content-box {
        grid-template-columns: 1fr; /* Belge resimlerini alt alta sırala */
        gap: 30px;
        padding: 20px;
    }
}

/* SADECE KÜÇÜK TELEFONLAR İÇİN EKSTRA AYARLAR (480px ve altı) */
@media (max-width: 480px) {
    /* --- ORTAK ALANLAR --- */
    body { font-size: 15px; }
    .header-inner .logo-link img { height: 40px; }
    .categories-btn span { display: none; }
    .categories-btn { padding: 0 12px; width: 44px; }
}