/* Chapter-specific styles for The Containerverse - Dark Theme */

.chapter-page {
    background: #000000;
}

.chapter-page .container {
    max-width: 900px;
    margin: 0 auto;
    background: #000000;
}

/* Chapter Header */
.chapter-header {
    background: #0a0a0a;
    color: #ffffff;
    padding: 30px 40px 40px;
    border-bottom: 1px solid #333333;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.home-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    background: #111111;
    border: 1px solid #333333;
    transition: all 0.2s ease;
}

.home-link:hover {
    background: #222222;
    border-color: #4a9eff;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #333333;
    background: #111111;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(.disabled) {
    background: #222222;
    color: #ffffff;
    border-color: #4a9eff;
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chapter-title-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.chapter-title-section h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.chapter-title-section h2 {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 12px;
    color: #cccccc;
}

.chapter-subtitle {
    font-size: 1rem;
    color: #999999;
    font-style: italic;
}

/* Chapter Content */
.chapter-content {
    padding: 50px 40px;
    background: #000000;
}

.chapter-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.author-note {
    text-align: center;
    margin-bottom: 35px;
    padding: 15px;
    background: #111111;
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
    color: #cccccc;
}

.chapter-text section {
    margin-bottom: 35px;
}

.chapter-text h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-family: 'Source Sans Pro', sans-serif;
    border-bottom: 1px solid #222222;
    padding-bottom: 8px;
}

.chapter-text p {
    margin-bottom: 18px;
    color: #cccccc;
}

/* Special Elements */
.quote-highlight {
    background: #111111;
    border: 1px solid #333333;
    border-left: 3px solid #ffcc00;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.quote-highlight p {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

.insight-box {
    background: #0a0a0a;
    border: 1px solid #333333;
    border-left: 3px solid #4a9eff;
    color: #cccccc;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.insight-box p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
}

.core-truth {
    background: #111111;
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #333333;
    text-align: center;
}

.core-truth p {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.core-truth p:last-child {
    margin-bottom: 0;
    font-style: italic;
    font-size: 1.3rem;
}

.discovery-list {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid #ffcc00;
}

.discovery-list li {
    margin-bottom: 8px;
    color: #cccccc;
    position: relative;
    padding-left: 15px;
}

.discovery-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-weight: bold;
}

.numbered-insights {
    margin: 25px 0;
}

.numbered-insights > h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 18px;
    background: #111111;
    border-radius: 8px;
    border: 1px solid #222222;
    transition: border-color 0.2s ease;
}

.insight-item:hover {
    border-color: #4a9eff;
}

.insight-item .number {
    background: #4a9eff;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.insight-item .content {
    color: #cccccc;
}

.insight-item .content strong {
    color: #ffffff;
}

.insight-item .content p {
    margin-bottom: 12px;
}

.insight-item .content p:last-child {
    margin-bottom: 0;
}

.bear-wisdom {
    background: #111111;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 3px solid #ffcc00;
    border: 1px solid #222222;
}

.bear-wisdom h3 {
    color: #ffffff;
    margin-bottom: 15px;
    border: none;
    padding: 0;
    font-size: 1.2rem;
}

.bear-wisdom p {
    color: #cccccc;
    margin-bottom: 12px;
}

.bear-wisdom ul {
    margin: 15px 0;
    padding-left: 20px;
}

.bear-wisdom li {
    color: #cccccc;
    margin-bottom: 8px;
}

.chapter-signature {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.chapter-signature p {
    margin-bottom: 8px;
    color: #cccccc;
    font-style: italic;
}

.ps {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
    font-style: italic;
}

/* Chapter Footer */
.chapter-footer {
    background: #111111;
    color: #cccccc;
    padding: 30px 40px;
    border-top: 1px solid #333333;
}

.chapter-nav.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    background: #0a0a0a;
    border: 1px solid #333333;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: #222222;
    border-color: #ffcc00;
}

.chapter-info {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 15px;
}

.chapter-info p {
    margin-bottom: 5px;
    color: #cccccc;
    font-size: 0.9rem;
}

.chapter-info a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
}

.chapter-info a:hover {
    text-decoration: underline;
}

.progress {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-header {
        padding: 20px;
    }
    
    .chapter-content {
        padding: 30px 20px;
    }
    
    .chapter-title-section h1 {
        font-size: 1.8rem;
    }
    
    .chapter-title-section h2 {
        font-size: 1.3rem;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .chapter-nav.bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .insight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .insight-item .number {
        margin: 0 auto 12px;
    }
}

@media (max-width: 480px) {
    .chapter-page .container {
        margin: 0;
        border-radius: 0;
    }
    
    .chapter-header {
        padding: 15px;
    }
    
    .chapter-content {
        padding: 25px 15px;
    }
    
    .chapter-text {
        font-size: 1rem;
    }
    
    .chapter-title-section h1 {
        font-size: 1.6rem;
    }
    
    .chapter-title-section h2 {
        font-size: 1.2rem;
    }
    
    .quote-highlight,
    .insight-box,
    .core-truth,
    .bear-wisdom {
        padding: 15px;
        margin: 20px 0;
    }
}