/* =========================
   ORTAK SORU KARTI (QUESTION CARD) BİLEŞENİ
========================= */
.feed-list {
    display: flex;
    flex-direction: column;
    /* Kartlar arası mesafe masaüstünde DİKEY boşluk değişkenine bağlandı */
    gap: var(--padding-y-desktop, 20px); 
}

.feed-card {
    display: flex;
    /* YENİ: DİNAMİK X ve Y İÇ BOŞLUK (MASAÜSTÜ KIRMIZI ÇİZGİLER) */
    padding: var(--padding-y-desktop, 24px) var(--padding-x-desktop, 24px); 
    gap: 16px; 
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feed-card:hover {
    transform: translateY(-2px); 
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
}

/* -------------------------
   MODERN TASARIM METRİK ALANI (SOL BAR)
------------------------- */
.feed-card--modern .feed-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    flex-shrink: 0;
    width: 50px; 
}

.feed-card--classic .feed-card__metrics {
    display: none; 
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0; 
    border-radius: 8px;
    line-height: 1.1;
    background: var(--color-surface-2);
    border: 1px solid var(--border-color);
    color: var(--color-muted);
}
.metric-box .metric-val { font-size: 1rem; font-weight: 800; } 
.metric-box .metric-lbl { font-size: 0.7rem; font-weight: 600; }
.metric-box.is-positive { background: color-mix(in srgb, var(--color-success) 10%, transparent); border-color: color-mix(in srgb, var(--color-success) 20%, transparent); color: var(--color-success); }
.metric-box.is-positive .metric-val { color: var(--color-success); }
.metric-box.is-answered { background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-color: color-mix(in srgb, var(--color-primary) 20%, transparent); color: var(--color-primary); }
.metric-box.is-answered .metric-val { color: var(--color-primary); }

/* -------------------------
   KART İÇERİĞİ
------------------------- */
.feed-card__content {
    flex-grow: 1;
    min-width: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-card__title {
    margin: 0 0 8px 0; 
    /* YENİ: AKIŞKAN TİPOGRAFİ (FLUID TYPOGRAPHY) */
    /* Dar ekranda min 1.1rem olacak, ekran büyüdükçe lastik gibi genişleyip h3-scale değerinde duracak */
    font-size: clamp(1.1rem, 2.5vw + 0.5rem, var(--h3-scale, 1.5rem)); 
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.feed-card__title a { color: var(--color-text); text-decoration: none; transition: color 0.2s; }
.feed-card__title a:hover { color: var(--color-primary); }

.feed-card__desc {
    font-size: 0.95rem; 
    line-height: 1.5;
    margin: 0 0 12px 0; 
    color: var(--color-muted);
    text-align: justify;
}

.feed-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    margin-bottom: 16px;
}

/* -------------------------
   KLASİK TASARIM ÖZGÜR YAZAR BİLGİSİ
------------------------- */
.feed-card__author-info-classic {
    display: flex;
    align-items: center;
    gap: 8px; 
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 0.9rem; 
    margin-bottom: 12px; 
}
.author-name-classic { color: var(--color-text); font-weight: 600; }
.author-dot-classic { opacity: 0.4; }
.author-date-classic { font-weight: 500; }

/* -------------------------
   ALT BÖLÜM (İSTATİSTİKLER VE BUTON)
------------------------- */
.feed-card__divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0 0 16px 0; 
    width: 100%;
}

.feed-card__bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px; 
}

.feed-card__stats-group {
    display: flex;
    align-items: center;
    gap: 8px; 
    flex-wrap: wrap;
}

/* ------ KLASİK TASARIM GENİŞ KAPSÜLLER ------ */
.stat-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px; 
    padding: 0 12px; 
    border: 1px solid var(--border-color);
    border-radius: var(--radius-button);
    background: var(--color-surface-2);
    transition: all var(--transition-fast);
}

.stat-capsule__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: calc(var(--radius-button) - 4px);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    font-size: 0.85rem;
}

.stat-capsule__val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-capsule--primary .stat-capsule__icon { color: #8b5cf6; background: color-mix(in srgb, #8b5cf6 10%, transparent); }
.stat-capsule--success .stat-capsule__icon { color: #10b981; background: color-mix(in srgb, #10b981 10%, transparent); }

/* ------ MODERN TASARIM KÜÇÜK ROZETLER ------ */
.modern-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px; 
    padding: 4px 8px;
    border-radius: var(--radius-button);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-surface-2);
    color: var(--color-muted);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.modern-badge i { font-size: 0.85rem; }

.badge-neutral { background: var(--color-surface-2); }
.badge-author { color: var(--color-text); text-decoration: none; max-width: 150px; }
.badge-text-overflow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100px; vertical-align: middle; }
.badge-author:hover { color: var(--color-primary); border-color: var(--primary-color); }

/* Detay Butonu Ortak */
.feed-card__details-btn {
    min-width: 120px; 
    min-height: 38px; 
    flex: 0 0 auto;
    padding: 0 16px;
}

/* Light Tema İçin Renk Düzenlemesi */
[data-theme="light"] .feed-card { background-color: var(--color-surface); border-color: var(--border-color-strong); }
[data-theme="light"] .stat-capsule, [data-theme="light"] .modern-badge { border-color: var(--border-color-strong); background-color: var(--color-surface); }

/* =========================
   MOBİL KUSURSUZ UYUMLULUK (Responsive)
========================= */
@media (max-width: 768px) {
    .feed-list {
        /* Kartlar arası mesafe mobilde DİKEY mobil boşluk değişkenine bağlandı */
        gap: var(--padding-y-mobile, 16px); 
    }
}

@media (max-width: 640px) {
    /* YENİ: DİNAMİK X ve Y İÇ BOŞLUK (MOBİL - KIRMIZI ÇİZGİLER) */
    .feed-card { 
        flex-direction: column; 
        gap: 12px; 
        padding: var(--padding-y-mobile, 16px) var(--padding-x-mobile, 12px); 
    }
    
    /* MODERN TASARIM MOBİL: Metrikler Artık Yana Diziliyor */
    .feed-card--modern .feed-card__metrics {
        flex-direction: row; 
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px; 
        margin-bottom: 4px;
        gap: 8px;
    }
    
    .feed-card--modern .metric-box {
        flex-direction: row; 
        gap: 6px;
        padding: 6px 12px;
        flex: 1; 
        line-height: 1;
    }
    .feed-card--modern .metric-box .metric-val { font-size: 1rem; }
    .feed-card--modern .metric-box .metric-lbl { font-size: 0.8rem; }
    
    /* Modern Tasarım Rozetleri: Mobilde Alta Kayar */
    .modern-badges-group { 
        width: 100%; 
        justify-content: flex-start;
        margin-bottom: 8px; 
    }

    /* Klasik Tasarım Stat Kapsülleri */
    .stat-capsule {
        flex: 1 1 auto; 
        padding: 0 6px; 
        min-height: 36px;
    }
    .stat-capsule__icon {
        width: 20px; height: 20px; font-size: 0.8rem; 
    }
    .stat-capsule__val { font-size: 0.85rem; }

    /* Alt Satır Genel (Butonların Kaymasını Önler) */
    .feed-card__bottom-row { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
    }
    
    .feed-card__stats-group { 
        justify-content: flex-start; 
        width: 100%; 
        gap: 6px; 
    }
    
    .feed-card__details-btn { 
        width: 100%; 
        justify-content: center; 
    }
}