/* ============================================================
   Claritas Academics — Blog Interactive Calculators & Simulators
   Used in: hsc-moderation-explained.html, hsc-alignment-explained.html
   ============================================================ */

/* ---------------- Interactive Container ---------------- */
.interactive-section {
    background: #ffffff;
    border: 1px solid rgba(15, 76, 117, 0.12);
    border-radius: 20px;
    padding: 2.2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.interactive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.interactive-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.interactive-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------- Moderation Simulator Specifics ---------------- */
.inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.student-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.25s ease;
}

.student-input-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(15, 76, 117, 0.08);
    transform: translateY(-2px);
}

.student-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.student-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
}

.avatar-alice { background: #0f4c75; }
.avatar-bob { background: #c9a961; }
.avatar-charlie { background: #2F0A61; }

.input-group {
    margin-bottom: 0.8rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.input-group input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
}

.moderation-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.moderation-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.moderation-table th {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.moderation-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text);
    font-weight: 500;
}

.moderation-table tr:last-child td {
    border-bottom: none;
}

.moderation-table tr:nth-child(even) {
    background: #f8fafc;
}

.rank-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
}

.rank-1 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rank-2 { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.rank-3 { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.highlight-col {
    font-weight: 700 !important;
    color: var(--accent) !important;
}

.final-mark-col {
    font-weight: 800 !important;
    color: var(--primary) !important;
    font-size: 1.05rem;
    background: rgba(201, 169, 97, 0.12);
}

/* ---------------- Alignment Simulator Specifics ---------------- */
.difficulty-presets {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: var(--primary);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--accent);
    background: #e2e8f0;
}

.preset-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(15, 76, 117, 0.25);
}

.sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sim-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
}

.sim-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-input-row {
    margin-bottom: 1rem;
}

.sim-input-row:last-child {
    margin-bottom: 0;
}

.sim-input-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.35rem;
}

.sim-input-row label span.val-label {
    color: var(--accent);
    font-weight: 700;
}

.sim-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.result-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.2);
}

.result-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.result-score {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.result-band-badge {
    display: inline-block;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.result-subtext {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ---------------- Band Spectrum Visualizer ---------------- */
.band-spectrum {
    margin-top: 1.5rem;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.band-spectrum-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.band-bar-container {
    position: relative;
    height: 28px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.band-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    transition: width 0.3s ease;
}

.band-seg-b2 { background: #94a3b8; }
.band-seg-b3 { background: #64748b; }
.band-seg-b4 { background: #0284c7; }
.band-seg-b5 { background: #0f4c75; }
.band-seg-b6 { background: #c9a961; }

.spectrum-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 4px;
    background: #ef4444;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    transition: left 0.2s ease;
    z-index: 5;
}

/* ---------------- Trinity Comparison Cards ---------------- */
.trinity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trinity-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.trinity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.trinity-card.highlight {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.trinity-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.8rem;
    align-self: flex-start;
}

.tag-moderation { background: #e0f2fe; color: #0369a1; }
.tag-alignment { background: #fef3c7; color: #b45309; }
.tag-scaling { background: #f3e8ff; color: #7e22ce; }

.trinity-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.trinity-card p {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 0.8rem;
    line-height: 1.55;
}

.trinity-who {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
}

/* ---------------- Myth Buster Callouts ---------------- */
.myth-buster-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #fecaca;
    overflow: hidden;
    margin: 2.5rem 0;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.06);
}

.myth-header {
    background: #fee2e2;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #991b1b;
    font-weight: 700;
    font-size: 1.1rem;
}

.myth-body {
    padding: 1.5rem;
}

.myth-text {
    color: #991b1b;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.truth-text {
    color: #065f46;
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.truth-text strong {
    color: #047857;
}

/* ---------------- Callouts & Tables ---------------- */
.disclaimer-callout {
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.05) 0%, rgba(47, 10, 97, 0.05) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.disclaimer-callout h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-callout p {
    font-size: 0.93rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.key-takeaway {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.8rem 0;
}

.key-takeaway h4 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.key-takeaway p {
    color: #78350f;
    margin: 0;
    font-size: 0.95rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    margin: 1.8rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comparison-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text);
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

.source-callout {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.source-callout-text h4 {
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.source-callout-text p {
    color: #0c4a6e;
    font-size: 0.9rem;
    margin: 0;
}

.source-btn {
    background: #0284c7;
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.source-btn:hover {
    background: #0369a1;
}
