.news-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 130px 20px 40px;
    min-height: 90vh;
}

.news-title {
    font-size: 56px;
    line-height: 1;
    letter-spacing: -2px;
    margin: 0 0 12px;
}

.news-sub {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 32px;
}

/* Filtre + arama */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 7px 16px;
    border-radius: 999px;
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.news-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.news-chip[aria-pressed="true"] {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #fff;
}

.news-count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
}

.news-chip[aria-pressed="true"] .news-count {
    color: #93c5fd;
}

.news-search {
    flex: 0 1 260px;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    padding: 8px 16px;
    font: 400 14px 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.news-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.news-search:focus {
    outline: none;
    border-color: #3b82f6;
}

.news-chip:focus-visible,
.news-card:focus-visible,
.news-modal-close:focus-visible,
.news-nav:focus-visible,
.news-share:focus-visible,
.news-search:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Kartlar */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.news-card {
    --accent: #06b6d4;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.news-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.news-thumb {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.news-card.featured .news-thumb {
    flex: 0 0 50%;
    aspect-ratio: auto;
    min-height: 260px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

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

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent, #06b6d4);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.news-modal .news-tag {
    background: #06b6d4;
}

.news-info {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.news-meta {
    font-size: 12px;
    color: #8b929e;
    display: flex;
    gap: 8px;
}

.news-meta b {
    color: var(--accent, #3b82f6);
    font-weight: 700;
}

.news-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-family: 'Righteous', cursive;
    font-weight: 400;
}

.news-card.featured h2 {
    font-size: 28px;
}

.news-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.news-empty {
    grid-column: 1 / -1;
    color: #8b929e;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.news-empty p {
    margin: 0;
}

/* Yükleniyor iskeleti */
.news-card.skeleton {
    min-height: 220px;
    cursor: default;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%);
    background-size: 300% 100%;
    animation: shimmer 1.4s linear infinite;
}

.news-card.skeleton:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.news-card.featured.skeleton {
    min-height: 260px;
}

@keyframes shimmer {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0 0;
    }
}

/* Detay penceresi */
.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal[hidden] {
    display: none;
}

.news-modal-box {
    position: relative;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.news-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

.news-modal .news-thumb {
    aspect-ratio: 16 / 8;
}

.news-modal-text {
    padding: 22px 26px 24px;
}

.news-modal-text h2 {
    font: 400 28px 'Righteous', cursive;
    margin: 6px 0 14px;
}

.news-modal-text p {
    color: #b4b8c0;
    line-height: 1.75;
    margin: 0 0 12px;
    max-width: 65ch;
    user-select: text;
}

.news-share {
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 6px 14px;
    font: 600 12px 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.news-share:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.news-modal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-nav {
    background: #121212;
    border: 0;
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: 600 14px 'Inter', sans-serif;
    transition: background 0.2s;
}

.news-nav:hover {
    background: #1a1a1a;
}

.news-nav.next {
    text-align: right;
    grid-column: 2;
}

.news-nav small {
    color: #8b929e;
    font-weight: 400;
    font-size: 12px;
}

.news-nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-title {
        font-size: 40px;
    }

    .news-search {
        flex-basis: 100%;
    }

    .news-card.featured {
        flex-direction: column;
    }

    .news-card.featured .news-thumb {
        flex: none;
        aspect-ratio: 16 / 7;
        min-height: 0;
    }

    .news-card.featured h2 {
        font-size: 22px;
    }

    .news-modal-text {
        padding: 18px 20px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .news-card,
    .news-modal-box,
    .news-thumb img,
    .news-card.skeleton {
        transition: none;
        animation: none;
    }

    .news-card:hover,
    .news-card:hover .news-thumb img {
        transform: none;
    }
}
