﻿/* =========================================================
   LANDING HERO FIX
   File: wwwroot/landing-assets/css/landing-hero-fix.css
   Amaç:
   - Sağdaki slider/kart, soldaki içerik yüksekliğine eşitlensin
   - Görsel alan büyüsün, altta boşluk kalmasın
   - Caption alt kısımda sabit ve düzgün dursun
   ========================================================= */

/* HERO row: iki kolon aynı boy uzasın */
.hero .hero-row {
    align-items: stretch !important;
}

/* Sağ kolon: içerik dikeyde tam uzasın */
.hero .hero-visual {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Slider shell: soldaki blok kadar büyüsün */
.hero .hero-slider-shell {
    flex: 1 1 auto;
    min-height: 420px; /* masaüstü minimum */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

    /* Carousel dış kabukları da %100 olsun */
    .hero .hero-slider-shell .carousel,
    .hero .hero-slider-shell .carousel-inner,
    .hero .hero-slider-shell .carousel-item {
        height: 100%;
    }

/* Her slide wrap: görsel alan büyüsün */
.hero .hero-slide-wrap {
    position: relative;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 22px 60px rgba(20, 40, 120, 0.12);
}

/* Görsel tam kaplasın (crop olabilir) */
.hero .hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* önemli: alanı doldurur */
    display: block;
}

/* Görsel yoksa fallback */
.hero .hero-slide-fallback {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    font-size: 1.05rem;
}

/* Caption: en altta sabit ve premium görünüm */
.hero .hero-slide-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 16px;
    border-radius: 16px;
    background: rgba(20, 20, 28, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

/* Badge */
.hero .hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 10px;
}

/* Başlık */
.hero .hero-slide-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

/* Alt başlık */
.hero .hero-slide-subtitle {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.35;
    opacity: 0.92;
}

/* CTA buton */
.hero .hero-slide-cta {
    margin-top: 12px;
    border-radius: 12px;
    font-weight: 700;
}

/* Indicators: içte, alta yakın ama captiona çarpmadan */
.hero .hero-slider-indicators {
    margin-bottom: 10px;
}

/* Kontrollerin (okların) görünürlüğü biraz daha net olsun */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    opacity: 0.85;
}

/* Alt not: slider shell’in altında ortalı dursun */
.hero .hero-visual-note {
    margin-top: 14px;
}

/* Responsive: mobilde yükseklik doğal aksın */
@media (max-width: 991.98px) {
    .hero .hero-slider-shell {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-slider-shell {
        min-height: 260px;
    }

    .hero .hero-slide-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px;
    }

    .hero .hero-slide-title {
        font-size: 1rem;
    }

    .hero .hero-slide-subtitle {
        font-size: 0.9rem;
    }
}
