/* ============================================
   LuxTax 2025 - Insights / Blog Styles
   ============================================ */

/* Hero */
.hero-insights {
    padding: 40px 0 32px;
}

.hero-insights .hero-badges {
    margin-top: 16px;
}

.insights-hero-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* ============================================
   Insights Layout
   ============================================ */
.insights-section {
    padding: 32px 0;
}

.insights-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.insights-sidebar {
    position: sticky;
    top: 80px;
}

.insights-nav h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.insights-action-card {
    padding: 18px;
    margin-bottom: 20px;
    background: linear-gradient(160deg, #fff9ec 0%, #f4f8fc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.insights-action-card p {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
}

.insights-action-card .btn {
    width: 100%;
    justify-content: center;
}

.insights-nav ul {
    list-style: none;
}

.insights-nav-link {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: var(--transition);
    margin-bottom: 2px;
}

.insights-nav-link:hover {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.04);
}

.insights-nav-link.active {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.06);
    border-left-color: var(--accent);
    font-weight: 600;
}

/* ============================================
   Insight Articles (Blog Style)
   ============================================ */
.insight-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 80px;
    transition: var(--transition);
}

.insight-article:hover {
    box-shadow: var(--shadow-md);
}

.insight-article.hidden {
    display: none;
}

/* Article Header */
.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.insight-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-tag-guide { background: var(--primary); color: white; }
.insight-tag-tip { background: var(--success); color: white; }
.insight-tag-warning { background: var(--warning); color: white; }
.insight-tag-myth { background: var(--danger); color: white; }

.insight-ref {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.insight-reading-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Article Content */
.insight-article h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.insight-article .insight-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}

.insight-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.insight-article h3:first-of-type {
    border-top: none;
    padding-top: 0;
}

.insight-article p {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.8;
}

.insight-article ul, .insight-article ol {
    margin: 12px 0 16px 20px;
}

.insight-article li {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    padding: 3px 0;
}

/* Key Takeaway Box */
.key-takeaway {
    margin: 20px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #edf4fd 0%, #f0f7ff 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.key-takeaway h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.key-takeaway p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0;
}

.key-takeaway ul {
    margin: 8px 0 0 20px;
}

.key-takeaway li {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* Myth vs Fact Boxes */
.myth-fact {
    margin: 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.myth-box {
    padding: 14px 20px;
    background: #fef2f2;
    border-left: 4px solid var(--danger);
}

.myth-box h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--danger);
    margin-bottom: 4px;
}

.myth-box p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.6;
}

.fact-box {
    padding: 14px 20px;
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}

.fact-box h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--success);
    margin-bottom: 4px;
}

.fact-box p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Calculation Example */
.calc-example {
    margin: 16px 0;
    padding: 20px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font), monospace;
}

.calc-example h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px dashed var(--border-light);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.calc-total {
    font-weight: 700;
    color: var(--primary-dark);
    border-top: 2px solid var(--primary);
    border-bottom: none;
    padding-top: 10px;
    margin-top: 6px;
}

.calc-row.calc-highlight {
    color: var(--success);
    font-weight: 600;
}

/* Threshold Table in Insight */
.insight-table {
    margin: 16px 0;
    overflow-x: auto;
}

.insight-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.insight-table thead th {
    background: var(--primary-dark);
    color: white;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

.insight-table thead th:first-child {
    text-align: left;
    border-radius: var(--radius-sm) 0 0 0;
}

.insight-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.insight-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    color: var(--text);
}

.insight-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.insight-table tbody tr:hover {
    background: rgba(26, 58, 92, 0.02);
}

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

/* Checklist inside insights */
.insight-checklist {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.insight-checklist li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.insight-checklist li:last-child {
    border-bottom: none;
}

.insight-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    color: var(--success);
    font-weight: 700;
}

.insight-checklist-x li::before {
    content: "\2717";
    color: var(--danger);
}

/* Source References */
.insight-sources {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.insight-sources h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.insight-sources ul {
    list-style: none;
    margin: 0;
}

.insight-sources li {
    font-size: 13px;
    color: var(--text-light);
    padding: 3px 0;
}

.insight-sources a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-light);
    transition: var(--transition);
}

.insight-sources a:hover {
    color: var(--primary);
    border-bottom-style: solid;
}

/* Warning Banner */
.insight-warning-banner {
    margin: 24px 0;
    padding: 16px 20px;
    background: #fef3e2;
    border: 1px solid #f6d89a;
    border-left: 4px solid var(--warning);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.insight-warning-banner h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 6px;
}

.insight-warning-banner p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .insights-layout {
        grid-template-columns: 1fr;
    }

    .insights-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .insights-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .insights-action-card .btn {
        width: auto;
    }

    .insights-nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
        font-size: 12px;
    }

    .insights-nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }
}

@media (max-width: 768px) {
    .insight-article {
        padding: 20px;
    }

    .insight-article h2 {
        font-size: 20px;
    }

    .insight-reading-time {
        display: none;
    }

    .calc-row {
        font-size: 13px;
    }

    .insights-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
