/* =========================================
   HERO BÖLÜMÜ (template-parts/hero.php)
   ========================================= */

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    margin-bottom: 36px;
    align-items: stretch;
    width: 100%;
    height: 380px;
    border: 1px solid var(--renk-sinir);
    border-radius: 10px;
    overflow: hidden;
}

/* Sol: Büyük kart */
.hero-buyuk {
    height: 100%;
}

.hero-kart {
    position: relative;
    overflow: hidden;
    background: var(--renk-acik-gri);
    height: 100%;
}

.hero-kart-resim {
    display: block;
    overflow: hidden;
    position: absolute;
    inset: 0;
}

.hero-kart-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-kart-resim:hover img {
    transform: scale(1.03);
}

.hero-kart-resim-yok {
    position: absolute;
    inset: 0;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--renk-sinir);
}

.hero-kart-bilgi {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-kart-bilgi h2 {
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.hero-kart-bilgi h2 a { color: #fff; }
.hero-kart-bilgi h2 a:hover { color: var(--renk-birincil); }
.hero-kart-bilgi .post-meta { color: rgba(255,255,255,0.8); }

/* Sağ: Mini kart listesi */
.hero-liste {
    display: flex;
    flex-direction: column;
    background: var(--renk-arkaplan);
    border-left: 1px solid var(--renk-sinir);
    overflow: hidden;
    height: 100%;
}

/* Mini kartlar eşit yükseklikte dağılsın */
.hero-mini-kart {
    display: flex;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid var(--renk-sinir);
    transition: background var(--gecis);
    flex: 1 1 0;
    min-height: 0;
    align-items: center;
    overflow: hidden;
}

.hero-mini-kart:last-child { border-bottom: none; }
.hero-mini-kart:hover { background: var(--renk-acik-gri); }

.hero-mini-resim {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
}

.hero-mini-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-mini-resim-yok {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 5px;
    background: var(--renk-sinir);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #aaa;
}

.hero-mini-icerik {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    padding: 4px 0;
    justify-content: center;
    overflow: hidden;
}

.hero-mini-kategori {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--renk-birincil);
    letter-spacing: 0.4px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-mini-baslik {
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.hero-mini-baslik a { color: var(--renk-yazi); text-decoration: none; }
.hero-mini-baslik a:hover { color: var(--renk-birincil); }

.hero-mini-tarih {
    font-size: 0.68rem;
    color: #999;
    display: none;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.hero-mini-kart:hover .hero-mini-tarih {
    display: flex;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr 300px;
        height: 200px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        align-items: start;
    }
    .hero-buyuk,
    .hero-kart { min-height: 180px; }
    .hero-liste { height: auto; }
    .hero-mini-kart { flex: unset; padding: 10px 14px; }
}
