/* Security Posture Dashboard — Sprint 10.0 */

.posture-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Score card */
.posture-score-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #1e1e2e);
    border-radius: 8px;
}

.posture-score-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.posture-score-circle svg {
    transform: rotate(-90deg);
}

.posture-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.1;
}

.posture-score-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0e0);
}

.posture-grade {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.posture-grade-app { background: #22c55e; color: #fff; }
.posture-grade-ap  { background: #4ade80; color: #1a1a2e; }
.posture-grade-a   { background: #86efac; color: #1a1a2e; }
.posture-grade-b   { background: #fbbf24; color: #1a1a2e; }
.posture-grade-c   { background: #f97316; color: #fff; }
.posture-grade-d   { background: #ef4444; color: #fff; }

.posture-counters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.posture-counter {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0b0);
}

.posture-counter strong {
    color: var(--text-primary, #e0e0e0);
}

/* Category blocks */
.posture-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.posture-category {
    background: var(--bg-secondary, #1e1e2e);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.posture-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.posture-cat-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #e0e0e0);
}

.posture-cat-score {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0b0);
}

.posture-cat-bar {
    height: 6px;
    background: var(--bg-tertiary, #2a2a3e);
    border-radius: 3px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.posture-cat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.posture-cat-checks {
    margin-top: 0.5rem;
    display: none;
}

.posture-cat-checks.expanded {
    display: block;
}

.posture-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--bg-tertiary, #2a2a3e);
}

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

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

.posture-status-pass { background: #22c55e; }
.posture-status-warn { background: #fbbf24; }
.posture-status-fail { background: #ef4444; }
.posture-status-skip { background: #6b7280; }

.posture-check-name {
    flex: 1;
    color: var(--text-primary, #e0e0e0);
}

.posture-check-pts {
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.75rem;
    min-width: 45px;
    text-align: right;
}

.posture-check-rec {
    font-size: 0.75rem;
    color: #fbbf24;
    padding-left: 1rem;
    margin-top: 0.1rem;
}

/* Recommendations */
.posture-recommendations {
    background: var(--bg-secondary, #1e1e2e);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.posture-rec-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #e0e0e0);
    margin-bottom: 0.5rem;
}

.posture-rec-item {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0b0);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.posture-rec-item::before {
    content: "\25B6";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-size: 0.6rem;
}

.posture-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary, #a0a0b0);
}
