/* ==========================================================================
   Blog Sayfası - Modüler Sayfa Stilleri
   ========================================================================== */

/* CSS Değişkenleri (Kurum teması JS/PHP üzerinden override edilir) */
:root {
    --forum-primary:      #4f46e5;
    --forum-primary-hover:#4338ca;
    --forum-bg-light:     #f8fafc;
    --forum-border-color: #e2e8f0;
    --forum-text-dark:    #0f172a;
}

/* Kompakt Blog Hero Kartı (Kompakt İnce Görünüm) */
.gd-blog-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.gd-blog-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-blog-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-blog-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── Ana Sarmalayıcı — site.css .gd-page-body ana omurgasına bağlı ── */

.gd-blog-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Sayfa Başlık Alanı ─────────────────────────────────────────────────── */
.gd-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.gd-blog-header__title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.gd-blog-header__subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 6px 0 0 0;
}

.gd-blog-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--forum-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.gd-blog-new-btn:hover {
    background: var(--forum-primary-hover);
    color: #fff;
}

/* ── Etiket Filtre Bildirimi ─────────────────────────────────────────────── */
.gd-blog-tag-filter {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a8a;
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.gd-blog-tag-filter__label {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-blog-tag-filter__clear {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Branş / Alt Kategori Filtresi ──────────────────────────────────────── */
.gd-blog-branch-filter {
    margin-bottom: 20px;
}

.gd-blog-branch-filter__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--forum-text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-blog-branch-filter__list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-blog-branch-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--forum-border-color);
    background: #ffffff;
    color: var(--forum-text-dark);
}

.gd-blog-branch-btn:hover,
.gd-blog-branch-btn--active {
    background: var(--forum-primary);
    color: #ffffff;
    border-color: var(--forum-primary);
}

/* ── Bölüm Başlığı ─────────────────────────────────────────────────────── */
.gd-blog-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Yazı Kartları Listesi ───────────────────────────────────────────────── */
.gd-blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd-blog-post-card {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.gd-blog-post-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.gd-blog-post-card--pinned {
    background: #fffbeb;
}

.gd-blog-post-icon {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
}

.gd-blog-post-info {
    flex: 1;
    padding: 14px 16px 14px 0;
    min-width: 0;
}

.gd-blog-post-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-blog-post-meta {
    font-size: 12px;
    color: #64748b;
}

.gd-blog-post-meta .gd-blog-cat-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    margin: 0 2px;
}

.gd-blog-post-meta .gd-blog-branch-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin: 0 2px;
}

.gd-blog-post-meta .gd-blog-inst-badge {
    font-weight: 600;
    color: #475569;
}

.gd-blog-post-date {
    min-width: 72px;
    text-align: right;
    padding: 14px 16px 14px 8px;
    flex-shrink: 0;
}

.gd-blog-post-date strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.gd-blog-post-date span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.gd-blog-badge-pin {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gd-blog-empty {
    padding: 50px 20px;
    text-align: center;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.gd-blog-empty__text {
    font-weight: 600;
    margin: 0;
    color: #64748b;
}

.gd-blog-empty__icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.35;
    display: block;
}

/* ── Kategoriler Başlığı ────────────────────────────────────────────────── */
.gd-blog-cats-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Kategori Kartı ─────────────────────────────────────────────────────── */
.gd-blog-cat-card {
    border-left: 5px solid var(--cat-color, var(--forum-primary));
    border-top: 1px solid var(--forum-border-color);
    border-right: 1px solid var(--forum-border-color);
    border-bottom: 1px solid var(--forum-border-color);
    background: var(--cat-bg, #ffffff);
    padding: 20px;
    margin-bottom: -1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.gd-blog-cat-card:hover {
    background: var(--cat-bg-hover, var(--cat-bg, #f8fafc));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.gd-blog-cat-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.gd-blog-cat-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cat-color, var(--forum-primary));
    overflow: hidden;
}

.gd-blog-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.gd-blog-cat-info {
    flex: 1;
    min-width: 0;
}

.gd-blog-cat-info__name {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.gd-blog-cat-info__name a {
    color: inherit;
    text-decoration: none;
}

.gd-blog-cat-info__desc {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.gd-blog-subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gd-blog-subcat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 11px;
    text-decoration: none;
    color: #475569;
    transition: all 0.15s ease;
}

.gd-blog-subcat-badge:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.gd-blog-subcat-badge__count {
    color: #94a3b8;
    font-weight: 500;
    font-size: 12px;
    margin-left: 2px;
}

.gd-blog-cat-meta {
    text-align: right;
    min-width: 90px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
}

.gd-blog-cat-stat {
    line-height: 1.25;
    text-align: right;
}

.gd-blog-cat-stat strong {
    font-size: 1.1rem;
    color: #0f172a;
    display: block;
    font-weight: 800;
}

.gd-blog-cat-stat span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .gd-blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .gd-blog-post-card {
        border-radius: 8px;
    }

    .gd-blog-cat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .gd-blog-cat-main {
        width: 100%;
        align-items: flex-start;
    }

    .gd-blog-cat-meta {
        display: none;
    }

    .gd-blog-branch-filter__list {
        gap: 6px;
    }
}
