/**
 * Pre-Publish Checker - tool-specific overrides on top of the shared
 * tools.css + workflow-tool.css.
 */

/* Pixel meters */
.ppc-meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ppc-meter {
    flex: 1 1 160px;
    max-width: 260px;
    height: 8px;
    border-radius: 999px;
    background: #f1efec;
    overflow: hidden;
}

.ppc-meter-fill { height: 100%; border-radius: 999px; background: #15803d; }
.ppc-meter.is-near .ppc-meter-fill { background: #d97706; }
.ppc-meter.is-over .ppc-meter-fill { background: #dc2626; }

.ppc-meter-label {
    font-size: 12px;
    color: #8a8a8a;
    white-space: nowrap;
}

/* SERP previews */
.ppc-title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.ppc-col-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #9a958d;
}

.ppc-serp {
    border: 1px solid #efe9e1;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    font-family: Arial, sans-serif;
}

.ppc-serp-mobile { max-width: 400px; }

.ppc-serp-url {
    font-size: 12px;
    color: #202124;
    margin-bottom: 3px;
}

.ppc-serp-title {
    font-size: 18px;
    line-height: 1.3;
    color: #1a0dab;
    margin-bottom: 3px;
    overflow-wrap: anywhere;
}

.ppc-serp-desc {
    font-size: 13px;
    color: #4d5156;
}

.ppc-title-strip { margin-top: 14px; }

/* Proofread */
.ppc-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ppc-score-dial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--wf-accent, #d97706);
    background: #fff;
    flex: 0 0 auto;
}

.ppc-score-num { font-size: 27px; font-weight: 700; line-height: 1; color: #2f2f2f; }
.ppc-score-grade { font-size: 13px; font-weight: 700; color: var(--wf-accent-dark, #b45309); }

.ppc-score-side { min-width: 0; flex: 1 1 260px; }

.ppc-summary {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: #4a4a4a;
    line-height: 1.5;
}

.ppc-sev-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.ppc-findings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ppc-finding {
    border: 1px solid #efe9e1;
    border-radius: 8px;
    background: #fff;
    padding: 10px 14px;
}

.ppc-finding-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
}

.ppc-finding-cat { color: #9a958d; font-size: 12px; }

.ppc-finding-diff {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 13.5px;
}

.ppc-diff-from {
    background: #fdeaea;
    color: #8f2020;
    text-decoration: line-through;
    padding: 1px 6px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.ppc-diff-arrow { color: #9a958d; }

.ppc-diff-to {
    background: #e8f7ee;
    color: #14602f;
    padding: 1px 6px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.ppc-finding-explain {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #6b6b6b;
    line-height: 1.5;
}

.ppc-corrected-wrap { margin-top: 4px; }

.ppc-corrected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.ppc-corrected {
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    resize: vertical;
    border: 1px solid #ddd6cc;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    color: #333;
    background: #fdfcfa;
}

/* Descriptions */
.ppc-descs { display: flex; flex-direction: column; gap: 12px; }

.ppc-desc-card {
    border: 1px solid #efe9e1;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.ppc-desc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ppc-desc-head .ghost-btn { margin-left: auto; font-size: 12px; padding: 4px 10px; }

.ppc-desc-n {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #9a958d;
}

.ppc-desc-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #333;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .ppc-score-dial { width: 76px; height: 76px; }
    .ppc-score-num { font-size: 23px; }
}
