/* =========================================
   CENGHILTON BLOG SAYFASI
   Sadece blog.php için tasarım
   ========================================= */

/* Genel yerleşim */
.blog-container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
}

/* Üst başlık alanı */
.blog-header {
    text-align: center;
    margin-bottom: 32px;
}

.blog-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 6px;
}

.blog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-subtitle {
    font-size: 14px;
    opacity: 0.8;
    max-width: 540px;
    margin: 0 auto;
}

/* Kategori filtreleri */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.category-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 10, 15, 0.9);
    color: #d8dfe5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease-out;
    outline: none;
}

.category-pill:hover {
    border-color: #00e676;
    color: #00e676;
    background: rgba(0, 0, 0, 0.95);
}

.category-pill.active {
    border-color: #00e676;
    background: #00e676;
    color: #050a0d;
    font-weight: 600;
}

/* Boş state */
.blog-empty-state {
    padding: 40px 20px 60px;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top,
        rgba(0, 230, 118, 0.08),
        rgba(0, 0, 0, 0.9)
    );
}

.blog-empty-state h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.blog-empty-state p {
    font-size: 14px;
    opacity: 0.8;
    max-width: 480px;
    margin: 0 auto;
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: radial-gradient(circle at 30% 0%,
        rgba(0, 230, 118, 0.25),
        transparent
    );
}

.empty-icon i {
    color: #00e676;
}

/* Blog kart grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Orta boy ekranlar için 2 kolon */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobil için tek kolon */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Kart tasarımı */
.blog-card {
    background: radial-gradient(circle at top left,
        rgba(0, 230, 118, 0.08),
        rgba(5, 10, 15, 0.98)
    );
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.9),
        0 0 0 0.5px rgba(255, 255, 255, 0.02);
    transition: transform 0.18s ease-out,
                box-shadow 0.18s ease-out,
                border-color 0.18s ease-out,
                background 0.18s ease-out;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow:
        0 28px 45px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(0, 230, 118, 0.12);
}

/* Kart görseli */
.blog-card-image {
    position: relative;
    width: 100%;
    padding-top: 46%; /* yaklaşık 2.17:1 oran, geniş banner */
    overflow: hidden;
    background: radial-gradient(circle at center,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 1)
    );
}

.blog-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

/* Eğer görsel yoksa ikon göster */
.blog-card-image i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

/* Kart içerik alanı */
.blog-card-content {
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta satır (tarih + kategori) */
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.82;
}

.blog-card-date {
    white-space: nowrap;
}

.blog-card-category {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Başlık & özet */
.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 4px 0 2px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #00e676;
}

.blog-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    max-height: 3.1em; /* yaklaşık 2 satır */
    overflow: hidden;
}

/* Alt kısım */
.blog-card-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #00e676;
    text-decoration: none;
    padding: 4px 0;
}

.blog-card-link i {
    font-size: 11px;
    transition: transform 0.2s ease-out;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

/* Mobil uyum: üst boşluk, yazı boyutları */
@media (max-width: 768px) {
    .blog-container {
        margin: 100px auto 60px;
        padding: 0 16px;
    }

    .blog-title {
        font-size: 26px;
    }

    .blog-subtitle {
        font-size: 13px;
    }

    .blog-card-content {
        padding: 14px 14px 14px;
    }

    .blog-card {
        border-radius: 16px;
    }
}

/* Çok küçük ekranlar için buton kaydırma kolaylığı */
@media (max-width: 480px) {
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .blog-categories::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        white-space: nowrap;
    }
}
