/* ===================================
   Haberler Sayfasi Stilleri
   =================================== */

/* --- HABER HEADER --- */
.news-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 40px;
}

.news-header h1 {
    font-size: 2.4rem;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: block;
}

.news-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 25px 0;
}

/* --- FILTRE BUTONLARI --- */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
}

.filter-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: none;
    box-shadow: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* --- HABER LISTESI (GRID) --- */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.news-pagination {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.news-load-more-btn {
    padding: 10px 20px;
    border: 2px solid #dc2626;
    border-radius: 999px;
    background: white;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.news-load-more-btn:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.news-load-more-btn:disabled {
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
    box-shadow: none;
}

.news-pagination-info {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

/* --- HABER KARTI (DIKEY GRID KART) --- */
.news-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.news-card-picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 1200 / 675;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.news-card-image-placeholder {
    width: 100%;
    aspect-ratio: 1200 / 675;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #dc2626 100%);
}

/* Kaynak bazli placeholder renkleri */
.news-card-image-placeholder.source-bg-chess-com {
    background: linear-gradient(135deg, #4a6741 0%, #769656 50%, #a3c47a 100%);
}

.news-card-image-placeholder.source-bg-fide {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #f87171 100%);
}

.news-card-image-placeholder.source-bg-chess24 {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #93c5fd 100%);
}

.news-card-image-placeholder.source-bg-tsf {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #fb923c 100%);
}

.news-card-image-placeholder.source-bg-chessbase {
    background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #f59e0b 100%);
}

.news-card-image-placeholder.source-bg-lichess {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 50%, #a3a3a3 100%);
}

.news-card-body {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}

/* --- KAYNAK BADGE --- */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.source-badge.chess-com {
    background: rgba(118, 150, 86, 0.1);
    color: #769656;
    border-color: rgba(118, 150, 86, 0.3);
}

.source-badge.fide {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.source-badge.chess24 {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.source-badge.tsf {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.2);
}

.source-badge.chessbase {
    background: rgba(180, 83, 9, 0.08);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.2);
}

.source-badge.lichess {
    background: rgba(74, 74, 74, 0.08);
    color: #4a4a4a;
    border-color: rgba(74, 74, 74, 0.2);
}

.news-card-date {
    font-size: 0.78rem;
    color: #94a3b8;
}

.news-card-reading-time {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.news-external-icon {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: auto;
}

/* --- OKU BUTONU --- */
.news-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #dc2626;
    margin-left: auto;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.news-card:hover .news-read-more {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* --- KAYNAK ATTRIBUTION KUTUSU --- */
.news-source-attribution {
    margin-top: 40px;
    padding: 20px 25px;
    border-left: 4px solid #dc2626;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
}

.attribution-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
}

.attribution-source {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.attribution-note {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0 0 12px 0;
    font-style: italic;
}

.attribution-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.attribution-link:hover {
    color: #991b1b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- SKELETON HABER --- */
.skeleton-news {
    cursor: default;
    pointer-events: none;
}

.skeleton-news:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- MOBIL --- */
@media screen and (max-width: 768px) {
    .news-header {
        padding: 25px 20px;
    }

    .news-header h1 {
        font-size: 1.8rem;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-card-title {
        font-size: 1rem;
    }

    .news-source-attribution {
        padding: 15px 20px;
    }
}
