/* ============================
   HOME PAGE (Modules/Home/index)
   ============================ */

/* Nền tổng thể - chỉ áp dụng khi body có class home-page */
body.home-page {
    background: linear-gradient(180deg, #eaf3ff 0%, #f8fcff 100%);
    font-family: "Poppins", sans-serif;
    color: #222;
}

/* ============ Carousel ============ */
.home-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(33, 150, 243, 0.25);
    margin-bottom: 4rem;
}

    .home-carousel .carousel-item img {
        max-height: 440px;
        object-fit: cover;
        filter: brightness(0.9);
        transition: filter 0.5s ease, transform 0.5s ease;
    }

    .home-carousel .carousel-item:hover img {
        filter: brightness(1);
        transform: scale(1.03);
    }

    .home-carousel .carousel-caption {
        background: rgba(0, 0, 0, 0.45);
        border-radius: 15px;
        padding: 1rem 1.5rem;
        backdrop-filter: blur(6px);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    }

        .home-carousel .carousel-caption h3,
        .home-carousel .carousel-caption h5 {
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
        }

        .home-carousel .carousel-caption p {
            color: #e3f2fd;
            font-size: 0.95rem;
        }

    /* Nút điều khiển */
    .home-carousel .carousel-control-prev-icon,
    .home-carousel .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        padding: 1rem;
    }

/* ============ Section ============ */
.home-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.05);
    border-radius: 0;
    margin-bottom: 0;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    position: relative;
}

    .home-section::before {
        content: "";
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, rgba(234, 243, 255, 0.6), rgba(255,255,255,0));
    }

/* Tiêu đề section */
.home-section-title {
    color: #1565c0;
    text-shadow: 0 0 8px rgba(33, 150, 243, 0.25);
}

.home-section .text-muted {
    color: #5c6bc0 !important;
}

/* Nút xem tất cả */
.home-btn-outline {
    border-color: #42a5f5;
    color: #1565c0;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .home-btn-outline:hover {
        background: linear-gradient(90deg, #42a5f5, #5c6bc0);
        color: white;
        border-color: transparent;
        box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    }

/* ============ Comic Card ============ */
.home-comic-card {
    border: none !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 18px rgba(33, 150, 243, 0.12);
    overflow: hidden;
    position: relative;
    transition: all 0.35s ease;
    height: 100%;
}

    .home-comic-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(33, 150, 243, 0.25);
    }

.home-comic-cover {
    height: 250px;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.home-comic-card:hover .home-comic-cover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.home-comic-body {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(200, 200, 255, 0.4);
}

.home-comic-title {
    color: #0d47a1;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(33, 150, 243, 0.15);
}

/* Glow effect */
.home-comic-card::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 60%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.home-comic-card:hover::before {
    opacity: 1;
    animation: floatGlow 8s linear infinite;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-5%, -5%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Scrollbar (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 149, 237, 0.3);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(30, 144, 255, 0.5);
    }
