/*
* Estilos personalizados para el módulo de episodios
* Secciones por calidad: Patreon, Nuevos, Anime, Series TV
*/

/* Contenedor principal de secciones */
.episodes-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 100;
    width: 100%;
    clear: both;
    display: block;
}

/* Headers de cada sección */
.episodes-section header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    position: relative;
    width: 100%;
    clear: both;
}

.episodes-section header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episodes-section header span {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 400;
}

/* Estilos base para todas las secciones */
.patreon-section,
.new-episodes-section,
.anime-section,
.series-section {
    background: transparent !important;
    border: none !important;
}

/* Estilos base para todos los headers */
.patreon-section header,
.new-episodes-section header,
.anime-section header,
.series-section header {
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid;
}

/* Colores específicos para cada sección */
.patreon-section header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.15)) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    border-bottom-color: #ffd700 !important;
}

.patreon-section header h2,
.patreon-section header i {
    color: #ffd700 !important;
}

.patreon-section header i {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.new-episodes-section header {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.25), rgba(0, 255, 127, 0.15)) !important;
    border-color: rgba(0, 255, 127, 0.6) !important;
    border-bottom-color: #00ff7f !important;
}

.new-episodes-section header h2,
.new-episodes-section header i {
    color: #00ff7f !important;
}

.new-episodes-section header i {
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.anime-section header {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.25), rgba(255, 20, 147, 0.15)) !important;
    border-color: rgba(255, 20, 147, 0.6) !important;
    border-bottom-color: #ff1493 !important;
}

.anime-section header h2,
.anime-section header i {
    color: #ff1493 !important;
}

.anime-section header i {
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.series-section header {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.25), rgba(30, 144, 255, 0.15)) !important;
    border-color: rgba(30, 144, 255, 0.6) !important;
    border-bottom-color: #1e90ff !important;
}

.series-section header h2,
.series-section header i {
    color: #1e90ff !important;
}

.series-section header i {
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* Efectos hover para las secciones */
.episodes-section:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 101;
}

/* Botones Ver Más */
.section-view-more {
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-view-more i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-view-more:hover i {
    transform: scale(1.1);
}

/* Estilos específicos para cada botón */
.patreon-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border-color: #f39c12;
}

.patreon-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
}

.new-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border-color: #3498db;
}

.new-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    color: #fff;
}

.anime-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-color: #e74c3c;
}

.anime-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: #fff;
}

.series-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    border-color: #9b59b6;
}

.series-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .episodes-section {
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .episodes-section header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .episodes-section header h2 {
        font-size: 1.3em;
    }
    
    .btn-view-more {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .section-view-more {
        margin-top: 15px;
        padding: 10px 0;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.episodes-section {
    animation: fadeInUp 0.6s ease-out;
}

.episodes-section:nth-child(2) {
    animation-delay: 0.1s;
}

.episodes-section:nth-child(3) {
    animation-delay: 0.2s;
}

.episodes-section:nth-child(4) {
    animation-delay: 0.3s;
}

/* Mejoras para los items y z-index management */
.episodes-section .items .item {
    transition: all 0.3s ease;
    position: relative;
}

.episodes-section .items .item:hover {
    transform: scale(1.05);
    z-index: 102;
}

.module.episodes {
    position: relative;
    z-index: 99;
}

.slider,
.owl-carousel,
.swiper-container {
    z-index: 1 !important;
}

/* Contenedor principal del módulo */
.episodes-custom-module {
    position: relative;
    z-index: 98;
    clear: both;
    margin-top: 20px;
    width: 100%;
    display: block;
}

/* Asegurar que los items se mantengan dentro de su sección */
.episodes-section .items {
    position: relative;
    width: 100%;
    clear: both;
    display: block;
    margin-top: 15px;
}

/* Prevenir flotación de elementos */
.episodes-section::after {
    content: "";
    display: table;
    clear: both;
}