/* Chapter-specific styles for The Efficiency Trap */

/* Chapter Layout */
.chapter-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-dark);
    padding: 20px 40px;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--accent-red);
}

.chapter-info {
    text-align: center;
    color: var(--text-dim);
}

.chapter-number {
    display: block;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.part-info {
    font-size: 0.8rem;
    font-style: italic;
}

.chapter-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-white);
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
}

/* Chapter Content */
.chapter-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.chapter-intro {
    font-size: 1.2rem !important;
    font-style: italic;
    color: var(--text-white) !important;
    text-align: center;
    margin-bottom: 2rem !important;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-red);
}

.chapter-outro {
    font-style: italic;
    color: var(--text-dim) !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Dialogue Styling */
.finny-dialogue {
    color: var(--accent-gold) !important;
    font-style: italic;
    margin: 1rem 0 1rem 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-gold);
    position: relative;
}

.finny-dialogue::before {
    content: "🧸";
    position: absolute;
    left: -1.5rem;
    top: 0;
    font-size: 1rem;
}

/* Scene Breaks */
.scene-break {
    text-align: center;
    margin: 3rem 0;
    color: var(--text-dim);
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

/* Chapter Footer */
.chapter-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
    padding: 30px 40px;
}

.chapter-meta {
    text-align: center;
    margin-top: 20px;
}

.chapter-note {
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}

/* Emphasis and Typography */
.content-section em {
    color: var(--accent-red);
    font-style: italic;
}

.content-section strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-header {
        padding: 15px 20px;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .chapter-title {
        font-size: 2rem;
    }
    
    .chapter-content {
        padding: 30px 15px;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .finny-dialogue {
        margin-left: 1rem;
    }
    
    .chapter-footer {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .chapter-title {
        font-size: 1.8rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .finny-dialogue {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .finny-dialogue::before {
        left: -1rem;
    }
}