/**
 * Haberler liste sayfası
 */

.news-list-page {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.news-list-intro {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.news-list-intro__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #32439f;
    background: #eef1fb;
    border: 1px solid rgba(50, 67, 159, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
}

.news-list-intro__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1e2a6b;
    line-height: 1.2;
}

.news-list-intro__lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b;
}

.news-list-intro__count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.news-list-intro__count strong {
    color: #32439f;
    font-weight: 400;
}

/* Grid */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Kart */
.news-list-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(50, 67, 159, 0.14);
    border-color: rgba(50, 67, 159, 0.18);
    text-decoration: none;
    color: inherit;
}

.news-list-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.news-list-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-list-card:hover .news-list-card__media img {
    transform: scale(1.04);
}

.news-list-card__date-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(50, 67, 159, 0.08);
}

.news-list-card__day {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: #32439f;
}

.news-list-card__month {
    margin-top: 0.1rem;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.news-list-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.15rem 1.2rem 1.2rem;
}

.news-list-card__title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #1e2a6b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-list-card:hover .news-list-card__title {
    color: #32439f;
}

.news-list-card__excerpt {
    margin: 0 0 1rem;
    flex: 1 1 auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.news-list-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.news-list-card__meta i {
    color: #32439f;
    font-size: 0.7rem;
}

.news-list-card__arrow {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef1fb;
    color: #32439f;
    font-size: 0.7rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-list-card:hover .news-list-card__arrow {
    background: #32439f;
    color: #fff;
    transform: translateX(2px);
}

/* Boş durum */
.news-list-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #64748b;
}

.news-list-empty i {
    font-size: 2rem;
    color: #32439f;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.news-list-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 400;
    color: #1e2a6b;
}

.news-list-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Sayfalama */
.news-list-pagination {
    margin-top: 2.5rem;
}

.news-pager__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    padding: 1.1rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.news-pager__summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
}

.news-pager__summary strong,
.news-pager__count {
    color: #32439f;
    font-weight: 400;
}

.news-pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    color: #32439f;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.news-pager__link:hover {
    color: #1e2a6b;
    background: #eef1fb;
    border-color: rgba(50, 67, 159, 0.22);
    transform: translateY(-1px);
}

.news-pager__item--active .news-pager__link {
    color: #fff;
    background: linear-gradient(135deg, #32439f 0%, #1e2a6b 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(50, 67, 159, 0.28);
}

.news-pager__item--disabled .news-pager__link {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
}

.news-pager__link--nav {
    min-width: 2.35rem;
    padding: 0;
}

.news-pager__link--nav i {
    font-size: 0.72rem;
}

.news-pager__link--dots {
    min-width: auto;
    padding: 0 0.35rem;
    color: #94a3b8;
    background: transparent;
    border-color: transparent;
    letter-spacing: 0.12em;
}

@media (max-width: 767px) {
    .news-pager__bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .news-pager__list {
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    .news-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .news-list-grid {
        grid-template-columns: 1fr;
    }

    .news-list-card__media {
        aspect-ratio: 16 / 9;
    }
}
