/* CareerPilot AI Copilot — Phase 1 */

.careerpilot-copilot-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(47, 111, 237, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(47, 111, 237, 0.08),
            rgba(19, 168, 121, 0.05)
        );
}

.careerpilot-copilot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.careerpilot-copilot-header h3 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.careerpilot-copilot-header > div:first-child > p:last-child {
    margin: 0;
    color: var(--text-muted, #667085);
    line-height: 1.55;
}

.careerpilot-copilot-score {
    --copilot-score: 0deg;
    display: grid;
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            #2f6fed var(--copilot-score),
            rgba(148, 163, 184, 0.22) 0
        );
}

.careerpilot-copilot-score::before {
    content: "";
    grid-area: 1 / 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-color, #ffffff);
}

.careerpilot-copilot-score > div {
    z-index: 1;
    display: grid;
    grid-area: 1 / 1;
    text-align: center;
}

.careerpilot-copilot-score strong {
    color: #2f6fed;
    font-size: 22px;
}

.careerpilot-copilot-score span {
    color: var(--text-muted, #667085);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.careerpilot-copilot-list {
    display: grid;
    gap: 10px;
}

.careerpilot-copilot-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-color, #dbe3ef);
    border-radius: 14px;
    background: var(--surface-color, #ffffff);
}

.careerpilot-copilot-card.good {
    border-color: rgba(19, 168, 121, 0.24);
}

.careerpilot-copilot-card.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.careerpilot-copilot-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    font-weight: 900;
}

.careerpilot-copilot-card.good .careerpilot-copilot-icon {
    background: rgba(19, 168, 121, 0.14);
    color: #13a879;
}

.careerpilot-copilot-card.warning .careerpilot-copilot-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.careerpilot-copilot-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.careerpilot-copilot-card p {
    margin: 0;
    color: var(--text-muted, #667085);
    font-size: 13px;
    line-height: 1.45;
}

.careerpilot-copilot-card button {
    min-width: 104px;
    padding: 9px 12px;
    border: 1px solid rgba(47, 111, 237, 0.28);
    border-radius: 10px;
    background: rgba(47, 111, 237, 0.08);
    color: #2f6fed;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.careerpilot-copilot-card button:hover {
    background: rgba(47, 111, 237, 0.14);
}

body.dark-mode .careerpilot-copilot-panel {
    background:
        linear-gradient(
            135deg,
            rgba(47, 111, 237, 0.13),
            rgba(19, 168, 121, 0.08)
        );
}

body.dark-mode .careerpilot-copilot-score::before,
body.dark-mode .careerpilot-copilot-card {
    background: #172238;
}

@media (max-width: 720px) {
    .careerpilot-copilot-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .careerpilot-copilot-card {
        grid-template-columns: auto 1fr;
    }

    .careerpilot-copilot-card button {
        grid-column: 1 / -1;
        width: 100%;
    }
}
