/**
 * AdWorksBid SEO — Extracted static inline CSS
 *
 * CSS moved here from view files and class files to comply with
 * WordPress.org guidelines (no raw <style> tags in plugin output).
 *
 * @package AWBSEO
 * @since   1.0.1
 */

/* ── Dashboard: SEO Health section ────────────────────────────────────────── */
.awb-health-section { margin-bottom: 16px; }
.awb-health-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.awb-health-section__title { font-size: 15px; font-weight: 600; margin: 0; }
.awb-health-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a5a80;
}
.awb-health-score__ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    /* background (conic-gradient) is output via inline style="" — dynamic PHP value */
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.awb-health-score__ring::after {
    content: '';
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}
.awb-health-score__pct {
    position: absolute; z-index: 1;
    font-size: 11px; font-weight: 700;
    /* color is output via inline style="" — dynamic PHP value */
}
.awb-health-checks { display: flex; flex-direction: column; gap: 0; }
.awb-hc-row {
    display: grid;
    grid-template-columns: 22px 1fr 140px 56px 64px;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
}
.awb-hc-row:last-child { border-bottom: none; }
.awb-hc-icon { font-size: 14px; line-height: 1; }
.awb-hc-label { color: #1d2327; font-weight: 500; }
.awb-hc-bar-wrap { background: #f0f0f1; border-radius: 99px; height: 6px; overflow: hidden; }
.awb-hc-bar-fill { height: 100%; border-radius: 99px; transition: width .4s; }
.awb-hc-count { font-weight: 700; text-align: right; }
.awb-hc-fix { text-align: right; }
.awb-hc-fix a { font-size: 12px; color: #135e96; text-decoration: none; font-weight: 600; }
.awb-hc-fix a:hover { text-decoration: underline; }

/* ── Rank Tracker: Quick Wins add button ───────────────────────────────────── */
.awb-qw-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #b04040;
    color: #b04040;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
    padding: 0;
    position: relative;
}
.awb-qw-add:hover { background: #b04040; color: #fff; }
.awb-qw-add:disabled { border-color: #aaa; color: #aaa; cursor: default; }
.awb-qw-add[data-added="1"] { border-color: #04785b; color: #04785b; }
.awb-qw-add[data-added="1"]:hover { background: #04785b; color: #fff; }
.awb-qw-add .awb-qw-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #2c2624;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
.awb-qw-add:hover .awb-qw-tooltip { opacity: 1; }

/* ── Setup Wizard (fullscreen — scoped to wizard page only) ───────────────── */
body.admin_page_awb-setup-wizard #wpcontent,
body.admin_page_awb-setup-wizard #wpfooter { margin-left: 0 !important; }
body.admin_page_awb-setup-wizard #adminmenuback,
body.admin_page_awb-setup-wizard #adminmenuwrap { display: none !important; }
body.admin_page_awb-setup-wizard #wpadminbar { display: none !important; }
html:has(body.admin_page_awb-setup-wizard) { margin-top: 0 !important; }

.awb-wiz {
    max-width: 680px;
    margin: 48px auto 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a2340;
}
.awb-wiz__steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}
.awb-wiz__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.awb-wiz__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dde3f0;
    z-index: 0;
}
.awb-wiz__step.done::after   { background: #7c3aed; }
.awb-wiz__step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #dde3f0;
    color: #7a8aad;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    transition: background .2s, color .2s;
}
.awb-wiz__step.active .awb-wiz__step-dot  { background: #7c3aed; color: #fff; }
.awb-wiz__step.done   .awb-wiz__step-dot  { background: #7c3aed; color: #fff; }
.awb-wiz__step-label {
    margin-top: 6px;
    font-size: 11px;
    color: #7a8aad;
    font-weight: 500;
    white-space: nowrap;
}
.awb-wiz__step.active .awb-wiz__step-label { color: #7c3aed; font-weight: 600; }
.awb-wiz__step.done   .awb-wiz__step-label { color: #7c3aed; }
.awb-wiz__card {
    background: #fff;
    border: 1px solid #e2e8f5;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.awb-wiz__card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a2340;
}
.awb-wiz__card p {
    font-size: 14px;
    color: #4a5a80;
    margin: 0 0 24px;
    line-height: 1.6;
}
.awb-wiz__sources {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}
.awb-wiz__source {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6f8ff;
    border: 1px solid #dde3f0;
    border-radius: 8px;
    padding: 14px 16px;
}
.awb-wiz__source input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.awb-wiz__source-name { font-weight: 600; font-size: 14px; color: #1a2340; flex: 1; }
.awb-wiz__source-count { font-size: 12px; color: #7a8aad; background: #e8edfa; padding: 2px 8px; border-radius: 20px; }
.awb-wiz__source.no-data { opacity: .45; pointer-events: none; }
.awb-wiz__progress-wrap { margin: 20px 0; display: none; }
.awb-wiz__progress-bar {
    height: 8px;
    background: #e2e8f5;
    border-radius: 4px;
    overflow: hidden;
}
.awb-wiz__progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 4px;
    transition: width .3s;
    width: 0%;
}
.awb-wiz__progress-label { font-size: 12px; color: #7a8aad; margin-top: 6px; }
.awb-wiz__field { margin-bottom: 16px; }
.awb-wiz__field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1a2340; }
.awb-wiz__field input[type="text"],
.awb-wiz__field input[type="email"],
.awb-wiz__field input[type="tel"],
.awb-wiz__field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccd4ea;
    border-radius: 6px;
    font-size: 14px;
    color: #1a2340;
    background: #fff;
    box-sizing: border-box;
}
.awb-wiz__field input:focus, .awb-wiz__field select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.awb-wiz__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.awb-wiz__connect-box {
    border: 1px solid #dde3f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.awb-wiz__connect-icon { font-size: 28px; }
.awb-wiz__connect-info { flex: 1; }
.awb-wiz__connect-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.awb-wiz__connect-info span { font-size: 12px; color: #7a8aad; }
.awb-wiz__connect-status { font-size: 12px; font-weight: 600; }
.awb-wiz__connect-status.connected  { color: #16a34a; }
.awb-wiz__connect-status.disconnected { color: #9ca3af; }
.awb-wiz__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef0f7;
}
.awb-wiz__btn {
    padding: 10px 24px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}
.awb-wiz__btn:disabled { opacity: .5; cursor: not-allowed; }
.awb-wiz__btn--primary { background: #7c3aed; color: #fff; }
.awb-wiz__btn--primary:hover:not(:disabled) { background: #6d28d9; }
.awb-wiz__btn--skip { background: none; color: #7a8aad; padding: 10px 12px; text-decoration: underline; }
.awb-wiz__btn--skip:hover { color: #4a5a80; }
.awb-wiz__error { color: #b04040; font-size: 13px; margin-top: 8px; display: none; }
.awb-wiz__done { text-align: center; padding: 20px 0; }
.awb-wiz__done-icon { font-size: 56px; margin-bottom: 16px; }
.awb-wiz__done h2 { font-size: 26px; }
.awb-wiz__done p { max-width: 440px; margin: 0 auto 28px; }
.awb-wiz__back { text-align: right; margin-bottom: 16px; }
.awb-wiz__back a { font-size: 13px; color: #7a8aad; text-decoration: none; }
.awb-wiz__back a:hover { color: #4a5a80; text-decoration: underline; }

/* ── Robots.txt editor ─────────────────────────────────────────────────────── */
.awb-robots-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}
.awb-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.awb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}
.awb-card-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.awb-card-body { padding: 16px; }
.awb-robots-actions { display: flex; gap: 8px; align-items: center; }
.awb-preset-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.awb-preset-item:last-child { border-bottom: none; }
.awb-preset-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.awb-preset-item .description { margin: 0; }
#awb-robots-notice.success { background: #edfaee; border-left: 4px solid #46b450; color: #1e5e22; }
#awb-robots-notice.error   { background: #fde8e8; border-left: 4px solid #dc3232; color: #7a1919; }
@media (max-width: 1100px) {
    .awb-robots-layout { grid-template-columns: 1fr; }
}

/* ── Post list SEO score column ────────────────────────────────────────────── */
.column-awb_seo_score { width: 120px !important; }
.awb-col-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.awb-score-circle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
    color: #fff;
}
.awb-score-circle:hover { opacity: .85; }
.awb-score-green  { background: #04785b; }
.awb-score-orange { background: #c07000; }
.awb-score-red    { background: #aa3535; }
.awb-score-grey   { background: #9e938f; }
.awb-score-na     {
    background: #f0ebe8;
    color: #9e938f;
    border: 1.5px dashed #c9bfbb;
    font-size: 14px;
}
.awb-col-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
}
.awb-col-kw {
    font-size: 11px;
    font-weight: 600;
    color: #3c3533;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.awb-col-kw--missing { color: #9e938f; font-style: italic; font-weight: 400; }
.awb-col-hint { font-size: 10px; color: #9e938f; font-style: italic; }
.awb-col-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.awb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    cursor: default;
    line-height: 1;
}
.awb-pill-ok   { background: #e6f4f1; color: #04785b; }
.awb-pill-miss { background: #fdecea; color: #aa3535; }
.awb-pill-warn { background: #fff3cd; color: #7a5600; }
.awb-col-unanalyzed .awb-col-kw { color: #9e938f; font-weight: 400; }

/* ── Dashboard Widget ──────────────────────────────────────────────────────── */
.awb-dw-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
.awb-dw-stat { background:#f6f7f7; border-radius:4px; padding:10px 12px; }
.awb-dw-stat__label { font-size:11px; color:#646970; text-transform:uppercase; letter-spacing:.03em; }
.awb-dw-stat__value { font-size:20px; font-weight:600; line-height:1.3; color:#1d2327; margin-top:2px; }
.awb-dw-source-badge { font-size:11px; color:#646970; margin-bottom:8px; }
.awb-dw-health { display:flex; align-items:center; justify-content:space-between; padding:10px 0 0; border-top:1px solid #f0f0f1; font-size:13px; cursor:pointer; user-select:none; }
/* .awb-dw-health strong color is output via inline style="" — dynamic PHP value */
.awb-dw-health-toggle { font-size:11px; color:#646970; margin-left:6px; }
.awb-dw-issues { margin:6px 0 4px; display:none; }
.awb-dw-issues.open { display:block; }
.awb-dw-issue-row { display:flex; align-items:center; justify-content:space-between; padding:5px 0; border-bottom:1px solid #f0f0f1; font-size:12px; color:#3c434a; }
.awb-dw-issue-row:last-child { border-bottom:none; }
/* .awb-dw-issue-count color is output via inline style="" — dynamic PHP value */
.awb-dw-issue-count { font-weight:700; min-width:28px; text-align:right; margin-right:8px; }
.awb-dw-issue-fix { font-size:11px; color:#135e96; white-space:nowrap; text-decoration:none; }
.awb-dw-issue-fix:hover { text-decoration:underline; }
.awb-dw-footer { margin:8px 0 0; text-align:right; }
.awb-dw-connect p { margin:0 0 8px; }
.awb-dw-notice { background:#fff8e5; border-left:3px solid #dba617; border-radius:3px; padding:8px 10px; font-size:12px; color:#4a4a4a; margin-bottom:10px; line-height:1.5; }
.awb-dw-notice a { color:#135e96; }

/* ── Connection status pill ────────────────────────────────────────────────── */
.awb-connection-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #15803d;
    white-space: nowrap;
    flex-shrink: 0;
}
.awb-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* ── Alert cards (robots.txt + other pages) ────────────────────────────────── */
.awb-alert-card {
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
}
.awb-alert-card--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.awb-alert-card--info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}
.awb-dismiss-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    padding: 0 4px;
    flex-shrink: 0;
}
.awb-dismiss-btn:hover { color: #374151; }

/* ── Robots.txt layout ─────────────────────────────────────────────────────── */
.awb-robots-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 960px) {
    .awb-robots-layout { grid-template-columns: 1fr; }
}
