/*
 * notes-content.css
 *
 * Shared styles for note block content rendering.
 * Used by:
 *   - resources/views/teacher/notes/pdf.blade.php  (print/PDF context)
 *   - resources/views/guest/notes/preview.blade.php (web preview context)
 *   - resources/views/teacher/notes/partials/_block.blade.php (authenticated view)
 *
 * Place at: public/assets/css/notes-content.css
 *
 * In pdf.blade.php, inline this via <style>@import ... </style> or copy
 * directly (PDF renderers don't always support external stylesheets).
 * In web blades, link normally: <link href="/assets/css/notes-content.css">
 */

/* ── Strand heading ─────────────────────────────────────────── */
.strand-heading {
    font-family: Arial, sans-serif;
    font-size: 14pt;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #0d9488, #0891b2);
    padding: .35cm .6cm;
    border-radius: 6px;
    margin-bottom: .5cm;
}

.strand-label {
    font-size: 8pt;
    font-weight: 400;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: block;
    margin-bottom: 2px;
}

/* ── Section heading ────────────────────────────────────────── */
.section-heading {
    font-family: Arial, sans-serif;
    font-size: 11.5pt;
    font-weight: 700;
    color: #1e3a5f;
    background: #f0f9ff;
    border-left: 5px solid #0284c7;
    padding: .2cm .5cm;
    border-radius: 0 6px 6px 0;
    margin-bottom: .35cm;
    margin-top: .7cm;
}

.section-label {
    font-size: 7.5pt;
    font-weight: 400;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
    margin-bottom: 1px;
}

/* ── Outcome heading ────────────────────────────────────────── */
.outcome-heading {
    font-family: Arial, sans-serif;
    font-size: 10.5pt;
    font-weight: 700;
    color: #3730a3;
    border-left: 3px solid #6366f1;
    padding: .1cm .4cm;
    margin-bottom: .25cm;
    margin-top: .5cm;
    background: #fafafe;
    border-radius: 0 4px 4px 0;
}

.outcome-label {
    font-size: 7.5pt;
    font-weight: 400;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
    margin-bottom: 1px;
}

/* ── Note content body ──────────────────────────────────────── */
.note-content {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.7;
    color: #1a1a2e;
}

.note-content h3 {
    font-family: Arial, sans-serif;
    font-size: 11pt;
    font-weight: 700;
    color: #1e3a5f;
    border-left: 4px solid #3b82f6;
    padding-left: .35cm;
    margin-top: .55cm;
    margin-bottom: .2cm;
}

.note-content h4 {
    font-family: Arial, sans-serif;
    font-size: 10.5pt;
    font-weight: 700;
    color: #0f766e;
    border-left: 3px solid #0f766e;
    padding-left: .3cm;
    margin-top: .4cm;
    margin-bottom: .15cm;
}

.note-content b,
.note-content strong {
    color: #b45309;
}

.note-content em,
.note-content i {
    color: #6d28d9;
}

.note-content ul,
.note-content ol {
    padding-left: 1.2cm;
    margin: .25cm 0;
}

.note-content li {
    margin-bottom: .1cm;
}

.note-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin: .4cm 0;
}

.note-content th {
    background: #0d9488;
    color: #fff;
    padding: .2cm .35cm;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    border: 1px solid #0f766e;
}

.note-content td {
    border: 1px solid #cbd5e1;
    padding: .18cm .35cm;
    vertical-align: top;
}

.note-content tr:nth-child(even) td {
    background: #f0fdfa;
}

/* ── Diagrams ───────────────────────────────────────────────── */
.note-content .note-diagram {
    max-width: 100%;
    max-height: 9cm;
    display: block;
    margin: .4cm auto;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.img-figure {
    display: block;
    margin: .4cm auto;
    text-align: center;
}

.img-figure .note-diagram {
    margin: 0 auto .15cm;
}

.img-caption {
    font-family: Arial, sans-serif;
    font-size: 8.5pt;
    font-style: italic;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    margin-top: .1cm;
    display: block;
}

.note-diagram-pending {
    display: inline-block;
    background: #fef3c7;
    border: 1px dashed #fcd34d;
    color: #92400e;
    font-size: 9pt;
    padding: .2cm .5cm;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    margin: .3cm 0;
}

/* ── Block separator ────────────────────────────────────────── */
.block-sep {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: .3cm 0;
}

/* ── Web-only: locked/blurred section ──────────────────────── */
/* Only applies in browser context, not in PDF */
.notes-locked-section {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.notes-locked-section .notes-lock-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: .55;
}

.notes-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .97) 35%);
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* ── Print overrides (when web preview is printed) ──────────── */
@media print {

    .notes-locked-section,
    .notes-lock-blur,
    .notes-locked-overlay {
        display: none !important;
    }
}