/* ===== DEEP SELF PEDAGOGICAL COMPONENTS ===== */
/* Reusable teaching elements for knowledge transmission */

/* ===== DEFINITION CARDS ===== */
/* Inline definition for key terms */
.definition-card {
    background: rgba(184, 149, 110, 0.08);
    border: 1px solid rgba(184, 149, 110, 0.3);
    border-left: 3px solid var(--gold);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.definition-card::before {
    content: 'DEFINITION';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: var(--black);
    padding: 0 0.5rem;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-family: var(--font-sans);
}

.definition-term {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.definition-text {
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.7;
    margin: 0;
}

.definition-text em {
    color: var(--gold);
    font-style: normal;
}

/* Compact inline definition */
.definition-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: rgba(184, 149, 110, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin: 0.25rem 0;
}

.definition-inline .term {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.definition-inline .meaning {
    font-size: 0.8125rem;
    color: var(--cream);
    opacity: 0.8;
}

/* ===== PLAIN ENGLISH CALLOUTS ===== */
/* Simplifies complex concepts */
.plain-english {
    background: rgba(0, 245, 160, 0.06);
    border: 1px solid rgba(0, 245, 160, 0.2);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.plain-english::before {
    content: 'IN PLAIN ENGLISH';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: var(--black);
    padding: 0 0.5rem;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--green);
    font-family: var(--font-sans);
}

.plain-english p {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.7;
    margin: 0;
}

.plain-english strong {
    color: var(--green);
}

/* Alternative: "What This Means" */
.what-this-means {
    background: rgba(0, 245, 160, 0.06);
    border: 1px solid rgba(0, 245, 160, 0.2);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.what-this-means::before {
    content: 'WHAT THIS MEANS';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: var(--black);
    padding: 0 0.5rem;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--green);
    font-family: var(--font-sans);
}

.what-this-means p {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.7;
    margin: 0;
}

/* ===== KEY INSIGHT BOXES ===== */
.key-insight {
    background: linear-gradient(135deg, rgba(184, 149, 110, 0.1) 0%, rgba(184, 149, 110, 0.05) 100%);
    border: 1px solid rgba(184, 149, 110, 0.3);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.key-insight::before {
    content: '◆';
    display: block;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.key-insight p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.6;
    margin: 0;
}

.key-insight strong {
    color: var(--gold);
    font-style: normal;
}

/* ===== STAT BLOCKS ===== */
.stat-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-block {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
}

.stat-block--gold .stat-number {
    color: var(--gold);
}

/* ===== NUMBERED CONCEPTS ===== */
.concept-list {
    counter-reset: concept-counter;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.concept-item {
    counter-increment: concept-counter;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--grey-dark);
}

.concept-item:last-child {
    border-bottom: none;
}

.concept-item::before {
    content: counter(concept-counter, decimal-leading-zero);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.6;
    min-width: 2rem;
}

.concept-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.concept-content p {
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.8;
    line-height: 1.7;
    margin: 0;
}

/* ===== GLOSSARY STYLES ===== */
.glossary-grid {
    display: grid;
    gap: 1px;
    background: var(--grey-dark);
    border: 1px solid var(--grey-dark);
}

.glossary-entry {
    background: var(--black);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.glossary-term {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glossary-definition {
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.7;
}

.glossary-definition em {
    color: var(--green);
    font-style: normal;
}

@media (max-width: 768px) {
    .glossary-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-dark);
}

.comparison-table th:first-child {
    color: var(--red);
}

.comparison-table th:last-child {
    color: var(--green);
}

.comparison-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.85;
    border-bottom: 1px solid var(--grey-dark);
    vertical-align: top;
}

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

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
}

/* ===== TERM HIGHLIGHT ===== */
/* For highlighting terms that link to glossary */
.term-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted rgba(184, 149, 110, 0.5);
    transition: all 0.3s ease;
}

.term-link:hover {
    color: var(--cream);
    border-bottom-color: var(--cream);
}

/* ===== LEARNING PATHWAY ===== */
.learning-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.learning-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learning-step-num {
    width: 24px;
    height: 24px;
    background: rgba(184, 149, 110, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-step-text {
    font-size: 0.8125rem;
    color: var(--cream);
}

.learning-arrow {
    color: var(--grey);
    font-size: 0.875rem;
}

/* ===== SUMMARY BOX ===== */
.summary-box {
    background: var(--charcoal);
    border: 1px solid var(--grey-dark);
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-box-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-box li {
    font-size: 0.9375rem;
    color: var(--cream);
    opacity: 0.85;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.summary-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ===== PREREQUISITE NOTICE ===== */
.prereq-notice {
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--cream);
    opacity: 0.9;
}

.prereq-notice::before {
    content: 'PREREQUISITE: ';
    font-weight: 700;
    color: var(--red);
}

/* ===== SECTION ANCHOR ===== */
.section-anchor {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--grey);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

/* ===== LENS SYSTEM ===== */
/* Contextual learning popups - magnifying glass triggers */

/* The lens trigger button */
.lens-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(184, 149, 110, 0.1);
    border: 1px solid rgba(184, 149, 110, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.lens-trigger:hover {
    background: rgba(184, 149, 110, 0.2);
    border-color: var(--gold);
    transform: scale(1.1);
}

.lens-trigger svg {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
}

/* Positioned lens (for floating near sections) */
.lens-float {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Lens in a card corner */
.lens-corner {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
}

/* The modal overlay */
.lens-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lens-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* The popup card */
.lens-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--charcoal);
    border: 1px solid rgba(184, 149, 110, 0.4);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lens-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup header */
.lens-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--grey-dark);
    position: relative;
}

.lens-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream);
    margin: 0;
    padding-right: 2rem;
}

.lens-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--grey-dark);
    color: var(--grey);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lens-close:hover {
    border-color: var(--cream);
    color: var(--cream);
}

/* Popup content sections */
.lens-body {
    padding: 1.5rem;
}

.lens-section {
    margin-bottom: 1.5rem;
}

.lens-section:last-child {
    margin-bottom: 0;
}

.lens-section-label {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.lens-section--what .lens-section-label {
    color: var(--gold);
}

.lens-section--benefit .lens-section-label {
    color: var(--green);
}

.lens-section--meaning .lens-section-label {
    color: var(--cream);
    opacity: 0.6;
}

.lens-section p {
    font-size: 0.9375rem;
    color: var(--cream);
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

.lens-section--benefit p {
    color: var(--green);
}

/* Lens legend (explains what the magnifying glass means) */
.lens-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(184, 149, 110, 0.05);
    border: 1px solid rgba(184, 149, 110, 0.15);
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    color: var(--grey);
}

.lens-legend svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.lens-legend span {
    color: var(--gold);
    font-weight: 600;
}

/* Inline lens (next to text) */
.lens-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Card with lens built-in */
.lens-card {
    position: relative;
}

/* Responsive */
@media (max-width: 600px) {
    .lens-popup {
        max-height: 90vh;
        width: 95%;
    }

    .lens-header {
        padding: 1.25rem;
    }

    .lens-body {
        padding: 1.25rem;
    }

    .lens-title {
        font-size: 1.25rem;
    }
}

/* ===== SALES HEADER BANNER ===== */
/* Urgency banner that sticks under nav and hides on scroll */
.sales-header {
    background: linear-gradient(135deg, rgba(184, 149, 110, 0.15) 0%, rgba(184, 149, 110, 0.05) 100%);
    border-bottom: 1px solid rgba(184, 149, 110, 0.2);
    padding: 0 2rem;
    min-height: 88px;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Add padding to body/main content to account for fixed sales header */
body.has-sales-header {
    padding-top: 100px;
}

.sales-header-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sales-header-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--cream);
    opacity: 0.85;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 600px;
}

.sales-header-text strong {
    color: var(--gold);
    font-weight: 600;
}

.sales-header-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    background: var(--gold);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sales-header-cta:hover {
    background: var(--cream);
    color: var(--black);
}

@media (max-width: 700px) {
    .sales-header {
        padding: 0.75rem 1rem;
    }

    .sales-header-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .sales-header-text {
        font-size: 0.75rem;
    }
}
