/* Blog'a özel eklemeler */
#blog-hero {
    text-align: center;
    padding: 60px 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    border-bottom: 1px solid var(--border-color);
}

#blog-hero h1 { font-size: 3rem; margin-bottom: 10px; color: var(--primary-color); }
#blog-hero p { color: var(--text-muted-color); }

.category-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.blog-grid {
    display: grid;
    /* Kart genişliğini 300px'den 280px'e çektik. 
       Böylece dar ekranlarda (320px-360px) taşma yapmaz. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { color: var(--primary-color); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.blog-title { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; color: white; }
.blog-summary { color: var(--text-muted-color); font-size: 0.9rem; flex: 1; margin-bottom: 15px; }
.blog-meta { font-size: 0.8rem; color: #666; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }

/* Detay Sayfası */
.post-header-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 30px; }
.post-main-title { font-size: 2.5rem; color: white; margin-bottom: 10px; }
.post-body { color: #d4d4d4; line-height: 1.8; font-size: 1.1rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.post-body h2 { color: var(--primary-color); margin-top: 30px; }

/* --- FEATURED SLIDER --- */
.slider-section {
    position: relative;
    width: 100%;
    height: 500px; /* Slider yüksekliği */
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
    
    /* EKLENEN KISIM: Tüm boşlukları sıfırla */
    padding: 0 !important; 
    margin: 0 !important;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Arka Plan Resmi ve Karartma */
.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Yazı okunsun diye resmi karartıyoruz */
    transition: transform 3s ease; /* Zoom efekti */
}

.slide-item:hover .slide-bg {
    transform: scale(1.05);
}

/* Yazı Alanı */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 0; /* padding'i biraz düzenledim */
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); /* Okunabilirlik için koyuluğu artırdım */
    color: white;
    z-index: 2;
    text-align: left !important; /* ÖNEMLİ: Sola hizalama */
}

.slide-cat {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.2;
    text-align: left !important; /* ÖNEMLİ: Ana css'teki ortalamayı ezer */
    width: 100%;
}

.slide-summary {
    font-size: 1rem;
    color: #ddd;
    max-width: 800px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 satırdan fazlasını gizle */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-btn {
    display: inline-block;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.slide-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Oklar */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slider-nav-btn:hover { background: var(--primary-color); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Noktalar */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .slider-section { height: 400px; }
    .slide-title { font-size: 1.5rem; }
    .slide-content { padding: 20px; }
    .slider-nav-btn { font-size: 1.5rem; padding: 10px 10px; }
}

/* --- MODERN HEADER TASARIMI --- */
.blog-header {
    position: sticky; /* Sayfa kaydıkça üstte kalsın */
    top: 0;
    z-index: 100;
    background: rgba(9, 8, 8, 0.9); /* Hafif şeffaf siyah */
    backdrop-filter: blur(12px); /* Arkası bulanıklaşsın (Buzlu cam etkisi) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-logo img {
    width: 140px; /* Logoyu biraz daha zarif boyuta çektik */
    display: block;
    transition: opacity 0.3s;
}

.blog-logo:hover img {
    opacity: 0.8;
}

/* --- YENİ 'ANA SAYFA' BUTONU --- */
.home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px 8px 8px; /* Solu dar, sağı geniş */
    border-radius: 50px; /* Tam yuvarlak (hap şeklinde) */
    background: rgba(255, 255, 255, 0.05); /* Çok hafif beyaz zemin */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* İkonun Çevresi */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    transition: all 0.3s ease;
}

/* Hover (Üzerine Gelme) Efektleri */
.home-link:hover {
    background: rgba(253, 6, 6, 0.1); /* Hafif kırmızı zemin */
    border-color: var(--primary-color); /* Kırmızı kenarlık */
    transform: translateY(-2px); /* Hafif yukarı kalksın */
}

.home-link:hover .icon-circle {
    background: var(--primary-color); /* İkon arkası tam kırmızı olsun */
    color: white;
}

.home-link:hover .link-text {
    color: white;
}

/* Mobil Uyum */
@media (max-width: 480px) {
    .link-text { display: none; } /* Mobilde sadece ikon görünsün */
    .home-link { padding: 8px; border-radius: 50%; } /* Mobilde tam yuvarlak olsun */
}

/* --- YENİ BÜYÜK HEADER --- */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 8, 8, 0.95); /* Çok koyu zemin */
    backdrop-filter: blur(15px); /* Buzlu cam */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0; /* Yüksekliği artırdık */
    transition: padding 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Ayarları */
