﻿/* Genel Sayfa Ayarları */
body {
    background: #f6f5f0;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
}

/* Başlık: Navbar'ın altında kalmaması için padding-top eklendi */
.blog-title {
    text-align: center;
    font-weight: 600;
    padding-top: 115px;
    margin-bottom: 20px;
    color: #3b4a3f;
    font-size: 2rem;
}

/* Kategori Butonları */
.category-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.category-btn {
    background: #9bb48f;
    color: white;
    border-radius: 30px;
    padding: 8px 22px;
    margin: 5px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

    .category-btn:hover {
        background: #7f9c73;
        transform: scale(1.05);
    }

/* Blog Grid Yapısı */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Yan yana 4 kart */
    gap: 25px;
    padding: 0 60px 60px;
}

/* Blog Kartı Ana Yapısı */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Efektleri İçin Görsel Kapsayıcı */
.blog-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Kare formatı korur */
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Overlay: Üzerine gelince çıkan koyu ve blur katmanı */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 62, 47, 0.65); /* Koyulaştırma rengi */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px); /* BLUR efekti */
}

    .card-overlay span {
        color: white;
        border: 2px solid white;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 15px;
        font-weight: 500;
        text-transform: uppercase;
    }

/* HOVER AKSİYONLARI */
.blog-card:hover {
    transform: translateY(-10px); /* Kart hafif yükselir */
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

    .blog-card:hover .blog-image {
        filter: brightness(0.7); /* Görseli koyulaştırır (blur backdrop-filter ile overlay'de) */
        transform: scale(1.05); /* Görsel hafif büyür */
    }

    .blog-card:hover .card-overlay {
        opacity: 1; /* Yazı ve katman görünür olur */
    }

/* Kart Başlığı */
.blog-title-card {
    padding: 20px 15px;
    font-size: 17px;
    font-weight: 600;
    color: #2f3e2f;
    text-align: center;
    margin: 0;
}

.blog-card a {
    text-decoration: none;
}
/* ===== TABLET ===== */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kart yan yana */
        padding: 0 30px 40px;
    }

    .blog-title {
        font-size: 1.7rem;
        padding-top: 45px;
    }

    .blog-title-card {
        font-size: 16px;
        padding: 15px 12px;
    }
}

/* ===== TELEFON ===== */
@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Tek kolon */
        padding: 0 15px 30px;
    }

    .blog-title {
        font-size: 1.4rem;
        padding-top: 30px;
        margin-bottom: 15px;
    }

    .category-btn {
        font-size: 13px;
        padding: 7px 16px;
    }

    .blog-title-card {
        font-size: 15px;
        padding: 12px 10px;
    }
}
