/* ===== VARIÁVEIS ===== */
:root {
    --primary-color: #9c00da;
    --secondary-color: #6b46c1;
    --dark-bg: #141414;
    --darker-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --text-light: #ffffff;
    --text-muted: #bbbbbb;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== BANNER PRINCIPAL ===== */
.banner-principal {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 2rem auto 3rem;
    border-radius: var(--border-radius);
    max-width: calc(100% - 4rem);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 10%, transparent 70%);
    box-shadow: var(--box-shadow);
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 8s ease;
}

.banner-principal:hover .banner-background {
    transform: scale(1.05);
}

.banner-content {
    max-width: 600px;
    padding: 0 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 30%, transparent);
}

.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.banner-description {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #8a00c2;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.9);
}

/* ===== SEÇÃO POPULARES ===== */
.popular-section {
    padding: 3rem 2rem;
    background-color: var(--darker-bg);
    position: relative;
}

.popular-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(156, 0, 218, 0.1) 0%, transparent 40%);
}

.popular-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.popular-carousel::-webkit-scrollbar {
    height: 6px;
}

.popular-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.popular-card {
    position: relative;
    min-width: 220px;
    width: 220px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popular-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.popular-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.work-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #631479;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1.2rem;
    color: white;
}

.work-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chapter-time {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* ===== ELEMENTOS COMUNS ===== */
.section-title {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    padding-left: 1rem;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 1rem;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popular-card,
.recent-card {
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.popular-card:nth-child(1) {
    animation-delay: 0.1s;
}

.popular-card:nth-child(2) {
    animation-delay: 0.2s;
}

.popular-card:nth-child(3) {
    animation-delay: 0.3s;
}

.popular-card:nth-child(4) {
    animation-delay: 0.4s;
}

.popular-card:nth-child(5) {
    animation-delay: 0.5s;
}

.recent-card:nth-child(1) {
    animation-delay: 0.2s;
}

.recent-card:nth-child(2) {
    animation-delay: 0.3s;
}

.recent-card:nth-child(3) {
    animation-delay: 0.4s;
}

.recent-card:nth-child(4) {
    animation-delay: 0.5s;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .banner-principal {
        height: 350px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .banner-principal {
        height: 300px;
        max-width: calc(100% - 2rem);
        margin: 1rem auto 2rem;
    }

    .popular-section,
    .recent-section {
        padding: 2rem 1rem;
    }

    .popular-card,
    .recent-card {
        min-width: 180px;
        width: 180px;
    }

    .popular-card img,
    .recent-card img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-description {
        font-size: 0.9rem;
        line-height: 1.3;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .banner-actions {
        gap: 0.8rem;
    }

    .btn {
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }
}


/* ===== SEÇÃO RECENTES COMO CARROSSEL ===== */
.recent-section {
    padding: 3rem 2rem;
    background-color: var(--dark-bg);
    position: relative;
}

.recent-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(156, 0, 218, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.recent-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.recent-carousel::-webkit-scrollbar {
    height: 6px;
}

.recent-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.recent-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.recent-card {
    position: relative;
    min-width: 240px;
    width: 240px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--card-bg);
}

.recent-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.recent-card-cover {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.recent-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.recent-card:hover .recent-card-cover img {
    transform: scale(1.05);
}

.recent-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.recent-info {
    padding: 1.2rem;
    flex-direction: column;
    flex-grow: 1;
}

.recent-title {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-title a:hover {
    color: var(--primary-color);
}

.recent-chapters {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.recent-chapters li {
    margin: 0.4rem 0;
}

.recent-chapters a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.recent-chapters a:hover {
    color: var(--primary-color);
}

.chapter-time {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.recent-meta {
    margin-top: auto;
}

.recent-status {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(156, 0, 218, 0.15);
    border-radius: 20px;
}

.recent-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-badge {
    background: rgba(156, 0, 218, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(156, 0, 218, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .recent-card {
        min-width: 200px;
        width: 200px;
    }

    .recent-card-cover {
        height: 250px;
    }

    .recent-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .recent-section {
        padding: 2rem 1rem;
    }

    .recent-card {
        min-width: 180px;
        width: 180px;
    }

    .recent-card-cover {
        height: 220px;
    }

    .recent-title {
        font-size: 1rem;
    }

    .recent-chapters a {
        font-size: 0.8rem;
    }

    .genre-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}