/* ============================================================
   SIGAP — ai-risk.css  |  AI Risk Intelligence Page
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────────── */
.ai-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 36px;
    max-width: 700px;
}

.ai-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #111;
    border: 1.5px solid #111;
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 18px;
}

.ai-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.ai-hero-desc {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
}

/* ── Grid ────────────────────────────────────────────────────── */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* ── Card ────────────────────────────────────────────────────── */
.ai-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px 28px 24px;
    background: #fff;
    transition: border-color 0.15s;
}

.ai-card:hover {
    border-color: #bbb;
}

.ai-card-icon {
    font-size: 22px;
    color: #bbb;
    margin-bottom: 14px;
    line-height: 1;
}

.ai-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.ai-card p {
    font-size: 14px;
    font-weight: 400;
    color: #777;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* ── Source tags ─────────────────────────────────────────────── */
.ai-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ai-source-tag {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f4f4f4;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    padding: 4px 10px;
}

/* ── Risk levels ─────────────────────────────────────────────── */
.ai-risk-levels {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.risk-level {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Vertical bar */
.risk-bar {
    width: 5px;
    height: 100%;
    min-height: 44px;
    border-radius: 4px;
    background: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
}

.risk-fill {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.risk-low    .risk-fill { background: #22c55e; }
.risk-medium .risk-fill { background: #f59e0b; }
.risk-high   .risk-fill { background: #ef4444; }

.risk-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.risk-label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.risk-low    .risk-label { color: #16a34a; }
.risk-medium .risk-label { color: #d97706; }
.risk-high   .risk-label { color: #dc2626; }

.risk-desc {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    line-height: 1.5;
}

/* ── Status strip ────────────────────────────────────────────── */
.ai-status-strip {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 0;
}

.ai-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green  { background: #22c55e; }
.dot-yellow { background: #f59e0b; }
.dot-grey   { background: #ccc; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero-title {
        font-size: 22px;
    }
}
