﻿/* =============================================
   HABERLER FEATURED SECTION - YENİ TASARIM
   Kurumsal Renk: #252638
   ============================================= */

/* =============================================
   SCROLL ANIMASYONLARI
   ============================================= */

/* Başlangıç durumu - görünmez ve aşağıda */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Animasyon tetiklendiğinde */
    .scroll-animate.animate-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Sol taraf için hafif gecikme */
    .scroll-animate.animate-left {
        transition-delay: 0.1s;
    }

    /* Sağ taraf için daha fazla gecikme */
    .scroll-animate.animate-right {
        transition-delay: 0.3s;
    }

/* Başlık için ayrı animasyon */
.scroll-animate-title {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    .scroll-animate-title.animate-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Kartlar için staggered animasyon */
.news-card.scroll-animate-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

    .news-card.scroll-animate-card.animate-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Staggered delay for cards */
    .news-card.scroll-animate-card:nth-child(1) {
        transition-delay: 0.1s;
    }

    .news-card.scroll-animate-card:nth-child(2) {
        transition-delay: 0.2s;
    }

    .news-card.scroll-animate-card:nth-child(3) {
        transition-delay: 0.3s;
    }

    .news-card.scroll-animate-card:nth-child(4) {
        transition-delay: 0.4s;
    }

    .news-card.scroll-animate-card:nth-child(5) {
        transition-delay: 0.5s;
    }

    .news-card.scroll-animate-card:nth-child(6) {
        transition-delay: 0.6s;
    }

/* Featured card özel animasyonu */
.featured-news-card.scroll-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

    .featured-news-card.scroll-animate.animate-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* =============================================
   ANA STİLLER
   ============================================= */

.news-featured-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

    /* Duyuru Section - Farklı arka plan */
    .news-featured-section.duyuru-section {
        background-color: #eef2f7;
    }

    /* İlan Section - Farklı arka plan */
    .news-featured-section.ilan-section {
        background-color: #f5f5f5;
    }

/* Duyuru Badge Rengi */
.news-badge.duyuru-badge-color {
    background: #3498db;
}

/* İlan Badge Rengi */
.news-badge.ilan-badge-color {
    background: #27ae60;
}

.news-featured-section .auto-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-featured-section .sec-title h2 {
    color: #252638;
    margin-bottom: 40px;
}

.news-featured-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Sol Taraf - Öne Çıkan Haber */
.news-featured-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.featured-news-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .featured-news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

.featured-news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .featured-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.5s ease;
    }

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    /* Kurumsal renk (#252638) ile aşağıdan yukarı gradient */
    background: linear-gradient( to top, rgba(37, 38, 56, 0.98) 0%, rgba(37, 38, 56, 0.80) 35%, rgba(37, 38, 56, 0.40) 70%, transparent 100% );
    transition: height 0.4s ease, background 0.4s ease;
}

.featured-news-card:hover .featured-news-overlay {
    height: 70%;
    background: linear-gradient( to top, rgba(37, 38, 56, 1) 0%, rgba(37, 38, 56, 0.90) 40%, rgba(37, 38, 56, 0.50) 75%, transparent 100% );
}

.featured-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.news-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

    .news-badge i {
        margin-right: 6px;
    }

.featured-news-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Sağ Taraf - Diğer Haberler */
.news-featured-right {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.news-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 5px;
}

    .news-carousel-header h4 {
        color: #252638;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

.news-carousel-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #252638;
    background: transparent;
    color: #252638;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .news-nav-btn:hover {
        background: #252638;
        color: #fff;
    }

    .news-nav-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.news-view-all {
    color: #252638;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
}

    .news-view-all:hover {
        color: #1a1b26;
        text-decoration: underline;
    }

.news-carousel-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.news-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 390px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.4s ease;
    }

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* Kurumsal renk (#252638) ile aşağıdan yukarı gradient - koyudan açığa */
    background: linear-gradient( to top, rgba(37, 38, 56, 0.98) 0%, /* En koyu - alt kısım */
    rgba(37, 38, 56, 0.85) 25%, rgba(37, 38, 56, 0.65) 50%, rgba(37, 38, 56, 0.35) 75%, transparent 100% /* Şeffaf - üst kısım */
    );
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-overlay {
    height: 100%;
}

.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(37, 38, 56, 0.9) 0%, rgba(37, 38, 56, 0.5) 70%, transparent 100%);
    transition: background 0.4s ease;
}

.news-card:hover .news-card-content {
    background: transparent;
}

.news-card-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.news-featured-section duyuru-section {
    background-color: rgba(37, 38, 56, 0.98)
}


/* Responsive Tasarım */
@media (max-width: 1200px) {
    .featured-news-title {
        font-size: 20px;
    }

    .news-card {
        height: 340px;
    }
}

@media (max-width: 991px) {
    .news-featured-wrapper {
        flex-direction: column;
    }

    .news-featured-left,
    .news-featured-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news-featured-right {
        padding-top: 30px;
    }

    .featured-news-card {
        min-height: 350px;
    }

    .news-carousel-track {
        gap: 15px;
    }

    .news-card {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        height: 280px;
    }
}

@media (max-width: 576px) {
    .news-featured-section {
        padding: 40px 0;
    }

    .featured-news-card {
        min-height: 300px;
    }

    .featured-news-content {
        padding: 20px;
    }

    .featured-news-title {
        font-size: 18px;
    }

    .news-carousel-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: 220px;
    }

    .news-view-all {
        margin-left: 0;
    }
}
