/* ===== MCP & TOOL DESIGN GUIDE - Override Styles ===== */
/* Base styles from common/base.css */

:root {
    --accent: #06b6d4;
    --accent-dim: #06b6d420;
    --gradient-1: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-2: linear-gradient(135deg, #6366f1, #a78bfa);
    --gradient-3: linear-gradient(135deg, #10b981, #06b6d4);
}

/* ===== HERO GLOW ===== */

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: #06b6d4;
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    bottom: -200px;
    left: -100px;
    opacity: 0.12;
}

/* ===== PRIMITIVE / FOUNDATION CARDS ===== */

.dx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.dx-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s;
}

.dx-card:hover { border-color: var(--accent); }

.dx-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.dx-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--accent-dim);
    color: var(--accent);
}

.dx-header h3 { font-size: 1.15rem; color: var(--text-strong); margin: 0; }
.dx-header .dx-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.dx-body { padding: 24px 28px; }

.dx-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.dx-col { padding: 16px; border-radius: var(--radius); font-size: 0.88rem; line-height: 1.6; }
.dx-col-classic { background: rgba(107,114,128,0.08); border: 1px solid rgba(107,114,128,0.2); }
.dx-col-ax { background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.25); }

.dx-col-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: block;
}

.dx-col-classic .dx-col-label { color: #9ca3af; }
.dx-col-ax .dx-col-label { color: var(--accent); }
.dx-col p { margin: 0; color: var(--text); }

.dx-why { font-size: 0.88rem; line-height: 1.6; color: var(--text); }

.dx-why code, .dx-col code {
    background: rgba(6,182,212,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .dx-comparison { grid-template-columns: 1fr; }
    .symptom-grid { grid-template-columns: 1fr; }
}

/* ===== PRIMITIVE GRID (3-up) ===== */

.prim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

/* ===== SYMPTOM (ANTI-PATTERN) CARDS ===== */

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.symptom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.3s;
}

.symptom-card:hover { border-color: var(--accent); }

.symptom-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.symptom-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

.symptom-card h4 { font-size: 1.05rem; color: var(--text-strong); margin: 0; }
.symptom-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text); margin: 0 0 12px; }

.symptom-fix {
    font-size: 0.82rem;
    padding: 10px 14px;
    background: rgba(16,185,129,0.08);
    border-left: 3px solid #10b981;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #10b981;
    font-weight: 500;
}

/* ===== TABLE ===== */

.evo-table-wrapper { overflow-x: auto; margin-top: 32px; }
.evo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }

.evo-table th {
    text-align: left;
    padding: 14px 18px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.evo-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); }
.evo-table tr:hover td { background: var(--bg-card); }
.evo-table .evo-highlight { color: var(--accent); font-weight: 600; }
.evo-table code {
    background: rgba(6,182,212,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

/* ===== DECISION TIMELINE ===== */

.plan-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.plan-week {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: border-color 0.3s;
}

.plan-week:hover { border-color: var(--accent); }

.plan-week-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: #000;
}

.plan-week h4 { margin: 12px 0 10px; color: var(--text-strong); font-size: 1rem; }
.plan-week p { font-size: 0.88rem; color: var(--text); line-height: 1.6; margin: 0; }

/* ===== INSIGHT BOX ===== */

.insight-box {
    max-width: 860px;
    margin: 40px auto;
    padding: 24px 28px;
    background: rgba(6,182,212,0.06);
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.insight-box strong { color: var(--accent); }
.insight-box code {
    background: rgba(6,182,212,0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

/* ===== CODE BLOCK ===== */

.code-block {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9d1d9;
    overflow-x: auto;
    margin: 16px 0 0;
    white-space: pre;
}

.code-block .c { color: #8b949e; }
.code-block .k { color: #06b6d4; }
.code-block .s { color: #a5d6ff; }
