/* Haber kartı — fotoğrafsız kapak (gradyan + kaynak monogramı), koyu tema */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.news-grid > * {
    min-width: 0;
    max-width: 100%;
}

.news-grid--dense {
    grid-flow: row dense;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .news-grid--dense {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .news-grid--dense {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--news-card-bg, #111827);
    border: 1px solid var(--news-card-border, #1f2937);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(218, 165, 32, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.news-card:focus-visible {
    outline: 2px solid var(--primary-orange, #DAA520);
    outline-offset: 2px;
}

/* ---- Kapak ---- */
.card-cover {
    position: relative;
    aspect-ratio: 16 / 8;
    display: flex;
    align-items: flex-end;
    padding: 14px 16px;
    overflow: hidden;
    color: #fff;
}

.cover--ekonomi {
    background: linear-gradient(135deg, var(--cat-ekonomi-a, #0e3a5d), var(--cat-ekonomi-b, #12735f));
}

.cover--dunya {
    background: linear-gradient(135deg, var(--cat-dunya-a, #3b2a68), var(--cat-dunya-b, #6d3580));
}

.cover--teknoloji {
    background: linear-gradient(135deg, var(--cat-teknoloji-a, #0f4c81), var(--cat-teknoloji-b, #2a9dc9));
}

.cover--spor {
    background: linear-gradient(135deg, var(--cat-spor-a, #7a2e12), var(--cat-spor-b, #c96a1a));
}

.cover--genel {
    background: linear-gradient(135deg, var(--cat-genel-a, #2b3038), var(--cat-genel-b, #4b5563));
}

.cover-monogram {
    position: absolute;
    right: -8px;
    top: -26px;
    font-size: clamp(5rem, 18vw, 9.375rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.13);
    user-select: none;
    pointer-events: none;
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.04) 0 1px,
        transparent 1px 9px
    );
    pointer-events: none;
}

.cover-category {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    padding: 5px 10px;
    border-radius: 4px;
}

/* ---- Gövde ---- */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1;
    min-width: 0;
}

.card-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-secondary, #9ca3af);
}

.card-source img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: none;
}

.card-source time {
    margin-left: auto;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.card-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-primary, #fff);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color 0.2s ease;
}

.news-card:hover .card-title {
    color: var(--primary-orange, #DAA520);
}

.card-summary {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #9ca3af);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--news-card-border, #1f2937);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    gap: 0.75rem;
}

.card-footer .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary, #e5e7eb);
}

.card-footer .go svg {
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.news-card:hover .go svg {
    transform: translateX(3px);
}

.card-footer .domain {
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

.news-card .news-sentiment-badge {
    margin-top: -4px;
}

/* ---- Hero (öne çıkan) ---- */
.news-card-wrap--hero {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .news-card-wrap--hero {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.news-card--hero .card-cover {
    aspect-ratio: 16 / 7;
    min-height: 180px;
}

@media (min-width: 640px) {
    .news-card--hero .card-cover {
        min-height: 220px;
    }
}

.news-card--hero .cover-monogram {
    font-size: clamp(6rem, 22vw, 11rem);
    top: -36px;
}

.news-card--hero .card-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    -webkit-line-clamp: 4;
}

.news-card--hero .card-body {
    padding: 20px;
}

.news-card--hero .hero-badge {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--primary-orange, #DAA520);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Yatay highlight ---- */
.news-card-wrap--horizontal {
    grid-column: 1 / -1;
}

.news-card--horizontal {
    flex-direction: row;
}

.news-card--horizontal .card-cover {
    width: 38%;
    min-width: 140px;
    max-width: 320px;
    aspect-ratio: auto;
    min-height: 200px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .news-card--horizontal {
        flex-direction: column;
    }

    .news-card--horizontal .card-cover {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 8;
        min-height: 0;
    }
}

.news-card--horizontal .card-body {
    justify-content: center;
    padding: 20px 24px;
}

.news-card--horizontal .highlight-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: var(--primary-orange, #DAA520);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Ana sayfa slider ---- */
.news-card--slide {
    width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 10px !important;
}

@media (min-width: 640px) {
    .news-card--slide {
        width: 270px;
    }
}

.news-card--slide .card-cover {
    aspect-ratio: 16 / 8;
}

.news-card--slide .cover-monogram {
    font-size: 5rem;
    top: -18px;
    right: -4px;
}

.news-card--slide .card-body {
    padding: 12px;
}

.news-card--slide .card-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
}

.news-card--slide .card-summary {
    -webkit-line-clamp: 2;
    font-size: 12px;
}

.news-card--slide .card-footer {
    padding-top: 8px;
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .card-footer .go svg {
        transition: border-color 0.15s ease;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card:hover .go svg {
        transform: none;
    }
}
