﻿/* ~/pages/blogPage/style.css */

/* Blog kartı - LİSTELEME için */
.butcher-blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.butcher-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
    border-color: #900000;
}

.butcher-blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.butcher-blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.butcher-blog-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.1px;
}

.butcher-blog-desc {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.butcher-blog-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #900000;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin-top: auto;
    align-self: stretch;
}

.butcher-blog-btn:hover {
    background: white;
    color: #900000;
    border: 2px solid #900000;
    font-size: 1.6rem;
}

.button-container {
    margin-top: auto;
    padding-top: 1rem;
}

/* BLOG-COL GRID SİSTEMİ - EKLEMEM GEREKEN KISIM */
.blog-col {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

/* blog-col içindeki kartın margin'ini sıfırla */
.blog-col .butcher-blog-card {
    margin-bottom: 0;
    height: 100%;
}

/* Responsive grid için blog-col */
@media (min-width: 768px) {
    .blog-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .blog-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    /* 4 kart için özel düzenleme - 4. kart sola yaslanır */
    .row .blog-col:nth-child(4n + 1):nth-last-child(1),
    .row .blog-col:nth-child(4):only-child {
        margin-left: 0;
        margin-right: auto;
    }

    /* 4 kart olduğunda ilk 3 normal, 4. sola yaslanır */
    .row .blog-col:nth-child(4):nth-last-child(1) {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Mobil (≤ 576px): 1 sütun */
@media (max-width: 576px) {
    .butcher-blog-title {
        font-size: 1.6rem;
    }

    .butcher-blog-desc {
        font-size: 1.3rem;
    }

    .butcher-blog-image {
        height: 180px;
    }

    .butcher-blog-content {
        padding: 1.25rem;
    }

    .butcher-blog-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .butcher-blog-btn:hover {
        font-size: 1.4rem;
    }
}

/* Tablet (577px - 768px): 2 sütun */
@media (min-width: 577px) and (max-width: 768px) {
    .butcher-blog-title {
        font-size: 1.7rem;
    }

    .butcher-blog-desc {
        font-size: 1.25rem;
    }

    .butcher-blog-image {
        height: 200px;
    }

    .butcher-blog-content {
        padding: 1.5rem;
    }

}

/* Desktop (769px - 992px): 3 sütun */
@media (min-width: 769px) and (max-width: 992px) {
    .butcher-blog-image {
        height: 220px;
    }

    .butcher-blog-content {
        padding: 1.75rem;
    }

    .butcher-blog-title {
        font-size: 1.8rem;
    }

    .butcher-blog-desc {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .butcher-blog-btn {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }

}

/* Large Desktop (993px - 1200px): 3 sütun */
@media (min-width: 993px) and (max-width: 1200px) {
    .butcher-blog-image {
        height: 240px;
    }

    .butcher-blog-content {
        padding: 2rem;
    }

    .butcher-blog-title {
        font-size: 1.9rem;
    }

    .butcher-blog-desc {
        font-size: 1.45rem;
    }

    .butcher-blog-btn {
        font-size: 1.45rem;
        padding: 1.125rem 2.25rem;
    }

}

/* Extra Large Desktop (≥ 1201px): 3 sütun */
@media (min-width: 1201px) {
    .butcher-blog-image {
        height: 260px;
    }

    .butcher-blog-content {
        padding: 2.25rem;
    }

    .butcher-blog-title {
        font-size: 2rem;
    }

    .butcher-blog-desc {
        font-size: 1.5rem;
        line-height: 1.7;
    }

    .butcher-blog-btn {
        font-size: 1.5rem;
        padding: 1.25rem 2.5rem;
    }

}

/* Çok büyük ekranlar (≥ 1400px) */
@media (min-width: 1400px) {
    .butcher-blog-image {
        height: 280px;
    }

    .butcher-blog-content {
        padding: 2.5rem;
    }

    .butcher-blog-title {
        font-size: 2.1rem;
    }

    .butcher-blog-desc {
        font-size: 1.55rem;
    }

    .butcher-blog-btn {
        font-size: 1.55rem;
        padding: 1.375rem 2.75rem;
    }

    .butcher-blog-title {
        font-size: 2.3rem;
    }

    .butcher-blog-desc {
        font-size: 1.8rem;
    }

    .butcher-blog-btn {
        font-size: 1.5rem;
    }
}