/**
 * VER HENTAI — components.css
 * Badges, episode info, series cards, buttons, favorites, progress bars, sliders.
 * Solo lo que Tailwind NO puede hacer.
 */

/* ================================================
   EPISODE BADGES
   ================================================ */
.episode-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    backdrop-filter: blur(8px);
}

.badge-estreno {
    background: rgba(251, 191, 36, 0.95);
    color: #000;
}

.badge-sub {
    background: rgba(251, 191, 36, 0.95);
    color: #000;
}

.badge-fandub {
    background: rgba(139, 92, 246, 0.95);
    color: #fff;
}

.badge-latino {
    background: rgba(249, 115, 22, 0.95);
    color: #fff;
}

.badge-hentai {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* ================================================
   EPISODE INFO (.data)
   ================================================ */
.episode-card .data {
    padding: 12px 0 0 0;
}

.episode-card .data h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-card:hover .data h3 {
    color: #fbbf24;
}

.episode-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
}

.episode-number {
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.episode-time {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.episode-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   SERIES CARDS (catálogo / related)
   ================================================ */
.series-card {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #0b111f 0%, #0a0d14 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.series-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(251, 191, 36, 0.2), 0 0 0 2px rgba(251, 191, 36, 0.4);
}

.series-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.series-card:hover img {
    transform: scale(1.08);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #2563eb 100%);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #3b82f6 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    color: #1f2937;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

/* Sort/Filter controls */
.sort-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sort-btn.active {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

/* Continue watching button */
.continue-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* ================================================
   FAVORITES PAGE
   ================================================ */
.favorite-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-card.removing {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.favorite-card:hover {
    transform: translateY(-8px);
}

.favorites-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #fbbf24;
}

/* ================================================
   PROGRESS BAR
   ================================================ */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ================================================
   POPULAR SLIDER
   ================================================ */
#popularSlider {
    height: auto;
}

#popularSlider > div {
    min-height: 100%;
}

@media (max-width: 640px) {
    #popularSlider {
        max-height: 600px;
    }
}

@media (min-width: 640px) {
    #popularSlider {
        max-height: 700px;
    }
}

@media (min-width: 768px) {
    #popularSlider {
        max-height: 800px;
    }
}

/* ================================================
   GLASS EFFECT
   ================================================ */
.glass-effect {
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ================================================
   SKELETON LOADING
   ================================================ */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    background-size: 1000px 100%;
}

/* ================================================
   ASPECT RATIOS (no cubiertas por Tailwind CDN)
   ================================================ */
.aspect-poster {
    aspect-ratio: 2 / 3;
}

.aspect-episode {
    aspect-ratio: 16 / 9;
}
