/* ============================================================
   HaberTanik — Modern Upgrade CSS (May 2026)
   Eklenen: kategori bloklar (cat-modern), detay sidebar modern,
            mini newsletter widget, mobil dağınıklık düzeltmeleri.
   Yüklenme: includes/header.php içinden link ile çağrılır.
   ============================================================ */

/* === Kategori bloklar — modern tasarım === */
.cat-modern {
    margin-bottom: 28px;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 18px 18px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

:root[data-theme="dark"] .cat-modern {
    background: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.cat-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none !important;
    margin-bottom: 16px;
    padding-bottom: 12px;
    position: relative;
}

.cat-section-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cat-color, #dc2626) 0%, var(--cat-color, #dc2626) 80px, transparent 80px, transparent 100%);
}

.cat-section-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--cat-color, #dc2626);
    border-radius: 2px;
}

.cat-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    flex: 1;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.cat-section-title a {
    color: inherit;
    text-decoration: none;
}

.cat-section-title a:hover {
    color: var(--cat-color, #dc2626);
}

.cat-section-header .section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-color, #dc2626);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--cat-color, #dc2626) 10%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}

.cat-section-header .section-more:hover {
    background: var(--cat-color, #dc2626);
    color: #fff;
}

/* Featured card big — modern overlay */
.cat-modern-featured .featured-card-big {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 11;
    background: #111;
}

.cat-modern-featured .featured-card-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.cat-modern-featured .featured-card-big:hover img {
    transform: scale(1.05);
}

.cat-modern-featured .featured-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .85) 100%);
    color: #fff;
}

.cat-modern-featured .featured-card-overlay h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.cat-feat-excerpt {
    margin: 6px 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-feat-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
}

.cat-feat-meta i {
    margin-right: 4px;
}

/* Kategori badge */
.cat-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--cat-color, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.cat-card-badge-lg {
    font-size: 12px;
    padding: 6px 12px;
    top: 16px;
    left: 16px;
}

/* Featured side list — mini thumbs */
.cat-modern-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.cat-modern-featured .cat-featured-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-list-link-modern {
    display: flex;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background .2s;
}

