/**
 * Ana sayfa — modern haber sitesi görünümü
 * Sadece index.php tarafından yüklenir
 */

.page-home {
    background: #eef1f5;
}

.page-home .page-content {
    padding: 24px 0 40px;
}

.page-home .container {
    max-width: 100%;
}

.page-home .breaking-news-bar {
    background: linear-gradient(90deg, #b71c1c 0%, #c62828 100%);
    border-radius: 0;
    padding: 0;
    margin: 0 0 28px;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.25);
    overflow: hidden;
    width: 100%;
}

.page-home .breaking-news-ticker {
    height: 44px;
}

.page-home .breaking-news-ticker .ticker-label {
    background: #0d2137;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 0 18px;
    margin-right: 0;
    border-radius: 0;
    position: relative;
}

.page-home .breaking-news-ticker .ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 10px solid #0d2137;
}

.page-home .breaking-news-ticker .ticker-content-wrapper {
    background: transparent;
}

.page-home .breaking-news-ticker .ticker-content a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
}

.page-home .breaking-news-ticker .ticker-content a:hover {
    text-decoration: underline !important;
    color: #fff !important;
}

/* Editör seçimi grid */
.page-home .top-news-grid {
    gap: clamp(12px, 1.5vw, 20px);
    margin-bottom: 28px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-home .news-card {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.page-home .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.page-home .news-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.page-home .news-card-image img,
.page-home .news-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
    transition: transform 0.4s ease;
}

.page-home .news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.page-home .news-card-image .category-tag {
    background: rgba(198, 40, 40, 0.92);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 2;
}

.page-home .news-card-title {
    padding: 12px 14px 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    color: #1a1a2e !important;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em;
    background: #fff;
}

/* Manşet slider */
.page-home .main-content-grid {
    gap: 24px;
    margin-bottom: 36px;
}

.page-home .main-slider-container {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-home .slider-wrapper-outer {
    height: 480px;
    border-radius: 12px 12px 0 0;
}

.page-home .slide {
    height: 480px;
}

.page-home .slide::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.page-home .slide-title {
    font-size: 26px;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-home .slider-arrow {
    width: 44px;
    height: 44px;
    backdrop-filter: blur(4px);
}

/* Sağ sidebar widget */
.page-home .widget {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-home .widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0d2137;
    border-bottom: 3px solid #c62828;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.page-home .side-news-item img {
    width: 88px;
    height: 66px;
    object-fit: cover !important;
    border-radius: 6px;
}

.page-home .side-news-item-title {
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a2e !important;
}

/* Kategori blokları */
.page-home .category-showcase {
    gap: 36px;
}

.page-home .category-title-bar {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.page-home .category-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d2137;
    position: relative;
    padding-left: 14px;
}

.page-home .category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #c62828;
    border-radius: 2px;
}

.page-home .view-all-btn {
    background: transparent;
    color: #c62828;
    border: 2px solid #c62828;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.page-home .view-all-btn:hover {
    background: #c62828;
    color: #fff;
}

.page-home .category-news-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
    align-items: stretch;
}

.page-home .RK-area {
    margin: 28px 0;
}

.page-home .itemPreview {
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

/* Footer */
.page-home .site-footer {
    margin-top: 48px;
    border-top: 4px solid #c62828;
}

/* Responsive */
@media (max-width: 1200px) {
    .page-home .top-news-grid,
    .page-home .category-news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .page-home .breaking-news-bar {
        border-radius: 8px;
    }

    .page-home .top-news-grid,
    .page-home .category-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .page-home .slider-wrapper-outer,
    .page-home .slide {
        height: 360px;
    }

    .page-home .slide-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-home .top-news-grid,
    .page-home .category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .page-home .news-card-title {
        font-size: 13px;
        padding: 10px 12px 12px;
    }

    .page-home .slider-wrapper-outer,
    .page-home .slide {
        height: 280px;
    }

    .page-home .slide-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .page-home .top-news-grid,
    .page-home .category-news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Reklam alanı */