/* =================================================================
   ARK YAPI - BLOG SAYFASI
   ================================================================= */

/* --- GENEL AYARLAR --- */
:root {
    --color-green: #425F57;
    --color-dark: #212121;
    --color-gray-bg: #F3F3F3;
    --font-main: 'Poppins', sans-serif;
}

/* Konteyner */
.content-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 240px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* --- HERO ALANI --- */
.blog-hero {
    position: relative;
    width: 100%;
    height: 507px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    max-width: 100vw;
}

.hero-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('../../img/ark/blog-hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Yeşil Overlay */
.hero-overlay-green {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(66, 95, 87, 0.57);
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Gradient Overlay - Rectangle 4292 */
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, rgba(31, 31, 31, 0.75) 0%, rgba(31, 31, 31, 0) 100%);
    z-index: 3;
}

.hero-text {
    position: relative;
    z-index: 4;
    padding-top: 80px; /* Navbar için boşluk */
}

.hero-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 54px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    line-height: 24px;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* --- BLOG LİSTE BÖLÜMÜ --- */
.blog-list-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

/* Ana sayfadaki blog bölümü gibi kartlar yan yana (grid) diziliyor — büyük ekranda 3, orta
   ekranda 2, mobilde 1 sütun. Kartın kendi içeriği (tarih/başlık/buton) daha önce full-genişlik
   tek sütun tasarımına göre SABİT piksel (top/left/width:400px) ile konumlanmıştı; grid'de kart
   daralınca bu sabit değerler taşacağı için esnek (flex + padding) bir yerleşime çevrildi. */
.blog-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.blog-card-item {
    width: 100%;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.blog-list-section .blog-card {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 0;
    /* Figma: background: linear-gradient(0deg, rgba(31, 31, 31, 0.64), rgba(31, 31, 31, 0.64)), url(...) */
}

/* Kartın üzerindeki koyu filtre (Gradient) - Figma: linear-gradient(0deg, rgba(31, 31, 31, 0.64), rgba(31, 31, 31, 0.64)) */
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(31, 31, 31, 0.64), rgba(31, 31, 31, 0.64));
    z-index: 1;
}

/* Kart İçeriği - Frame 41 (grid'de kart daraldığı için sabit piksel konum/genişlik yerine
   kartın tamamını dolduran, kenarlardan boşluk bırakan esnek (flex) bir yerleşim kullanılıyor) */
.blog-list-section .blog-card .blog-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    margin: 0;
    width: auto;
    height: auto;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Üst kısım: Tarih ve Başlık - Frame 36 */
