/* ============================================================
   physics-chapter-content.css — Dark Theme for Physics Notes
   ============================================================ */

/* Force dark background on all chapter content */
.document-content {
    background-color: #0a0a0a !important;
    color: #e0e0e0 !important;
    padding: 20px;
    line-height: 1.6;
}

/* Headings */
.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4 {
    color: #00ffff !important;
}

.document-content h1 { font-size: 2rem; border-left: 4px solid #00ffff; padding-left: 15px; }
.document-content h2 { border-bottom: 1px solid #00ffff33; padding-bottom: 8px; margin-top: 30px; }
.document-content h3 { color: #88ddff !important; }

/* Paragraphs and lists */
.document-content p,
.document-content li,
.document-content .we-val,
.document-content .pq-text {
    color: #cccccc !important;
}

/* Worked Examples */
.document-content .worked-example {
    background: #1a1a2e !important;
    border: 1px solid #00ffff33 !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    overflow: hidden;
}

.document-content .we-header {
    background: #00ffff1a !important;
    padding: 10px 15px !important;
    color: #00ffff !important;
    font-weight: bold !important;
    border-bottom: 1px solid #00ffff33 !important;
}

.document-content .we-body {
    padding: 15px !important;
}

.document-content .we-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px dashed #333;
}

.document-content .we-key {
    width: 100px;
    font-weight: bold;
    color: #00ffff !important;
}

.document-content .we-val {
    flex: 1;
}

.document-content .we-row.answer .we-val {
    color: #00ff88 !important;
    font-weight: bold;
}

/* Callout boxes */
.document-content .callout {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    margin: 20px 0;
    border-radius: 10px;
}

.document-content .callout.critical {
    background: #ff00001a !important;
    border-left: 4px solid #ff4444 !important;
}

.document-content .callout.tip {
    background: #00ff001a !important;
    border-left: 4px solid #00ff88 !important;
}

.document-content .callout.note {
    background: #00ffff1a !important;
    border-left: 4px solid #00ffff !important;
}

.document-content .callout-icon {
    font-size: 1.3rem;
}

.document-content .callout-text strong {
    display: block;
    margin-bottom: 5px;
    color: inherit;
}

/* Tables */
.document-content .ch-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.document-content .ch-table th,
.document-content .ch-table td {
    border: 1px solid #333;
    padding: 10px;
    color: #cccccc;
}

.document-content .ch-table th {
    background: #1a1a2e;
    color: #00ffff;
}

/* Ticker tape */
.document-content .ticker-tape-block {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 15px;
    margin: 20px 0;
}

.document-content .tt-rail {
    background: #0a0a0a;
    border-radius: 30px;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
}

.document-content .tt-dot {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    margin: 0 4px;
}

.document-content .tt-caption {
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

/* Practice questions */
.document-content .practice-block {
    margin: 20px 0;
}

.document-content .pq-item {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.document-content .pq-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    background: #0a0a0a;
}

.document-content .pq-num {
    background: #00ffff;
    color: #0a0a0a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.document-content .pq-text {
    flex: 1;
}

.document-content .pq-chevron {
    transition: transform 0.2s;
}

.document-content .pq-item.open .pq-chevron {
    transform: rotate(180deg);
}

.document-content .pq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.document-content .pq-item.open .pq-answer {
    max-height: 300px;
}

.document-content .pq-answer-inner {
    padding: 15px;
    border-top: 1px solid #333;
}

.document-content .ans-label {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Answers section */
.document-content .answers-section {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
}

/* Diagram wrapper */
.document-content .diagram-wrap {
    text-align: center;
    margin: 20px 0;
}

.document-content .diagram-caption {
    color: #888;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Horizontal rule */
.document-content hr {
    border-color: #333;
    margin: 30px 0;
}

/* Print styles — white background for PDF */
@media print {
    .document-content {
        background: white !important;
        color: black !important;
    }
    .document-content h1,
    .document-content h2,
    .document-content h3,
    .document-content .we-key,
    .document-content .ch-table th {
        color: #003366 !important;
    }
    .document-content .worked-example,
    .document-content .callout,
    .document-content .pq-item,
    .document-content .answers-section {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }
    .document-content .tt-dot {
        background: #333 !important;
    }
}