/* Filename: /assets/css/support-trust-data.css 
   Theme: SaaS Trust & Authority (Clean Blue)
*/

:root {
    /* --- COLOR PALETTE --- */
    --primary: #2563eb;          /* Main Action Blue */
    --primary-dark: #1e40af;     /* Hover/Header Blue */
    --text-main: #0f172a;        /* High Contrast Text */
    --text-muted: #475569;       /* Reading Text */
    --bg-body: #f1f5f9;          /* Light Grey Background */
    --bg-card: #ffffff;          /* White Card Background */
    --border: #e2e8f0;           /* Subtle Borders */
    --success-bg: #f0fdf4;       /* Green Backgrounds */
    --success-text: #166534;     /* Green Text */
    --warning-bg: #fff7ed;       /* Orange Backgrounds */
    --warning-border: #fdba74;   /* Orange Borders */
}

/* --- BASE RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT GRID --- */
.main-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar Fixed | Content Fluid */
    gap: 40px;
    padding: 0 20px;
}

/* --- SIDEBAR (STICKY TOC) --- */
.sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(2px);
}

/* --- MAIN ARTICLE CARD --- */
.article-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

/* --- HEADER SECTION --- */
.article-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 45px 50px;
    color: white;
}

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 18px;
    opacity: 0.9;
    font-weight: 500;
}

.breadcrumbs a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.meta-trust {
    margin-top: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* --- CONTENT BODY TYPOGRAPHY --- */
.content-body {
    padding: 50px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 45px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 19px;
    font-weight: 600;
    color: #334155;
    margin-top: 30px;
    margin-bottom: 10px;
}

p, li {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 1.6em;
}

/* Internal Links Style */
.internal-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.internal-link:hover {
    color: var(--primary-dark);
}

/* --- COMPONENTS --- */

/* 1. Snippet Box (Position Zero) */
.snippet-definition {
    background: #eff6ff;
    border-left: 5px solid var(--primary);
    padding: 25px;
    font-size: 17px;
    color: #1e3a8a;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* 2. Data Table (Comparison) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    border: 1px solid var(--border);
    font-size: 15px;
}

.data-table th {
    background: #f8fafc;
    padding: 14px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.data-table tr:hover {
    background: #fafafa;
}

/* 3. Honesty Block (Trust Signal) */
.honesty-block {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 10px;
    padding: 20px 25px;
    margin: 35px 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.honesty-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

/* 4. CTA Wrapper (Conversion) */
.cta-wrapper {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.urgency-text {
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.urgency-text span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 5. FAQ Details */
details {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
}

details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

summary {
    padding: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    position: relative;
    padding-right: 40px;
}

/* Custom Arrow for Summary */
summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: var(--primary);
    font-weight: 400;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 18px 18px 18px;
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .main-wrapper {
        grid-template-columns: 1fr; /* Stack Layout */
        gap: 30px;
    }
    
    .sidebar {
        display: none; /* Hide Sidebar on Mobile */
    }
    
    .article-header {
        padding: 30px 20px;
        text-align: center;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .content-body {
        padding: 25px 20px;
    }
    
    .data-table {
        display: block;
        overflow-x: auto; /* Scrollable Table */
        white-space: nowrap;
    }
    
    .meta-trust {
        width: 100%;
        justify-content: center;
    }
    
    .cta-wrapper {
        padding: 25px;
    }
}
