/* ============================================================
   HOME.CSS - Hero Banner (trang chủ)
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 420px;
    max-height: 640px;
    overflow: hidden;
    background-color: #000;
}

.hero__slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero__slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--bg-color) 0%,
        rgba(15,15,15,0.6) 35%,
        rgba(15,15,15,0.15) 65%,
        rgba(15,15,15,0.55) 100%
    );
}

.hero__content {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: 100%;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
    right: 0;
    z-index: 2;
}

.hero__badge {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.hero__title {
    font-size: 44px;
    font-weight: 800;
    max-width: 620px;
    margin-bottom: 14px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero__meta .hero__rating {
    color: #f5c518;
    font-weight: 700;
}

.hero__desc {
    max-width: 520px;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero__actions {
    display: flex;
    gap: 14px;
}

.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition);
}
.hero__nav:hover {
    background-color: var(--primary);
}
.hero__nav--prev { left: 24px; }
.hero__nav--next { right: 24px; }

.hero__dots {
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    transition: all var(--transition);
    cursor: pointer;
}
.hero__dot.active {
    background-color: var(--primary);
    width: 26px;
    border-radius: 6px;
}

@media (max-width: 700px) {
    .hero { height: 60vh; }
    .hero__title { font-size: 28px; }
    .hero__nav { display: none; }
    .hero__content { bottom: 30px; }
}