.blog-logo img {
    width: 200px; /* Logo artık daha büyük ve belirgin */
    display: block;
    transition: transform 0.3s ease;
}

.blog-logo:hover img {
    transform: scale(1.05); /* Üzerine gelince hafif büyüsün */
}

/* Hamburger Buton Tasarımı */
.hamburger-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger-menu-btn .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger-menu-btn:hover .bar {
    background-color: var(--primary-color); /* Kırmızı hover */
}

/* --- SIDEBAR (YAN MENÜ) --- */
.blog-sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Başlangıçta ekran dışında */
    width: 300px;
    height: 100vh;
    background: #121212; /* Panel rengi */
    border-left: 1px solid #333;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.blog-sidebar.active {
    right: 0; /* Ekrana kaydır */
}

.blog-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.blog-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar İçeriği */
.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-content {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary-color);
    padding-left: 15px; /* Hover'da sağa kayma efekti */
}

.main-home-link {
    color: #fff;
    font-weight: bold;
    border: 1px solid #333;
    background: rgba(255,255,255,0.05);
}

.sidebar-divider {
    border: 0;
    height: 1px;
    background: #333;
    margin: 20px 0;
}

.sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
    color: #555;
    font-size: 0.8rem;
}

/* --- YENİ PROFESYONEL FOOTER TASARIMI --- */

.site-footer {
    background-color: #050505; /* Mevcut dark-bg'den bir tık daha koyu */
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
    color: var(--text-muted-color);
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* İlk sütun (marka) daha geniş */
    gap: 40px;
    margin-bottom: 60px;
}

/* Marka Alanı */
.brand-col .footer-logo {
    width: 180px;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-contact-item svg {
    color: var(--primary-color);
}

.footer-contact-item a {
    color: #fff;
    transition: 0.3s;
}

.footer-contact-item a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Başlıklar */
.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Link Listeleri */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px); /* Sağa kayma efekti */
}

/* Küçük Linkler (Yasal vb.) */
.small-links a {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Lianchez Social Butonları */
.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Hover Renkleri (Markalara Özgü) */
.social-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.linkedin:hover { background: #0077B5; border-color: #0077B5; }
.social-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-btn.youtube:hover { background: #FF0000; border-color: #FF0000; }

/* Alt Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.made-with {
    opacity: 0.7;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr; /* Tablette 2 sütun */
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .brand-col {
        text-align: center;
    }

    .brand-col .footer-logo {
        margin: 0 auto 20px auto;
    }

    .footer-contact-item {
        justify-content: center;
    }
    
    /* Mobilde başlık çizgisi yerine alt çizgi daha şık durabilir */
    .footer-heading {
        padding-left: 0;
        border-left: none;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
    }
    .footer-heading::before { display: none; }
}

/* Mobilde Header Düzeni */
@media (max-width: 768px) {
    .blog-header { padding: 15px 0; }
    .blog-logo img { width: 160px; }
}

/* --- REKLAM ALANLARI (Responsive) --- */
.ad-section {
    width: 100%;
    /* 'padding: 20px 0' yerine sadece alt ve üst veriyoruz.
       Böylece .container'dan gelen sağ-sol boşlukları bozmuyoruz. */
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Reklam kutusu (Google Adsense veya Görsel buraya gelecek) */
.ad-box {
    width: 728px; /* Masaüstü Standart */
    height: 90px;
    /* Daha görünür olması için rengi açtık ve kenarlığı belirginleştirdik */
    background-color: #1a1a1a; 
    border: 2px dashed #444; 
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    overflow: hidden;
    max-width: 100%; /* Taşmayı önlemek için kritik kural */
}

/* Mobil için boyut ayarı */
@media (max-width: 768px) {
    .ad-box {
        width: 300px; /* Mobil Standart */
        height: 250px;
        /* Çok küçük ekranlarda (örn: iPhone SE) taşmaması için */
        max-width: 100%; 
    }
}