/* ==========================================================================
   Yapay Zekâ Gündemi (/haberler) — liste ve haber detayı
   Renkler yalnız 00-settings.css token'larından gelir.
   ========================================================================== */

.news-page {
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
}

.news-feed-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption);
    font-weight: 600;
    text-decoration: none;
}

.news-feed-link:hover,
.news-feed-link:focus-visible {
    color: var(--color-brand);
}

/* --- Liste düzeni: akış + yan sütun --- */

.news-pill-bar {
    margin-bottom: 1.25rem;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.news-main {
    min-width: 0;
}

/* --- Gün gruplu zaman akışı --- */

.news-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.news-day {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.news-day__label {
    position: sticky;
    top: 96px;
    margin: 0;
    padding-top: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-family-body);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.news-day__list {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.news-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 3rem 1rem 1.25rem;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.news-row + .news-row {
    border-top: 1px solid var(--color-border);
}

.news-row:hover {
    background: var(--color-surface-subtle);
}

.news-row--featured::before {
    content: "";
    position: absolute;
    top: 0.875rem;
    bottom: 0.875rem;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-brand-action);
}

.news-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
    font-size: 0.8125rem;
}

.news-card__category {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 2px 0.5rem;
    background: var(--color-brand-soft);
    border-radius: var(--radius-pill);
    color: var(--color-brand-strong);
    font-size: var(--font-size-badge);
    font-weight: 700;
    text-decoration: none;
}

.news-card__category:hover,
.news-card__category:focus-visible {
    background: var(--color-brand-soft-strong);
    color: var(--color-brand-strong);
}

.news-row__meta .news-card__category {
    position: relative;
    z-index: 1;
}

.news-row__source {
    color: var(--color-text-muted);
    font-weight: 600;
}

.news-row__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.news-row__title a {
    color: var(--color-text);
    text-decoration: none;
}

/* Satırın tamamı haber bağlantısı */
.news-row__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.news-row:hover .news-row__title a,
.news-row__title a:focus-visible {
    color: var(--color-brand-strong);
}

.news-row__title a:focus-visible {
    outline: none;
}

.news-row:focus-within {
    box-shadow: inset 0 0 0 2px var(--color-focus);
}

.news-row__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-row__arrow {
    position: absolute;
    top: 1rem;
    right: 1.125rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.news-row:hover .news-row__arrow {
    color: var(--color-brand-strong);
    opacity: 1;
    transform: none;
}

/* İlk sayfadaki en yeni haber manşet olarak öne çıkar */
.news-timeline--lead .news-day:first-child .news-row:first-child {
    gap: 0.5rem;
    padding: 1.375rem 3rem 1.375rem 1.5rem;
    background: linear-gradient(180deg, var(--color-brand-soft), transparent 70%);
}

.news-timeline--lead .news-day:first-child .news-row:first-child .news-row__title {
    font-size: 1.5rem;
    line-height: 1.25;
}

.news-timeline--lead .news-day:first-child .news-row:first-child .news-row__summary {
    font-size: 0.9375rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* --- Yan sütun --- */

.news-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-cat-list a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.news-cat-list a span:not(.news-cat-list__count) {
    flex: 1 1 auto;
}

.news-cat-list a:hover,
.news-cat-list a:focus-visible {
    background: var(--color-surface-subtle);
    color: var(--color-text);
}

.news-cat-list a.is-active {
    background: var(--color-brand-soft);
    color: var(--color-brand-strong);
}

.news-cat-list__count {
    min-width: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
}

.news-follow-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4375rem 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.news-follow-link + .news-follow-link {
    border-top: 1px solid var(--color-border);
}

.news-follow-link i {
    color: var(--color-brand-strong);
}

.news-follow-link:hover,
.news-follow-link:focus-visible {
    color: var(--color-brand-strong);
}

.news-pager {
    margin-top: 1.5rem;
}

/* --- Gündem nasıl hazırlanıyor + SSS --- */

.news-about {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.news-about__intro {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.news-about__intro p:last-child {
    margin-bottom: 0;
}

/* --- Haber detayı --- */

.news-header .page-header-component__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption);
}

.news-header .page-header-component__meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.news-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-6);
    align-items: start;
}

.news-article {
    min-width: 0;
}

.news-article__lead {
    margin: 0 0 var(--space-5);
    color: var(--color-text);
    font-size: var(--font-size-lead);
    font-weight: 500;
    line-height: 1.6;
}

.news-article__body {
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
    line-height: 1.75;
}

.news-article__body h2,
.news-article__body h3 {
    margin: 2rem 0 0.625rem;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.news-article__body p,
.news-article__body ul,
.news-article__body ol {
    margin-bottom: var(--space-4);
}

.news-article__body a {
    color: var(--color-brand);
}

.news-source {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.125rem 1.25rem;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.news-source__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--color-brand-soft);
    border-radius: var(--radius-md);
    color: var(--color-brand-strong);
    font-size: 1.25rem;
}

.news-source__body {
    min-width: 0;
}

.news-source__label {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-size-badge);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-source__link {
    color: var(--color-brand);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.news-source__note {
    margin: var(--space-2) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption);
    line-height: 1.6;
}

.news-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.news-share__label {
    margin-right: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--font-size-caption);
    font-weight: 700;
}

.news-sidebar {
    position: sticky;
    top: calc(var(--space-8) + var(--space-4));
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.news-side-card {
    padding: 1.125rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.news-side-card__title {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-family-body);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-tool {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    color: inherit;
    text-decoration: none;
}

.news-tool__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.news-tool__logo {
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
}

.news-tool__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-tool__name {
    color: var(--color-text);
    font-weight: 700;
}

.news-tool__summary {
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption);
    line-height: 1.5;
}

.news-tool__more {
    color: var(--color-brand);
    font-size: var(--font-size-caption);
    font-weight: 700;
}

.news-tool:hover .news-tool__name,
.news-tool:focus-visible .news-tool__name {
    color: var(--color-brand);
}

.news-related {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-related a {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.news-related a:hover,
.news-related a:focus-visible {
    color: var(--color-brand);
}

.news-related span {
    color: var(--color-text-muted);
    font-size: var(--font-size-caption);
}

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

@media (max-width: 991px) {
    .news-article-layout,
    .news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-sidebar {
        position: static;
    }

    /* Mobilde başlıklar üstteki hap çubuğunda; yan sütun tekrar etmesin */
    .news-aside {
        display: none;
    }

    .news-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .news-pill-bar {
        display: none;
    }
}

@media (max-width: 767px) {
    .news-day {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.625rem;
    }

    .news-day__label {
        position: static;
        padding-top: 0;
    }

    .news-row {
        padding: 0.875rem 1rem;
    }

    .news-row__arrow {
        display: none;
    }

    .news-row__title {
        font-size: 1.0625rem;
    }

    .news-timeline--lead .news-day:first-child .news-row:first-child {
        padding: 1.125rem 1rem;
    }

    .news-timeline--lead .news-day:first-child .news-row:first-child .news-row__title {
        font-size: 1.3125rem;
    }
}

@media (max-width: 576px) {
    .news-share .btn-yz {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-row,
    .news-row__arrow,
    .news-cat-list a {
        transition: none;
    }
}