.blog-list-section .blog-content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    height: auto;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* Alt kısım: Buton - Frame 29 */
.blog-list-section .blog-content-bottom {
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Tarih Rozeti (Glassmorphism) - Frame 35 */
.blog-date-badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    gap: 10px;
    width: 110px;
    height: 37px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 4px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.blog-date-badge span {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #FFFFFF;
    width: 62px;
    height: 21px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Blog Başlığı */
.blog-list-section .blog-title {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 32px;
    color: #FFFFFF;
    width: 100%;
    height: auto;
    margin: 0;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Detaylı İncele Butonu (Glass Effect) - Frame 29 */
.btn-blog-detail {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    gap: 10px;
    width: auto;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 4px;
    border: none;
    flex: none;
    order: 1;
    flex-grow: 0;
    
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* --- "TÜMÜNÜ GÖR" BUTONU --- */
/* İlk 3 yazıdan sonrakiler, butona basılana kadar gizli durur (bkz. ListPages/_Type1.cshtml) */
.blog-card-hidden {
    display: none;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.btn-load-more {
    width: 190px;
    height: 56px;
    background-color: var(--color-green);
    color: #FFFFFF;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #2e463f;
    color: #FFFFFF;
}

/* --- RESPONSIVE --- */
@media (max-width: 1550px) {
    .content-container {
        padding: 0 100px;
    }
}

@media (min-width: 1350px) and (max-width: 1550px) {
    .hero-subtitle {
        font-size: 20px !important;
        line-height: 24px;
    }
}

@media (max-width: 1350px) {
    .content-container {
        padding: 0 175px;
    }
}

@media (max-width: 1200px) {
    .content-container {
        padding: 0 150px;
    }

    /* 3 sütun bu genişlikte dar geliyor, 2 sütuna düşüyor */
    .blog-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-list-section .blog-card {
        height: 420px;
    }

    .blog-list-section .blog-card .blog-content {
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .content-container {
        padding: 0 100px;
    }

    .blog-list-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .blog-list-section .blog-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 60px;
    }
    
    .blog-hero {
        height: 400px;
    }
    
    .hero-text {
        padding-top: 100px; /* Mobilde navbar için daha fazla boşluk */
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .blog-list-section {
        padding: 60px 0;
    }

    .blog-list-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-list-section .blog-card {
        height: 400px;
    }
    
    .blog-list-section .blog-card .blog-content {
        top: 30px;
        bottom: 30px;
        left: 30px;
        right: 30px;
        width: auto;
        max-width: none;
        height: auto;
        min-height: calc(100% - 60px);
        gap: 0;
        justify-content: space-between;
    }
    
    .blog-list-section .blog-content-top {
        width: 100%;
        max-width: 100%;
        height: auto;
        gap: 20px;
    }
    
    .blog-list-section .blog-title {
        width: 100%;
        height: auto;
        font-size: 20px;
        line-height: 30px;
    }
    
    .blog-list-section .blog-content-bottom {
        margin-top: auto;
    }
    
    .btn-blog-detail {
        width: auto;
        min-width: 160px;
        height: 50px;
        font-size: 14px;
        padding: 14px 32px;
    }
}

/* max-width: 991px - Markalar ile aynı */
@media (max-width: 991px) {
    .blog-hero {
        height: 400px;
    }
    
    .content-container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
}

/* max-width: 576px - Markalar ile aynı */
@media (max-width: 576px) {
    .blog-hero {
        height: 350px;
    }
    
    .content-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 20px;
        line-height: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
    
    .blog-list-section {
        padding: 40px 0;
    }
    
    .blog-list-wrapper {
        gap: 30px;
    }
    
    .blog-list-section .blog-card {
        height: 350px;
    }
    
    .blog-list-section .blog-card .blog-content {
        top: 25px;
        bottom: 25px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
        height: auto;
        min-height: calc(100% - 50px);
        gap: 0;
        justify-content: space-between;
    }
    
    .blog-list-section .blog-content-top {
        width: 100%;
        max-width: 100%;
        height: auto;
        gap: 18px;
    }
    
    .blog-list-section .blog-title {
        width: 100%;
        height: auto;
        font-size: 18px;
        line-height: 26px;
    }
    
    .blog-list-section .blog-content-bottom {
        margin-top: auto;
    }
    
    .btn-blog-detail {
        width: auto;
        min-width: 140px;
        height: 48px;
        font-size: 14px;
        padding: 12px 28px;
    }
    
    .load-more-wrapper {
        margin-top: 60px;
    }
    
    .btn-load-more {
        width: 170px;
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 20px;
    }
    
    .blog-hero {
        height: 300px;
    }
    
    .hero-text {
        padding-top: 80px; /* Çok küçük ekranlarda navbar için boşluk */
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        line-height: 20px;
    }
    
    .blog-list-section {
        padding: 30px 0;
    }
    
    .blog-list-wrapper {
        gap: 25px;
    }
    
    .blog-list-section .blog-card {
        height: 320px;
    }
    
    .blog-list-section .blog-card .blog-content {
        top: 20px;
        bottom: 20px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        height: auto;
        min-height: calc(100% - 40px);
        gap: 0;
        justify-content: space-between;
    }
    
    .blog-list-section .blog-content-top {
        width: 100%;
        max-width: 100%;
        height: auto;
        gap: 15px;
    }
    
    .blog-date-badge {
        width: auto;
        min-width: 90px;
        height: 30px;
        padding: 6px 16px;
    }
    
    .blog-date-badge span {
        font-size: 12px;
        line-height: 18px;
    }
    
    .blog-list-section .blog-title {
        width: 100%;
        height: auto;
        font-size: 16px;
        line-height: 24px;
    }
    
    .blog-list-section .blog-content-bottom {
        margin-top: auto;
    }
    
    .btn-blog-detail {
        width: auto;
        min-width: 120px;
        height: 44px;
        font-size: 13px;
        padding: 10px 24px;
    }
    
    .load-more-wrapper {
        margin-top: 50px;
    }
    
    .btn-load-more {
        width: 160px;
        height: 48px;
        font-size: 13px;
    }
}

