/* ==============================================
   HOMEPAGE — Mangahub
   ============================================== */

/* ---- Hero ---- */
.hp-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0d14;
    margin-bottom: 2.5rem;
}
.hp-hero__slide {
    position: relative;
    min-height: 420px;
    display: flex !important;
    align-items: center;
    padding: 2.5rem 0;
    overflow: hidden;
}
/* Fond flouté */
.hp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(.5);
    transform: scale(1);
    z-index: 0;
}
/* Overlay dégradé gauche → droite */
.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,20,.95) 40%, rgba(13,13,20,.5) 70%, rgba(13,13,20,.1) 100%);
    z-index: 1;
}
/* Effet de points */
.hp-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.22) 1.5px, transparent 1.5px);
    background-size: 7px 7px;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}
/* Contenu */
.hp-hero__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}
.hp-hero__content {
    flex: 1;
    min-width: 0;
    max-width: 580px;
    color: #fff;
}
.hp-hero__genres {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .9rem;
}
.hp-hero__genre-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 4px;
}
.hp-hero__genre-badge--status {
    background: #e63946;
    border-color: #e63946;
}
.hp-hero__author {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .6rem;
}
.hp-hero__author i { font-size: .7rem; }
.hp-hero__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 .75rem;
}
.hp-hero__desc {
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255,255,255,.65);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.hp-hero__stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: .82rem;
}
.hp-hero__rating {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-weight: 700;
    color: #f4c542;
}
.hp-hero__chapters {
    color: rgba(255,255,255,.6);
}
.hp-hero__chapters i { margin-right: .3rem; }
/* Couverture droite */
.hp-hero__cover {
    flex-shrink: 0;
    width: 200px;
}
.hp-hero__cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
    display: block;
}
/* Dots de navigation Slick */
.hp-hero .slick-dots {
    bottom: 14px;
}
.hp-hero .slick-dots li button::before {
    color: rgba(255,255,255,.5);
    font-size: 8px;
}
.hp-hero .slick-dots li.slick-active button::before {
    color: #e63946;
    opacity: 1;
}
.hp-hero .slick-prev,
.hp-hero .slick-next {
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}
.hp-hero .slick-prev { left: 14px; }
.hp-hero .slick-next { right: 14px; }
.hp-hero .slick-prev::before,
.hp-hero .slick-next::before {
    font-size: 16px;
    color: #fff;
    opacity: 1;
}

/* ---- Sections communes ---- */
.hp-section {
    margin-bottom: 2.5rem;
}
.hp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}
.hp-section__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.hp-section__title i {
    color: #e63946;
    font-size: .9rem;
}
.hp-section__sub {
    font-size: .78rem;
    color: #888;
    margin: 0 0 .8rem;
}
.hp-section__link {
    font-size: .75rem;
    font-weight: 600;
    color: #e63946;
    text-decoration: none;
    white-space: nowrap;
}
.hp-section__link:hover { text-decoration: underline; }

/* ---- Card manga ---- */
.hp-card {
    position: relative;
    outline: none;
    padding: 0 6px;
}
.hp-card__cover {
    display: block;
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    margin-bottom: .5rem;
}
/* Overlay sur la cover */
.hp-card__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 45%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 7px 7px 8px 7px;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
}
.hp-card__overlay-title {
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .16rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.hp-card__overlay-genre {
    font-size: .58rem;
    font-weight: 400;
    color: rgba(255,255,255,.65);
    margin-bottom: .22rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Empêche le chevauchement avec les stats */
    min-height: 1.1em;
}
.hp-card__stats {
    font-size: .62rem;
    color: #fff;
    display: flex;
    gap: .5rem;
    margin-top: .12rem;
    /* Place les stats en bas, sous le genre */
    clear: both;
}
.hp-card__stats .star {
    color: #f4c542;
}
.hp-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.hp-card:hover .hp-card__cover img {
    transform: scale(1.05);
}

/* Dégradé bas de cover */
.hp-card__cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    z-index: 1;
}
/* Stats sur la cover */
.hp-card__stats {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: .62rem;
    color: #fff;
    margin-top: .10rem;
    width: 100%;
}
.hp-card__stats span {
    display: flex;
    align-items: center;
    gap: .2rem;
}
.hp-card__stats .star { color: #f4c542; }
/* Titre + genre */
.hp-card__title {
    font-size: .8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
}
.hp-card__title:hover { color: #e63946; }
.hp-card__genre {
    font-size: .72rem;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .1rem;
}

/* ---- Slick overrides pour les sections ---- */
.hp-slider .slick-prev,
.hp-slider .slick-next {
    z-index: 5;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    top: -40px;
}
.hp-slider .slick-prev { right: 46px; left: auto; }
.hp-slider .slick-next { right: 6px; }
.hp-slider .slick-prev::before,
.hp-slider .slick-next::before {
    color: #333;
    font-size: 14px;
    opacity: 1;
}
.hp-slider .slick-track { margin-left: 0; }
.hp-slider .slick-list { margin: 0 -6px; }

/* ---- Banner VIP ---- */
.hp-vip {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.hp-vip__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .5rem;
}
.hp-vip__title span {
    color: #f4c542;
}
.hp-vip__sub {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hp-vip__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #e63946;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    padding: .75rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: filter .2s;
}
.hp-vip__btn:hover { filter: brightness(1.1); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hp-hero__cover { display: none; }
    .hp-hero__title { font-size: 1.4rem; }
    .hp-hero__slide { min-height: 320px; padding: 1.5rem 0; }
}
