/**
 * Season Tabs Styling
 * Enhanced horizontal tab interface for TV show seasons
 */

/* Make episodes section full-width */
#episodes.sbox {
    padding: 0 !important;
    border: none;
    border-radius: 0;
}

#serie_contenido {
    padding: 0;
    width: 100%;
    float: left;
}

/* Top nav tab icon spacing */
ul.smenu li a i {
    margin-right: 4px;
}

/* Season tabs container - with rounded border */
.season-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
}

/* Individual season tab - pill style */
.season-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

/* Hover state - lift effect */
.season-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Active tab state - color set by theme customizer */
.season-tab.active {
    color: #fff;
    border-color: transparent;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.season-tab.active:hover {
    transform: translateY(-1px);
}

/* Season title in tab */
.season-tab .season-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Tab icon styling */
.season-tab .tab-icon {
    font-size: 12px;
    opacity: 0.7;
}

.season-tab.active .tab-icon {
    opacity: 1;
}

/* Episode count badge */
.season-tab .episode-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
}

.season-tab.active .episode-count {
    opacity: 0.9;
}

/* Episode panels container - with rounded border */
.season-panels {
    width: 100%;
    float: left;
    min-height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-sizing: border-box;
    padding: 12px;
}

/* Individual season panel - hidden by default */
.season-panel {
    display: none;
    width: 100%;
    float: left;
}

/* Active panel is visible */
.season-panel.active {
    display: block;
    animation: fadeInPanel 0.2s ease-out;
}

/* Fade in animation */
@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .season-tabs {
        gap: 6px;
        margin-bottom: 15px;
    }

    .season-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .season-tab .season-title {
        font-size: 13px;
    }
}

@media only screen and (max-width: 480px) {
    .season-tabs {
        gap: 5px;
        margin-bottom: 12px;
    }

    .season-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

    .season-tab .season-title {
        font-size: 12px;
    }
}

/* Season Download Button */
.season-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    color: #fff !important;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.season-download-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.season-download-btn i {
    font-size: 10px;
}