/* ══════════════════════════════════════
   CARDS — cards.css
   Block: Generic white card, result-card, priority-block, ai-block
   ══════════════════════════════════════ */

/* ── Generic card ── */
.card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-icon { font-size: 16px; }

/* ── Result card (three-col) ── */
.result-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-card-head {
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rch-emoji { font-size: 16px; }

.rch-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex: 1;
}

.rch-num {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.rch-num.green  { background: var(--green-light);  color: var(--green); }
.rch-num.red    { background: var(--red-light);    color: var(--red); }
.rch-num.orange { background: var(--orange-light); color: var(--orange); }

.result-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Result item (ri) ── */
.ri {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}

.ri.green  { background: #f0fdf4; border-left-color: var(--green); }
.ri.red    { background: #fff5f5; border-left-color: var(--red); }
.ri.orange { background: #fff8f0; border-left-color: var(--orange); }

.ri-icon  { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.ri-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.ri-desc  { font-size: 11.5px; color: var(--ink3); margin-top: 2px; line-height: 1.5; }

/* ── AI insight block ── */
.ai-block {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
}

.ai-block-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-gradient);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-block-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 5px;
}

.ai-block-text {
    font-size: 13.5px;
    color: var(--ink2);
    line-height: 1.7;
}

.ai-block-text strong { color: var(--ink); font-weight: 600; }

/* ── Priority block ── */
.priority-block {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.priority-block-head {
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border);
}

.priority-block-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.priority-block-sub {
    font-size: 12px;
    color: var(--ink3);
    margin-top: 3px;
}

/* ── Fix item (inside priority block) ── */
.fix-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
    cursor: pointer;
}

.fix-item:last-child { border-bottom: none; }
.fix-item:hover      { background: var(--bg); }

.fix-num {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.fix-num.p1 { background: var(--red-light);    color: var(--red); }
.fix-num.p2 { background: var(--orange-light); color: var(--orange); }
.fix-num.p3 { background: var(--yellow-light); color: var(--yellow); }

.fix-content { flex: 1; }

.fix-title {
    font-size: 13.5px;
    font-weight: 600;
}

.fix-meta {
    font-size: 11.5px;
    color: var(--ink3);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fix-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
}
.fix-tag.tech    { background: var(--accent-light);  color: #1a7a40; }
.fix-tag.content { background: var(--teal-light);    color: var(--teal); }
.fix-tag.ads     { background: var(--yellow-light);  color: var(--yellow); }
.fix-tag.ux      { background: var(--pink-light);    color: var(--pink); }

.fix-impact           { font-size: 12px; font-weight: 600; white-space: nowrap; }
.fix-impact.good      { color: var(--green); }
.fix-impact.mid       { color: var(--orange); }

/* ── Insight card (home quick stats) ── */
.insight-card {
    background: var(--accent-light);
    border: 1.5px solid rgba(0,192,84,.2);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.insight-icon  { font-size: 22px; flex-shrink: 0; }
.insight-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.insight-text  { font-size: 12px; color: var(--ink2); line-height: 1.5; }

/* ── Issue list (home) ── */
.issue-list { display: flex; flex-direction: column; gap: 8px; }

.issue-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    transition: border-color .15s;
    cursor: pointer;
}

.issue-row:hover { border-color: var(--ink4); }

.issue-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.issue-dot.high { background: var(--red); }
.issue-dot.mid  { background: var(--orange); }
.issue-dot.low  { background: var(--yellow); }

.issue-text {
    font-size: 13px;
    flex: 1;
    line-height: 1.4;
}

.issue-source {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: auto;
    white-space: nowrap;
    align-self: center;
}
.issue-source.seo { background: var(--accent-light); color: #1a7a40; }
.issue-source.mkt { background: var(--teal-light);   color: var(--teal); }
.issue-source.buy { background: var(--yellow-light); color: var(--yellow); }
.issue-source.mgr { background: var(--pink-light);   color: var(--pink); }

/* ── Alert block ── */
.alert {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.alert--urgent {
    background: #fff1f2;
    border: 1.5px solid rgba(220,38,38,.25);
}

.alert-icon { font-size: 24px; }

.alert-body { flex: 1; }

.alert-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

.alert-text {
    font-size: 12.5px;
    color: var(--ink2);
    margin-top: 3px;
}
