/* Guide Page Specific Styles */

.guide-container {
    background: var(--gradient-background);
    min-height: 100vh;
    padding: 2rem 0 4rem 0;
}

.guide-container .container {
    max-width: 1200px;
}

/* Back to Calculator Link */
.back-to-calc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.back-to-calc-link:hover {
    color: var(--primary-dark);
    background: rgba(109, 40, 217, 0.05);
    transform: translateX(-4px);
}

/* Hero Section */
.guide-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
}

.guide-title {
    font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.5rem;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
    font-weight: 400;
}

.guide-intro {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Quick Navigation */
.guide-nav {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
}

.guide-nav h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guide-nav-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.guide-nav-links a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Guide Sections */
.guide-section {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.guide-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.guide-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guide-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.guide-section ul {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

.subsection-title {
    font-size: 1.75rem !important;
    color: var(--primary-color) !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid;
}

.comparison-card.pros-card {
    background: #F0FDF4;
    border-color: #86EFAC;
}

.comparison-card.cons-card {
    background: #FEF2F2;
    border-color: #FCA5A5;
}

.comparison-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.comparison-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-medium);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.comparison-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.comparison-list:not(.cons) li i {
    color: #16A34A;
}

.comparison-list.cons li i {
    color: #DC2626;
}

/* Insight Boxes */
.insight-box {
    background: #EDE9FE;
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.insight-box.warning {
    background: #FEF3C7;
    border-left-color: #F59E0B;
}

.insight-box.success {
    background: #D1FAE5;
    border-left-color: #10B981;
}

.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-content h4 {
    margin-top: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-bottom: 0.75rem;
}

.insight-content p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
}

.insight-content p:last-child {
    margin-bottom: 0;
}

.insight-content em {
    font-style: italic;
    font-weight: 500;
}

/* Forces Grid */
.forces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.force-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.force-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.force-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.force-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0 0 0.5rem 0;
}

.force-stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.force-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.force-card ul {
    text-align: left;
    font-size: 0.9rem;
    padding-left: 1.25rem;
    margin: 0;
}

.force-card li {
    margin-bottom: 0.5rem;
}

/* Costs Grid */
.costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.cost-card {
    background: #FEF2F2;
    border: 2px solid #FCA5A5;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.cost-card.sell {
    background: #FEF9E7;
    border-color: #F4D03F;
}

.cost-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cost-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0 0 0.75rem 0;
}

.cost-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 0.75rem;
}

.cost-card.sell .cost-amount {
    color: #D4AF37;
}

.cost-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

/* Tax Explainer */
.tax-explainer {
    margin: 2rem 0;
}

.tax-rates {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
}

.tax-rate-card {
    background: var(--gradient-card-alt);
    border: 2px solid var(--primary-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.rate-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.rate-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-deeper);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.rate-detail {
    font-size: 0.85rem;
    color: var(--text-color-medium);
}

.tax-content {
    margin: 2rem 0;
}

.tax-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin-bottom: 1rem;
}

.tax-content ul {
    line-height: 1.8;
}

.tax-content li {
    margin-bottom: 0.75rem;
}

/* Section 24 Example */
.section-24-example {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.before, .after {
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.before {
    background: #F0FDF4;
    border: 2px solid #86EFAC;
}

.after {
    background: #FEF2F2;
    border: 2px solid #FCA5A5;
}

.before h5, .after h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.before p, .after p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.section-24-impact {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #DC2626;
    text-align: center;
    padding: 1rem;
    background: #FEF2F2;
    border-radius: 0.5rem;
    margin: 0;
}

.section-24-impact strong {
    font-weight: 700;
}

/* Scenario Cards */
.example-scenarios {
    margin: 2rem 0;
}

.scenario-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.scenario-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scenario-header.scenario-sell {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
}

.scenario-header.scenario-let {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.scenario-header.scenario-close {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.scenario-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0;
}

.scenario-badge {
    background: white;
    color: var(--primary-deeper);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-subtle);
}

.scenario-details {
    padding: 2rem;
}

.scenario-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.scenario-details ul {
    margin-bottom: 1.5rem;
}

.scenario-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.scenario-option {
    background: var(--gradient-card);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.scenario-option h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0 0 1rem 0;
    text-align: center;
}

.scenario-option p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.final-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.scenario-verdict {
    background: #F3F4F6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.scenario-verdict strong {
    color: var(--primary-deeper);
    font-weight: 600;
}

/* Misconceptions Grid */
.misconceptions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.misconception-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.misconception-header {
    background: #FEF2F2;
    padding: 1.25rem;
}

.myth-label {
    display: inline-block;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.misconception-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.reality {
    padding: 1.25rem;
}

.reality-label {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.reality p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Beyond Numbers Grid */
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.beyond-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.beyond-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.beyond-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.beyond-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-deeper);
    margin: 0 0 1rem 0;
}

.beyond-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    margin: 0;
}

/* CTA Section */
.guide-cta-section {
    margin-top: 3rem;
}

.guide-cta-box {
    background: var(--gradient-primary);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-prominent);
}

.guide-cta-box h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button, .cta-button-large {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-deeper);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.cta-button-large {
    padding: 1rem 3rem;
    font-size: 1.25rem;
}

.cta-button:hover, .cta-button-large:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960F 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), 0 8px 16px rgba(212, 175, 55, 0.4);
    color: var(--primary-deeper);
}

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .guide-title {
        font-size: 2.5rem;
    }

    .guide-subtitle {
        font-size: 1.25rem;
    }

    .comparison-grid,
    .forces-grid,
    .misconceptions-grid {
        grid-template-columns: 1fr;
    }

    .costs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .beyond-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tax-rates {
        flex-direction: column;
        align-items: center;
    }

    .before-after,
    .scenario-comparison {
        grid-template-columns: 1fr;
    }

    .guide-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 2rem 1rem;
    }

    .guide-title {
        font-size: 2rem;
    }

    .guide-subtitle {
        font-size: 1.125rem;
    }

    .guide-section h2 {
        font-size: 1.75rem;
    }

    .costs-grid,
    .beyond-grid {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        padding: 1.5rem;
    }

    .guide-nav-links {
        gap: 0.5rem;
    }

    .guide-nav-links a {
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
    }

    .scenario-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .scenario-header h3 {
        font-size: 1.5rem;
    }

    .guide-cta-box {
        padding: 2rem;
    }

    .guide-cta-box h2 {
        font-size: 1.75rem;
    }

    .cta-button-large {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .guide-section {
        padding: 1.5rem;
    }

    .guide-title {
        font-size: 1.75rem;
    }

    .force-icon,
    .comparison-icon {
        font-size: 2.5rem;
    }

    .insight-box {
        flex-direction: column;
        text-align: center;
    }

    .insight-icon {
        font-size: 2.5rem;
    }
}
