/* ============================================================
   style.css — Interactive Guide Overrides
   Inherits ALL base styles from Content/style.css (linked in HTML)
   This file contains ONLY guide-specific components.
   ============================================================ */

/* ============================================================
   GUIDE TAB NAVIGATION
   ============================================================ */
.guide-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.guide-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.guide-tabs::-webkit-scrollbar {
    display: none;
}

.guide-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.guide-tab svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.guide-tab:hover {
    color: var(--text-primary);
    background: var(--gold-glow);
}

.guide-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.guide-tab.active svg {
    opacity: 1;
    stroke: var(--gold);
}

/* ============================================================
   VIEW SECTIONS
   ============================================================ */
.guide-content-area {
    min-height: 60vh;
    background: radial-gradient(ellipse at top center, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    position: relative;
    z-index: 1;
}

.guide-hero {
    min-height: 38vh;
    padding: calc(var(--nav-h) + 2vw) 5vw 3vw;
}

.view-section {
    display: none;
    animation: guideIn 0.45s var(--ease) forwards;
}

.view-section.active {
    display: block;
}

@keyframes guideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   CALCULATOR LAYOUT
   ============================================================ */
.calculator-layout {
    max-width: 1000px;
}

.wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

[data-theme="light"] .wizard-progress {
    background: rgba(0, 0, 0, 0.08);
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: guideIn 0.3s var(--ease);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opt-label,
.chk-label {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.opt-effect {
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 0.25rem;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}

.chk-content {
    display: flex;
    flex-direction: column;
}

.option-btn:hover {
    border-color: var(--border-gold);
    background: var(--gold-glow);
}

.option-btn.selected {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold);
}

.helper-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
}

.checkbox-option:hover {
    border-color: var(--border-gold);
}

.checkbox-option input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: color 0.2s;
}

.btn-text:hover:not(:disabled) {
    color: var(--gold);
}

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

.step-indicator {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   RESULTS PANEL
   ============================================================ */
.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.disclaimer-badge {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-top: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.result-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.result-card.highlight {
    background: linear-gradient(145deg, var(--gold-glow) 0%, var(--bg-secondary) 100%);
    border-color: var(--border-gold);
}

.result-card h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin: 0.25rem 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.check-list li {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    align-items: flex-start;
}

.check-list li::before {
    content: '✓';
    color: var(--gold);
    flex-shrink: 0;
}

.results-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.results-disclaimer p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.65;
}

.results-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   PATHWAYS (use main site .card system via HTML classes)
   ============================================================ */
.pathways-grid .card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.pathways-grid .card h3 {
    color: var(--gold);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.pathway-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pathway-tag {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--gold-glow);
    color: var(--gold);
    font-weight: 600;
}

.pathway-stat {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   COMPARISON DASHBOARD
   ============================================================ */
.scenario-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.glass-select {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.glass-select:focus {
    outline: none;
    border-color: var(--gold);
}

.vs-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-table td {
    font-size: 0.95rem;
}

.comparison-table tr:hover td {
    background: var(--gold-glow);
}

.table-footnote {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 1.5rem;
    font-style: italic;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.score-panel {
    position: sticky;
    top: 80px;
    z-index: 10;
    text-align: center;
}

.circular-progress {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0%, rgba(255, 255, 255, 0.08) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    position: relative;
}

[data-theme="light"] .circular-progress {
    background: conic-gradient(var(--gold) 0%, rgba(0, 0, 0, 0.08) 0%);
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--card-bg);
    border-radius: 50%;
}

.progress-value {
    position: relative;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-primary);
}

.score-msg {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.checklist-actions {
    margin-top: 1rem;
}

.btn-sm {
    padding: 8px 18px !important;
    font-size: 0.75rem !important;
}

.check-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.check-group:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.check-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.check-group .phase-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--gold-glow);
    color: var(--gold);
    font-weight: 600;
}

.art-ref {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: auto;
}

/* ============================================================
   ROADMAP TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--border-color));
}

.timeline-step {
    position: relative;
    padding-bottom: 2.5rem;
    cursor: pointer;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 1px);
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--gold);
    transition: background 0.3s;
    z-index: 2;
}

.timeline-step:hover::before {
    background: var(--gold);
}

.timeline-step h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
}

.timeline-step p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.timeline-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.timeline-meta span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-meta span::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    content: '';
}

.timeline-details {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.timeline-details.open {
    display: block;
    animation: guideIn 0.3s var(--ease);
}

.timeline-details ul {
    list-style: disc;
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.timeline-details li {
    margin-bottom: 0.35rem;
}

/* ============================================================
   REGULATION EXPLORER
   ============================================================ */
.explorer-search {
    margin-bottom: 2rem;
}

.glass-input {
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

.glass-input:focus {
    outline: none;
    border-color: var(--gold);
}

.reg-article {
    border-left: 3px solid var(--border-color);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    transition: border-color 0.3s;
}

.reg-article:hover {
    border-left-color: var(--gold);
}

.reg-article .meta {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    font-weight: 600;
}

.reg-article h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.reg-article blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================================
   LEAD CAPTURE BAR
   ============================================================ */
.lead-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    padding: 12px 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .lead-bar {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.lead-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lead-bar p {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin: 0;
}

.lead-bar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #25D366;
    color: #fff !important;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .checklist-container {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 768px) {
    .guide-tab span {
        display: none;
    }

    .guide-tab {
        padding: 14px 16px;
    }

    .guide-tab svg {
        width: 20px;
        height: 20px;
    }

    .calculator-layout {
        max-width: 100%;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .checklist-container {
        grid-template-columns: 1fr;
    }

    .score-panel {
        position: static;
    }

    .lead-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .lead-bar p {
        font-size: 0.82rem;
    }

    .scenario-selector {
        flex-direction: column;
    }

    .vs-badge {
        display: none;
    }
}