.cat-list-link-modern:hover {
    background: color-mix(in srgb, var(--cat-color, #dc2626) 8%, transparent);
}

.cat-list-thumb {
    flex: 0 0 90px;
    height: 64px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

.cat-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.cat-list-link-modern:hover .cat-list-thumb img {
    transform: scale(1.07);
}

.cat-list-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.cat-list-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text, #1f2937);
}

.cat-list-link-modern:hover h4 {
    color: var(--cat-color, #dc2626);
}

.cat-list-meta {
    font-size: 11px;
    color: var(--text-muted, #888);
}

/* Bottom 6-card grid */
.cat-modern-grid .news-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.cat-modern-grid .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.cat-modern-grid .news-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cat-modern-grid .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.cat-modern-grid .news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.cat-modern-grid .news-card-body {
    padding: 12px 14px 14px;
}

.cat-modern-grid .news-card-body h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text, #1f2937);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-modern-grid .news-card-body a {
    text-decoration: none;
    color: inherit;
}

.cat-modern-grid .news-card:hover h3 {
    color: var(--cat-color, #dc2626);
}

.cat-card-meta {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted, #888);
}

.cat-card-meta i {
    margin-right: 4px;
}

/* === Detay sidebar modern (scroll YOK, doğal akış) === */
.detail-sidebar.modern-sidebar {
    align-self: flex-start;
    padding-right: 4px;
}

.detail-sidebar.modern-sidebar .widget {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    border: 1px solid rgba(0, 0, 0, .04);
    transition: box-shadow .2s;
}

:root[data-theme="dark"] .detail-sidebar.modern-sidebar .widget {
    background: #1f2937;
    border-color: rgba(255, 255, 255, .06);
}

.detail-sidebar.modern-sidebar .widget:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.detail-sidebar.modern-sidebar .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.detail-sidebar.modern-sidebar .widget-title,
.detail-sidebar.modern-sidebar .widget-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1f2937);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-sidebar.modern-sidebar .widget-title i,
.detail-sidebar.modern-sidebar .widget-header h3 i {
    color: var(--accent, #dc2626);
    font-size: 14px;
}

/* Mini newsletter widget */
.widget-newsletter-mini .wnl-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-light, #6b7280);
    line-height: 1.5;
}

.widget-newsletter-mini .wnl-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-newsletter-mini .wnl-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--text, #1f2937);
    outline: none;
    transition: border-color .2s;
}

.widget-newsletter-mini .wnl-input:focus {
    border-color: var(--accent, #dc2626);
}

.widget-newsletter-mini .wnl-btn {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    background: var(--accent, #dc2626);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s, transform .1s;
}

.widget-newsletter-mini .wnl-btn:hover {
    background: color-mix(in srgb, var(--accent, #dc2626) 88%, #000);
}

.widget-newsletter-mini .wnl-btn:active {
    transform: scale(0.98);
}

.widget-newsletter-mini .wnl-status {
    font-size: 12px;
    min-height: 16px;
}

.widget-newsletter-mini .wnl-status.ok {
    color: #16a34a;
}

.widget-newsletter-mini .wnl-status.err {
    color: #dc2626;
}

/* === Mobil iyileştirmeler === */
@media (max-width: 992px) {
    .cat-modern-featured {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cat-modern-featured .featured-card-big {
        aspect-ratio: 16 / 10;
    }

    .cat-modern-featured .featured-card-overlay h3 {
        font-size: 19px;
    }

    .detail-sidebar.modern-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {

    /* Genel kart sıkışıklığını azalt */
    .cat-modern {
        padding: 14px 12px 18px;
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .cat-section-title {
        font-size: 18px;
    }

    .cat-section-header .section-more {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* 3 sütundan 2 sütuna */
    .news-grid.news-grid-3,
    .cat-modern-grid.news-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .cat-modern-grid .news-card-body {
        padding: 10px 12px 12px;
    }

    .cat-modern-grid .news-card-body h3 {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    /* Featured başlık küçült */
    .cat-modern-featured .featured-card-overlay h3 {
        font-size: 17px;
        line-height: 1.25;
    }

    .cat-feat-excerpt {
        display: none;
    }

    /* mobilde gizle */
    .cat-card-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }

    .cat-card-badge-lg {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Side list küçült */
    .cat-list-thumb {
        flex-basis: 70px;
        height: 50px;
    }

    .cat-list-text h4 {
        font-size: 13px;
    }

    /* Detay sidebar — yorum/anket altında düzenli */
    .detail-sidebar.modern-sidebar .widget {
        padding: 14px;
        margin-bottom: 12px;
    }

    /* Header font scaling */
    body {
        font-size: 14px;
    }

    /* News detail görseli mobile düzeltme */
    .news-detail-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Tap hedef boyutu — minimum 44px */
    .cat-list-link-modern,
    .widget-news-item,
    .section-more {
        min-height: 44px;
    }
}

@media (max-width: 600px) {

    /* Çok küçük ekran: 1 sütun */
    .news-grid.news-grid-3,
    .cat-modern-grid.news-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .cat-modern-grid .news-card-image {
        aspect-ratio: 16 / 9;
    }

    .cat-modern-grid .news-card-body h3 {
        font-size: 15px;
    }

    /* Featured stack */
    .cat-modern-featured .featured-card-overlay h3 {
        font-size: 16px;
    }

    .cat-modern-featured .featured-card-overlay {
        padding: 14px 12px 12px;
    }

    /* Side list 1-line title */
    .cat-list-text h4 {
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Container padding */
    .container,
    .main-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 480px) {
    .cat-section-title {
        font-size: 16px;
    }

    .cat-modern-featured .featured-card-big {
        aspect-ratio: 4 / 3;
    }
}

/* === Modern polish for index.php inline category blocks === */
.cat-card-zoom {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cat-card-zoom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
}

.cat-card-zoom .news-card-image,
.cat-card-zoom .cat-mag-img,
.cat-card-zoom .cat-strip-img,
.cat-card-zoom .cat-split-img {
    overflow: hidden;
}

.cat-card-zoom .news-card-image img,
.cat-card-zoom .cat-mag-img img,
.cat-card-zoom .cat-strip-img img,
.cat-card-zoom .cat-split-img img,
.cat-featured-main.cat-card-zoom img {
    transition: transform .5s ease;
}

.cat-card-zoom:hover .news-card-image img,
.cat-card-zoom:hover .cat-mag-img img,
.cat-card-zoom:hover .cat-strip-img img,
.cat-card-zoom:hover .cat-split-img img,
.cat-featured-main.cat-card-zoom:hover img {
    transform: scale(1.06);
}

.cat-pill,
.cat-card-pill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.block-section .section-header h2 {
    font-weight: 800;
    letter-spacing: -.4px;
}

.block-section .section-header .section-more {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 18px;
    text-decoration: none;
    transition: all .2s;
}

.block-section .section-header .section-more:hover {
    transform: translateX(3px);
}

.news-card {
    border-radius: 10px;
    transition: transform .25s, box-shadow .25s;
    background: var(--card-bg, #fff);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.news-card .news-card-image img {
    transition: transform .4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cat-magazine-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .cat-mag-big {
        display: block;
    }

    .cat-mag-big .cat-mag-img {
        aspect-ratio: 16 / 10;
    }

    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .cat-split-grid {
        grid-template-columns: 1fr !important;
    }

    .cat-split-main,
    .cat-split-side {
        width: 100%;
    }

    .cat-wide-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .cat-strip-card .cat-strip-img {
        aspect-ratio: 16 / 10;
    }

    .spor-layout {
        grid-template-columns: 1fr !important;
    }

    .spor-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .header-top,
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .main-header {
        padding: 8px 0;
    }

    .logo img {
        max-height: 38px !important;
        height: auto !important;
    }

    .manset-main h2,
    .headline-main h2 {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    .news-card a,
    .cat-list-link,
    .cat-split-item,
    .spor-numbered-item {
        min-height: 44px;
    }

    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .news-detail h1,
    .news-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .news-detail .lead,
    .news-excerpt {
        font-size: 15px !important;
    }

    .news-detail .article-content,
    .article-body,
    #articleContent {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .main-container,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .block-section {
        padding: 14px 12px !important;
    }
}

@media (max-width: 600px) {
    .news-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .cat-wide-strip {
        grid-template-columns: 1fr !important;
    }

    .spor-grid {
        grid-template-columns: 1fr !important;
    }

    .news-meta-info {
        flex-wrap: wrap;
        gap: 8px !important;
        font-size: 12px !important;
    }

    .news-share-buttons {
        flex-wrap: wrap;
    }
}

@media (hover: none) {

    .cat-card-zoom:hover,
    .news-card:hover {
        transform: none;
        box-shadow: none;
    }

    .cat-card-zoom:hover img,
    .news-card:hover img {
        transform: none !important;
    }
}


/* === SON DAKIKA ticker - menu altinda sabit/modern === */
.breaking-news-bar.breaking-under-nav {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 60%, #ef4444 100%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 2px solid #991b1b;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .18);
    position: relative;
    z-index: 95;
    overflow: hidden;
}

.breaking-news-bar.breaking-under-nav .breaking-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 42px;
    line-height: 42px;
}

.breaking-news-bar.breaking-under-nav .breaking-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7f1d1d;
    color: #fff;
    padding: 0 16px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    box-shadow: 4px 0 8px rgba(0, 0, 0, .15);
    z-index: 2;
}

.breaking-news-bar.breaking-under-nav .breaking-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 10px solid #7f1d1d;
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
}

.breaking-news-bar.breaking-under-nav .breaking-label i {
    animation: breakingPulse 1.4s ease-in-out infinite;
}

@keyframes breakingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .7;
    }
}

.breaking-news-bar.breaking-under-nav .breaking-slider {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    margin-left: 14px;
}

.breaking-news-bar.breaking-under-nav .breaking-track {
    display: inline-flex;
    gap: 32px;
    white-space: nowrap;
    animation: breakingScroll 60s linear infinite;
    padding-left: 8px;
    will-change: transform;
}

.breaking-news-bar.breaking-under-nav:hover .breaking-track {
    animation-play-state: paused;
}

@keyframes breakingScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.breaking-news-bar.breaking-under-nav .breaking-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breaking-news-bar.breaking-under-nav .breaking-time {
    background: rgba(0, 0, 0, .25);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.breaking-news-bar.breaking-under-nav .breaking-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.breaking-news-bar.breaking-under-nav .breaking-item a:hover {
    color: #fef08a;
    text-decoration: underline;
}

/* Sticky header varsa, ticker da nav ile birlikte yapissin */
.site-header.sticky-enabled .breaking-news-bar.breaking-under-nav {
    position: sticky;
    top: 0;
    z-index: 94;
}

@media (max-width: 768px) {
    .breaking-news-bar.breaking-under-nav .breaking-inner {
        height: 36px;
        line-height: 36px;
    }

    .breaking-news-bar.breaking-under-nav .breaking-label {
        padding: 0 10px;
        font-size: 11px;
        gap: 5px;
    }

    .breaking-news-bar.breaking-under-nav .breaking-label::after {
        border-left-width: 8px;
        border-top-width: 18px;
        border-bottom-width: 18px;
        right: -8px;
    }

    .breaking-news-bar.breaking-under-nav .breaking-item {
        font-size: 12px;
    }

    .breaking-news-bar.breaking-under-nav .breaking-track {
        animation-duration: 45s;
        gap: 24px;
    }
}


/* === MANSET SIDEBAR LIST - Modern thumbnail + title === */
.manset-sidebar-list .manset-list-item {
    display: flex !important;
    align-items: stretch;
    gap: 12px;
    padding: 10px !important;
    text-decoration: none;
    border-bottom: 1px solid #eef0f3;
    transition: background .2s ease, transform .2s ease;
    position: relative;
}

.manset-sidebar-list .manset-list-item:hover {
    background: #f7f9fc;
}

.manset-sidebar-list .manset-list-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9eef3;
    position: relative;
}

.manset-sidebar-list .manset-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.manset-sidebar-list .manset-list-item:hover .manset-list-thumb img {
    transform: scale(1.08);
}

.manset-sidebar-list .manset-list-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.manset-sidebar-list .manset-list-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #dc2626;
    margin-bottom: 4px;
    line-height: 1;
}

.manset-sidebar-list .manset-list-item h4 {
    font-size: 13.5px !important;
    font-weight: 700;
    line-height: 1.35 !important;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manset-sidebar-list .manset-list-item:hover h4 {
    color: #dc2626;
}

/* Mobilde sidebar listesi GORUNSUN (sticky degil, normal akis) - resimli modern liste */
@media (max-width: 991px) {
    .manset-sidebar-list {
        display: flex !important;
        flex-direction: column;
        margin-top: 12px;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
        border: 1px solid #e7eaf0;
    }

    .manset-sidebar-list .manset-list-item {
        padding: 10px 12px !important;
    }

    .manset-sidebar-list .manset-list-thumb {
        flex: 0 0 86px;
        width: 86px;
        height: 60px;
    }

    .manset-sidebar-list .manset-list-item h4 {
        font-size: 13px !important;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .manset-sidebar-list .manset-list-thumb {
        flex: 0 0 78px;
        width: 78px;
        height: 56px;
    }

    .manset-sidebar-list .manset-list-item h4 {
        font-size: 12.5px !important;
    }
}


/* ═══════════════════════════════════════════════
   FIKSTÜR WIDGET
   ═══════════════════════════════════════════════ */
.widget-fixtures {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7eaf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
    margin-bottom: 18px;
}

.widget-fixtures .widget-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    padding: 12px 16px;
}

.widget-fixtures .widget-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-fixtures .widget-header h3 i {
    font-size: 16px;
}

.fixtures-list {
    padding: 4px 0;
}

.fix-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background .2s;
}

.fix-row:last-child {
    border-bottom: none;
}

.fix-row:hover {
    background: #f8fafc;
}

.fix-row.is-live {
    background: linear-gradient(90deg, #fef2f2 0%, #fff 50%);
}

.fix-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 4px 0;
    text-align: center;
    line-height: 1.1;
}

.fix-row.is-live .fix-meta {
    background: #fee2e2;
}

.fix-day {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .4px;
}

.fix-date {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.fix-row.is-live .fix-date {
    color: #b91c1c;
}

.fix-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.fix-team {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fix-team:first-child {
    justify-content: flex-end;
    text-align: right;
}

.fix-team:last-child {
    justify-content: flex-start;
    text-align: left;
}

.fix-team-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.fix-time {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.fix-score {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    background: #0f172a;
    color: #fff;
    padding: 3px 9px;
    border-radius: 5px;
    white-space: nowrap;
    letter-spacing: .5px;
}

.fix-score span {
    opacity: .5;
    margin: 0 2px;
}

.fix-row.is-live .fix-score {
    background: #dc2626;
    animation: fixLivePulse 1.5s ease-in-out infinite;
}

@keyframes fixLivePulse {
    50% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, .15);
    }
}

.fix-week {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.fix-status-live {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 9px;
    color: #dc2626;
    font-weight: 800;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.fix-status-live i {
    font-size: 6px;
    animation: fixLiveDot 1s infinite;
}

@keyframes fixLiveDot {
    50% {
        opacity: .3;
    }
}


/* ═══════════════════════════════════════════════
   KÖŞE YAZARLARI WIDGET
   ═══════════════════════════════════════════════ */
.widget-columnists {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7eaf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
    margin-bottom: 18px;
}

.widget-columnists .widget-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    padding: 12px 16px;
}

.widget-columnists .widget-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.columnists-list {
    padding: 4px 0;
}

.columnist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.columnist-item:last-child {
    border-bottom: none;
}

.columnist-item:hover {
    background: #faf7ff;
    transform: translateX(2px);
}

.columnist-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    border: 2px solid #ede9fe;
}

.columnist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.columnist-text {
    flex: 1;
    min-width: 0;
}

.columnist-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.columnist-item:hover .columnist-name {
    color: #6d28d9;
}

.columnist-col {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {

    .widget-fixtures .widget-header h3,
    .widget-columnists .widget-header h3 {
        font-size: 13px;
    }

    .fix-team-name {
        font-size: 12px;
    }

    .fix-row {
        padding: 9px 12px;
    }
}

/* ===================================================== */
/* === KATEGORI BLOK: cards4 (Trend Haberler tarzı) ==== */
/* ===================================================== */
.cat-block-cards4 .cat-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
    gap: 12px;
}

.cat-block-cards4 .cat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-block-cards4 .cat-header-bar {
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--cat-color, #dc2626);
    border-radius: 3px;
}

.cat-block-cards4 .cat-header-strip h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #111827;
    line-height: 1.2;
}

.cat-block-cards4 .cat-header-strip h2 a {
    color: inherit;
    text-decoration: none;
}

.cat-block-cards4 .cat-header-strip h2 i {
    color: var(--cat-color, #dc2626) !important;
    margin-right: 4px;
}

.cat-block-cards4 .cat-subnav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-block-cards4 .cat-subnav-pill {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
}

.cat-block-cards4 .cat-subnav-pill:hover {
    background: var(--cat-color, #dc2626);
    color: #fff;
}

.cat-block-cards4 .section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-color, #dc2626);
    text-decoration: none;
    white-space: nowrap;
}

.cat-block-cards4 .section-more:hover {
    text-decoration: underline;
}

.cat-block-cards4 .cat-cards4-grid {
    gap: 18px;
}

.cat-block-cards4 .news-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.cat-block-cards4 .news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    border-color: var(--cat-color, #dc2626);
}

.cat-block-cards4 .news-card-image {
    display: block;
    aspect-ratio: 16/10;
    height: auto !important;
    /* news-card-sm height:140px override */
    overflow: hidden;
    position: relative;
}

.cat-block-cards4 .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.cat-block-cards4 .news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.cat-block-cards4 .news-card-body {
    padding: 12px 14px 14px;
}

.cat-block-cards4 .news-card-body h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-block-cards4 .news-card-body a {
    text-decoration: none;
    color: inherit;
}

.cat-block-cards4 .news-card-body a:hover h3 {
    color: var(--cat-color, #dc2626);
}

@media (max-width: 992px) {
    .cat-block-cards4 .cat-cards4-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-block-cards4 .cat-cards4-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-block-cards4 .cat-header-strip h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cat-block-cards4 .cat-cards4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================================== */
/* === MOBİL/TABLET: Manşet üstte + kategori sırası DOM === */
/* ========================================================== */
@media (max-width: 992px) {
    .home-container {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Manşet en üstte */
    .home-container .manset-section {
        order: 1 !important;
        margin: 12px 0 16px !important;
    }

    /* Sonra üst şerit (varsa) */
    .home-container .top-news-strip {
        order: 2 !important;
    }

    /* Sonra ana grid (sidebar+main) */
    .home-container .home-layout {
        order: 3 !important;
    }

    /* Tüm kategori blokları DOM sırasını koruyarak en altta — admin homepage_order ile gelir */
    .home-container .section-block,
    .home-container .cat-block,
    .home-container .block-section {
        order: 4 !important;
    }

    /* Mobilde manşet sidebar list zaten gizli (style.css 6575); slider tüm genişlikte */
    .manset-hero-layout {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
}

/* === MOBİL: Manşet taşma fix === */
@media (max-width: 992px) {
    .manset-section,
    .manset-hero-layout,
    .manset-slider-wrap,
    .manset-slider {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .manset-slide,
    .manset-slide-img {
        max-width: 100% !important;
    }

    .manset-slide-img img {
        max-width: 100% !important;
        width: 100% !important;
    }

    body,
    html {
        overflow-x: hidden;
    }
}


/* === MOBİL: İlgili haber + detay sidebar taşma fix === */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 12px !important;
    }

    .related-card,
    .related-card-img,
    .related-card-img img,
    .related-card-body {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .news-detail-layout,
    .detail-sidebar,
    .detail-sidebar.modern-sidebar,
    .news-content-area,
    .news-detail-main {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .news-content-area img,
    .news-content-area iframe,
    .news-content-area video,
    .news-content-area table {
        max-width: 100% !important;
        height: auto !important;
    }
}
