/**
 * Post Series/Collections Styling
 */

.series-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.series-navigation.series-completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.series-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.series-icon {
    font-size: 3em;
    line-height: 1;
    flex-shrink: 0;
}

.series-info {
    flex: 1;
}

.series-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.series-title {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    line-height: 1.3;
}

.series-title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.series-title a:hover {
    opacity: 0.8;
}

.series-description {
    margin: 0 0 15px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.series-progress {
    margin-top: 15px;
}

.progress-text {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.series-posts-list {
    margin: 25px 0;
}

.series-posts-list h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #ffffff;
}

.series-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.series-posts li {
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 45px;
}

.series-posts li:before {
    content: counter(list-item);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85em;
}

.series-posts li.current-post {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.series-posts li.current-post:before {
    background: #ffffff;
    color: #667eea;
}

.series-navigation.series-completed .series-posts li.current-post:before {
    color: #11998e;
}

.series-posts li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.series-posts li.current-post:hover {
    transform: none;
}

.series-posts a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.series-posts .post-title {
    color: #ffffff;
}

.post-status {
    font-size: 0.85em;
    margin-left: 10px;
}

.post-status.read {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.post-status.current {
    font-style: italic;
    opacity: 0.9;
}

.series-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.series-nav-link {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.series-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.series-nav-link.next-in-series {
    text-align: right;
}

.nav-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-title {
    font-size: 1em;
    line-height: 1.4;
}

/* Series archive page */
.taxonomy-series .series-archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.taxonomy-series .series-archive-header h1 {
    margin: 0 0 15px 0;
    color: #ffffff;
}

.taxonomy-series .series-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.95em;
}

.taxonomy-series .series-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .series-navigation {
        padding: 20px;
        margin: 30px 0;
    }
    
    .series-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .series-icon {
        font-size: 2.5em;
    }
    
    .series-title {
        font-size: 1.3em;
    }
    
    .series-posts li {
        padding-left: 40px;
        font-size: 0.95em;
    }
    
    .series-posts li:before {
        width: 22px;
        height: 22px;
        font-size: 0.8em;
    }
    
    .series-post-navigation {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .series-nav-link.next-in-series {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .series-navigation {
        padding: 15px;
    }
    
    .series-title {
        font-size: 1.2em;
    }
    
    .series-posts li {
        padding: 10px 10px 10px 35px;
        font-size: 0.9em;
    }
    
    .series-posts li:before {
        width: 20px;
        height: 20px;
        left: 10px;
        font-size: 0.75em;
    }
    
    .nav-title {
        font-size: 0.95em;
    }
}
