/* ==========================================================================
   BLOG SAYFASI - YENİ TASARIM
   ========================================================================== */

:root {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --primary-color: #39FF14; /* Neon Yeşil */
    --text-color: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    padding-bottom: 80px; /* Bottom nav için boşluk */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. HEADER */
.blog-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.blog-header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* 2. HERO BANNER */
.hero-banner {
    padding: 40px 0;
}

.banner-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-image:hover img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.banner-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 3. KATEGORİLER */
.category-nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.nav-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

.nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-btn {
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cat-btn:hover, .cat-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    font-weight: 600;
}

/* 4. MASONRY GRID */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    height: 250px; /* Sabit yükseklik artırıldı */
    overflow: hidden;
    background-color: #000; /* Görsel yüklenmezse siyah fon */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görseli kutuya sığdırır, taşanı keser */
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.1); /* Hover efekti */
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .banner-image {
        height: 300px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* FOOTER */
footer {
    /* background-color: #1A1A1A;  Kaldırıldı */
    color: var(--text-muted);
    padding: 40px 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); Kaldırıldı */
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    margin: 0;
}

.markasium-link {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.markasium-link:hover {
    color: var(--primary-color);
}
