/**
 * VER HENTAI — base.css
 * Body, header, cards, hero, section headers, keyframes.
 * Solo lo que Tailwind NO puede hacer.
 */

/* ================================================
   VARIABLES
   ================================================ */
:root {
    --azul-primario: #1e40af;
    --azul-secundario: #3b82f6;
    --azul-claro: #60a5fa;
    --amarillo-primario: #fbbf24;
    --amarillo-secundario: #fcd34d;
}

/* ================================================
   BODY
   ================================================ */
body {
    background: linear-gradient(135deg, #0f172a 0%, #000000 50%, #1e293b 100%);
    color: #ffffff;
}

/* ================================================
   HEADER
   ================================================ */
.gradient-header {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* ================================================
   HENTAI CARDS (catálogo / series)
   ================================================ */
.hentai-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hentai-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ================================================
   EPISODE CARDS
   ================================================ */
.episode-card {
    background: transparent;
    border: none;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-4px);
}

.poster {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.episode-card .poster {
    height: 200px;
}

@media (min-width: 640px) {
    .episode-card .poster {
        height: 216px;
    }
}

.episode-card:hover .poster {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play button sobre el poster */
.poster .play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(251, 191, 36, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    z-index: 20;
    cursor: pointer;
}

.episode-card:hover .poster .play-btn {
    opacity: 1;
    transform: scale(1);
}

.poster .play-btn:hover {
    background: rgba(251, 191, 36, 1);
    transform: scale(1.1);
}

.poster .play-btn i {
    font-size: 14px;
    margin-left: 2px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
}

.hero-content > div {
    margin-left: 0;
    max-width: 100%;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-section > div:first-of-type {
        height: 75vh !important;
        min-height: 550px !important;
        max-height: 700px !important;
    }

    .hero-content > div {
        margin-left: 2% !important;
    }

    .hero-content h2 {
        font-size: 2.5rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrapper {
    position: relative;
}

.section-title-wrapper::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

/* ================================================
   SECTION TITLE (standalone)
   ================================================ */
.section-title {
    position: relative;
    padding-left: 1rem;
    font-size: 1.6rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #fbbf24, #fcd34d);
    border-radius: 2px;
}

@media (min-width: 640px) {
    .section-title { font-size: 2rem; }
}

@media (min-width: 1024px) {
    .section-title { font-size: 2.4rem; }
}

/* ================================================
   HERO INDICATORS
   ================================================ */
#heroIndicators {
    position: absolute !important;
    bottom: 3rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 40 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.hero-indicator {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    outline: none;
    flex-shrink: 0;
    width: 3rem;
    height: 0.375rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.hero-indicator.active {
    background: #fbbf24 !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.hero-indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
    #heroIndicators {
        bottom: 1.5rem !important;
        gap: 0.375rem !important;
    }

    .hero-indicator {
        width: 2rem !important;
        height: 0.25rem !important;
    }

    .hero-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Hero progress circle (bottom-right) */
#heroSlideIndicator {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
}

#heroSlideIndicator svg {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

#heroProgressCircle {
    transition: stroke-dashoffset linear;
}

/* ================================================
   KEYFRAMES
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 0 40px rgba(251, 191, 36, 0.3);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fade-out-scale {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0; }
}

@keyframes float-up {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ================================================
   ANIMATION HELPERS
   ================================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-fade-out {
    animation: fade-out-scale 0.3s ease forwards;
}

.animate-float-up {
    animation: float-up 0.4s ease forwards;
}
