/* assets/css/home.css - GÜNCELLENMİŞ SÜRÜM */

/* --- SLIDER ALANI (Manşet) --- */
.headline-slider {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.swiper-slide {
    background-color: #000;
    position: relative;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover'da görsel hafif yakınlaşsın */
.swiper-slide:hover .slide-image {
    transform: scale(1.03);
}

/* Karartma (Overlay) */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    pointer-events: none;
    transition: 0.3s;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 10;
    color: #fff;
}

.slide-cat.badge {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.slide-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- VIDEO SLIDER MODU --- */
.video-slider-mode .slide-overlay {
    height: 100%;
    background: rgba(0,0,0,0.3); 
}

.video-slider-mode:hover .slide-overlay {
    background: rgba(0,0,0,0.1);
}

.play-icon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: #fff;
    z-index: 5;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.swiper-slide:hover .play-icon-center {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary-color);
}

/* Swiper Okları */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 18px !important; font-weight: bold; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--primary-color); }

/* --- SECTION BAŞLIKLARI --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    position: relative;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.section-link:hover { color: var(--primary-color); }

/* --- GRID YAPILARI --- */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* --- KART TASARIMI --- */
.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.news-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card-cat {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    z-index: 2;
}
.news-card-cat:hover { background-color: var(--primary-color); }

/* Video Oynatma İkonu */
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255,255,255,0.8);
    transition: 0.2s;
}
.news-card:hover .play-overlay { background: var(--primary-color); border-color: var(--primary-color); transform: translate(-50%, -50%) scale(1.1); }

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-heading);
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a { color: inherit; transition: color 0.2s; }
.news-card-title a:hover { color: var(--primary-color); }

.news-card-meta {
    margin-top: auto;
    display: flex; align-items: center;
    font-size: 13px; color: var(--text-muted);
    border-top: 1px solid var(--bg-surface);
    padding-top: 15px;
}

/* --- LİSTE GÖRÜNÜMÜ --- */
.list-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.list-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.list-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.list-img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.list-img img { width: 100%; height: 100%; object-fit: cover; }

.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-info h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- YAZARLAR ŞERİDİ (YENİ) --- */
.authors-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.author-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.author-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.author-home-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-surface);
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.author-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-home-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.3;
}

.author-home-card:hover .author-home-name {
    color: var(--primary-color);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .headline-slider { height: 300px; }
    .slide-title { font-size: 20px; }
    .slide-content { padding: 20px; }
    .play-icon-center { font-size: 50px; }
    
    .news-grid-3, .list-view-grid {
        grid-template-columns: 1fr;
    }

    .authors-home-grid {
        grid-template-columns: repeat(3, 1fr); /* Mobilde yan yana 3 tane */
        gap: 10px;
    }
    .author-home-card { padding: 10px; }
    .author-home-img { width: 60px; height: 60px; }
    .author-home-name { font-size: 13px; }
}