﻿/* =========================================================================
   Component: _slide-top.css
   Chức năng: Hero Slider đỉnh cao cho trang chủ
   ========================================================================= */

.slide-top-wrapper {
    position: relative;
    height: 85vh; /* Chiều cao chiếm 85% màn hình Desktop */
    min-height: 550px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Chiều cao cho Mobile */
@media (max-width: 768px) {
    .slide-top-wrapper {
        height: 75vh;
    }
}

.slide-top-wrapper .carousel,
.slide-top-wrapper .carousel-inner {
    height: 100%;
}

/* --- 1. Hiệu ứng Background & Lớp phủ (Overlay) --- */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 10s ease-out; /* Mặc định */
}

/* Hiệu ứng Ken Burns (Zoom chậm) chỉ chạy khi slide active */
.carousel-item.active .slide-bg {
    transform: scale(1.1);
    transition: transform 6s ease-in-out;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient tối từ trái sang phải, giúp chữ bên trái nổi bật hoàn toàn */
    background: linear-gradient(90deg, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0.6) 50%, rgba(11, 12, 16, 0.2) 100%);
}

/* --- 2. Typography & Animation trong Slide --- */
.slide-content {
    padding-top: 60px; /* Bù trừ cho độ cao của Header fixed-top */
}

.fw-black {
    font-weight: 900;
}

.text-brand-yellow {
    color: var(--brand-yellow);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.text-brand-red {
    color: var(--brand-red);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Khối Badge nhỏ gọn (Chữ vàng viền mỏng) */
.badge-premium {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--brand-yellow);
    color: var(--brand-yellow);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(4px);
}

/* Trạng thái ban đầu của các phần tử (ẩn và tụt xuống dưới) */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Kích hoạt animation khi slide active */
.carousel-item.active .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Độ trễ (Stagger) để các dòng hiện lên lần lượt */
.carousel-item.active .delay-1 {
    transition-delay: 0.2s;
}

.carousel-item.active .delay-2 {
    transition-delay: 0.4s;
}

.carousel-item.active .delay-3 {
    transition-delay: 0.6s;
}

.carousel-item.active .delay-4 {
    transition-delay: 0.8s;
}

/* --- 3. Nút bấm CTA (Call To Action) --- */
.btn-call-primary {
    background: var(--brand-red);
    color: white !important;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-call-primary:hover {
        background: #b71c1c;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
    }

.btn-ghost-light {
    background: transparent;
    color: white !important;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

    .btn-ghost-light:hover {
        background: rgba(255,255,255,0.1);
        border-color: white;
    }

/* --- 4. Controls & Indicators Custom --- */
.slide-top-indicators {
    margin-bottom: 2rem;
}

    .slide-top-indicators button {
        width: 30px !important;
        height: 4px !important;
        background-color: rgba(255,255,255,0.4) !important;
        border: none !important;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

        .slide-top-indicators button.active {
            width: 45px !important;
            background-color: var(--brand-yellow) !important;
        }

.custom-control-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 12, 16, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .custom-control-icon,
.carousel-control-next:hover .custom-control-icon {
    background: var(--brand-yellow);
    color: black;
    border-color: var(--brand-yellow);
    transform: scale(1.1);
}
