/* Chapter Page Specific Styles */

/* Chapter Header */
.chapter-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 0;
    margin-top: var(--header-height);
}

.chapter-header h2 {
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

/* Chapter Navigation */
.chapter-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.floating-nav .nav-button {
    padding: 8px 15px;
    margin: 0;
    background-color: transparent;
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
}

.floating-nav .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    transform: translateY(-2px);
}

.floating-nav .nav-button.disabled {
    opacity: 0.5;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.nav-button.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

/* Manga Reader */
.chapter-content {
    padding: 40px 0;
    background-color: #f0f0f0;
}

.manga-reader {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 20px;
}

.manga-page {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.manga-page:last-child {
    margin-bottom: 0;
}

.manga-page-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chapter Navigation Bottom */
.chapter-navigation-bottom {
    padding: 20px 0;
    background-color: #f9f9f9;
}

/* Chapter Info */
.chapter-info {
    padding: 50px 0;
    background-color: var(--light-text);
}

.chapter-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.chapter-info p {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
    color: #444;
}

/* Related Chapters */
.related-chapters {
    padding: 50px 0;
    background-color: var(--light-text);
}

.related-chapters h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.related-chapters .chapters-list {
    max-width: 600px;
    margin: 0 auto;
}

.related-chapters .chapters-list li.current {
    background-color: #f0f0f0;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
}

#back-to-top-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .chapter-header h2 {
        font-size: 1.5rem;
    }
    
    .chapter-navigation {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-button {
        flex: 1;
        min-width: 120px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .floating-nav {
        padding: 8px 15px;
        bottom: 20px;
        max-width: 90%;
    }
    
    .floating-nav .nav-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .chapter-info h3,
    .related-chapters h3 {
        font-size: 1.3rem;
    }
    
    #back-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 90px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .chapter-header {
        padding: 20px 0;
    }
    
    .chapter-header h2 {
        font-size: 1.3rem;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .floating-nav {
        padding: 6px 10px;
        bottom: 15px;
        max-width: 95%;
    }
    
    .floating-nav .nav-button {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 60px;
    }
    
    .manga-reader {
        border-radius: 0;
        padding: 10px;
    }
    
    .manga-page {
        margin-bottom: 15px;
    }
    
    .chapter-info,
    .related-chapters {
        padding: 30px 0;
    }
    
    #back-to-top-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 80px;
        right: 15px;
    }
} 