/* assets/css/components.css */

/* --- SAYFA BAŞLIKLARI --- */
.page-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
}

.page-title span {
    color: var(--primary-color);
}

.page-meta {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* --- HABER GRID YAPISI --- */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- HABER KARTI (Ortak) --- */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.news-card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-heading);
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-desc {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--bg-surface);
}

/* --- BOŞ DURUM (Empty State) --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}
.empty-state h3 {
    color: var(--text-heading);
    margin-bottom: 10px;
}