/* Genel Sayfa Stilleri */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Üst Başlık (Header) */
header {
    background-color: #ac9494;
    color: #1d5580;
    padding: 1rem 0;
}

.header-icerik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    height: 80px; /* Header'ın sabit yüksekliği */
    max-width: 960px; /* İçeriğin genişliğini sınırlar */
    margin: 0 auto; /* İçeriği ortalar */
}

/* Logo için özel stil */
header .site-baslik .logo {
    height: 300px !important; /* Logonun yüksekliğini ayarlar */
    width: auto !important; /* Genişliği otomatik ayarlar, resmin oranını korur */
    display: block !important;
}

/* Sosyal medya ikonlarının bulunduğu div'in ayarları */
.social-media {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-media a {
    color: inherit;
    text-decoration: none;
}

/* Navigasyon Menüsü */
nav {
    background: #414b59;
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 99;
    display: flex; /* Flexbox ile hizalamayı sağlar */
    justify-content: center;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Ana İçerik Alanı */
main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    min-height: calc(100vh - 250px);
}

/* İçerik Bölümleri (Section) */
section {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section h2 {
    color: #333;
}

/* Anasayfa section içindeki img'ler ve blog kutuları içindeki img'ler için */
main section img,
.blog-kutusu img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
}

/* Alt Bilgi (Footer) */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

footer .social-media a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #ddd;
}

footer p {
    margin: 0;
}

/* Anasayfa için içerik özetlerini yan yana hizalama */
#icerik-ozetleri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Anasayfa kutucukları (section) için stil */
.icerik-kutusu {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 280px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.icerik-kutusu:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Anasayfa tam içerik sayfaları (JavaScript ile gösterilir/gizlenir) */
.tam-icerik {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.tam-icerik img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* "Geri Dön" linkinin stili */
.geri-don-linki {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.geri-don-linki:hover {
    color: #0056b3;
}

/* Filtre seçeneklerini içeren kapsayıcıyı hizalama */
.filtre-secenekleri {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

/* Tüm select kutucukları için genel stil */
.filtre-secenekleri select {
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px;
}

/* Fareyle üzerine gelindiğinde ve odaklanıldığında stil değişikliği */
.filtre-secenekleri select:hover,
.filtre-secenekleri select:focus {
    border-color: #5a5a5a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Select kutucuklarının sağ tarafına özel bir ok simgesi ekleme */
.filtre-secenekleri select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Blog kutularını yan yana dizmek için ana kapsayıcıyı Flexbox ile düzenleme */
.blog-yazilari-kutulari {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Her bir blog kutusunun stili */
.blog-kutusu {
    width: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.blog-kutusu:hover {
    transform: translateY(-5px);
}

.blog-kutusu h3 {
    margin: 15px 0 10px;
    font-size: 20px;
    color: #333;
}

.blog-kutusu p {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.devamini-oku {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.devamini-oku:hover {
    background-color: #0056b3;
}

/* Tam makale bölümlerini varsayılan olarak gizle */
.tam-makale {
    display: none;
    padding: 20px;
    margin-top: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Makale içindeki resim stili */
.makale-icerik img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Makale başlık ve paragraf stili */
.makale-icerik h3 {
    text-align: center;
    font-size: 28px;
    color: #007bff;
    margin-bottom: 20px;
}

/* FOTOĞRAF KAYDIRICI STİLLERİ */
#photo-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.slider-container {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
    min-width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

/* --- MOBİL CİHAZLAR İÇİN STİLLER (600px ve altı) --- */
@media (max-width: 600px) {
    .filtre-secenekleri {
        flex-direction: column;
        align-items: stretch;
    }

    .filtre-secenekleri select {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Anasayfa kutucukları da mobilde alt alta */
    #icerik-ozetleri {
        flex-direction: column;
        align-items: center;
    }

    .icerik-kutusu {
        width: 90%;
    }
}

/* --- NAVİGASYON GÖRÜNÜRLÜK SINIFLARI (auth_nav.js tarafından yönetilir) --- */
.hidden-nav-item {
    display: none !important; /* Bu öğeyi kesinlikle gizle */
}

.visible-nav-item {
    display: inline-block !important; /* Bu öğeyi kesinlikle göster (butonlar için uygun) */
    /* Veya 'display: flex !important;' eğer butonunuzu flex konteyner içinde hizalıyorsanız */
}
