/* AI SEO Local GBP Audit Tool — v1.4.0 styles
 * Scoped under #aiseolocal-audit-root to avoid theme conflicts.
 */

#aiseolocal-audit-root {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

#aiseolocal-audit-root *,
#aiseolocal-audit-root *::before,
#aiseolocal-audit-root *::after {
    box-sizing: border-box;
}

#aiseolocal-audit-root .aiseo-hide {
    display: none !important;
}

/* Outer dark surface */
#aiseolocal-audit-root .aiseo-mockup {
    background: #080c10;
    border-radius: 16px;
    padding: 36px 28px;
    color: #e8edf5;
    overflow: hidden;
    max-width: 100%;
}

/* Pulsing badge */
#aiseolocal-audit-root .aiseo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.3);
    color: #00e5a0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
#aiseolocal-audit-root .aiseo-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e5a0;
    animation: aiseo-pulse-dot 1.8s ease-in-out infinite;
}
@keyframes aiseo-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Headline */
#aiseolocal-audit-root .aiseo-h1 {
    color: #e8edf5;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
#aiseolocal-audit-root .aiseo-accent {
    color: #00e5a0;
}
#aiseolocal-audit-root .aiseo-sub {
    color: #8a99ae;
    font-size: 15px;
    margin: 0 0 24px;
    line-height: 1.55;
}

/* Form card */
#aiseolocal-audit-root .aiseo-card {
    background: #121826;
    border: 1px solid #1e2d42;
    border-radius: 14px;
    padding: 24px;
}
#aiseolocal-audit-root .aiseo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
#aiseolocal-audit-root .aiseo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#aiseolocal-audit-root .aiseo-field.aiseo-full {
    grid-column: 1 / -1;
}
#aiseolocal-audit-root .aiseo-field label {
    color: #8a99ae;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
#aiseolocal-audit-root .aiseo-field .aiseo-opt {
    color: #5e6b7e;
    font-weight: 400;
}
#aiseolocal-audit-root .aiseo-field input {
    background: #080c10;
    border: 1px solid #1e2d42;
    border-radius: 9px;
    padding: 12px 14px;
    color: #e8edf5;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}
#aiseolocal-audit-root .aiseo-field input:focus {
    border-color: #00e5a0;
    box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.12);
}
#aiseolocal-audit-root .aiseo-field input::placeholder {
    color: #3a4d62;
}
#aiseolocal-audit-root .aiseo-field-hint {
    color: #5e6b7e;
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.4;
}

/* Submit button */
#aiseolocal-audit-root .aiseo-btn {
    width: 100%;
    padding: 18px;
    background: #00e5a0;
    color: #050a0d;
    border: none;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: transform 0.15s ease, background 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
#aiseolocal-audit-root .aiseo-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #1aedab;
    color: #050a0d;
    text-decoration: none;
}
#aiseolocal-audit-root .aiseo-btn:active {
    transform: translateY(0);
}
#aiseolocal-audit-root .aiseo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#aiseolocal-audit-root .aiseo-btn-cta {
    width: auto;
    padding: 14px 32px;
    margin-top: 0;
}

/* Trust row */
#aiseolocal-audit-root .aiseo-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
#aiseolocal-audit-root .aiseo-stars {
    color: #ffb020;
    font-size: 13px;
    letter-spacing: 1px;
}
#aiseolocal-audit-root .aiseo-trust-text {
    color: #8a99ae;
    font-size: 12px;
}
#aiseolocal-audit-root .aiseo-trust-num {
    color: #e8edf5;
    font-weight: 600;
}
#aiseolocal-audit-root .aiseo-priv {
    color: #5e6b7e;
    font-size: 12px;
    text-align: center;
    margin: 10px 0 0;
}

/* Error */
#aiseolocal-audit-root .aiseo-error {
    display: none;
    background: rgba(255, 68, 85, 0.08);
    border: 1px solid rgba(255, 68, 85, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ff8a96;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* ==========================
 * Loading state — v1.4 three-phase real-time checklist UX
 * ========================== */
#aiseolocal-audit-root .aiseo-loading-header {
    margin-bottom: 28px;
    text-align: center;
}
#aiseolocal-audit-root .aiseo-loading-target {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: #8a99ae;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-loading-target strong {
    color: #00e5a0;
    font-weight: 600;
}
#aiseolocal-audit-root .aiseo-loading-headline {
    font-size: 20px;
    font-weight: 600;
    color: #e8edf5;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

#aiseolocal-audit-root .aiseo-phase {
    margin-bottom: 24px;
}
#aiseolocal-audit-root .aiseo-phase-label {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5e6b7e;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e2d42;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#aiseolocal-audit-root .aiseo-phase-counter {
    color: #00e5a0;
    font-weight: 500;
}

#aiseolocal-audit-root .aiseo-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
#aiseolocal-audit-root .aiseo-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: #5e6b7e;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s, transform 0.4s, color 0.3s;
    line-height: 1.5;
}
#aiseolocal-audit-root .aiseo-check-item.aiseo-cl-visible {
    opacity: 1;
    transform: translateY(0);
    color: #8a99ae;
}
#aiseolocal-audit-root .aiseo-check-item.aiseo-cl-active {
    color: #e8edf5;
}
#aiseolocal-audit-root .aiseo-check-item.aiseo-cl-done {
    color: #8a99ae;
}
#aiseolocal-audit-root .aiseo-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    position: relative;
}
/* Spinner state (active) */
#aiseolocal-audit-root .aiseo-cl-active .aiseo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #1e2d42;
    border-top-color: #00e5a0;
    border-radius: 50%;
    animation: aiseo-cl-spin 0.7s linear infinite;
}
@keyframes aiseo-cl-spin { to { transform: rotate(360deg); } }
/* Pending dot (visible but not active or done) */
#aiseolocal-audit-root .aiseo-cl-visible:not(.aiseo-cl-active):not(.aiseo-cl-done) .aiseo-icon::before {
    content: '';
    position: absolute;
    top: 7px; left: 7px;
    width: 4px; height: 4px;
    background: #1e2d42;
    border-radius: 50%;
}
/* Done check */
#aiseolocal-audit-root .aiseo-cl-done .aiseo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.3);
    border-radius: 4px;
    animation: aiseo-cl-pop 0.3s ease-out;
}
#aiseolocal-audit-root .aiseo-cl-done .aiseo-icon::after {
    content: '';
    position: absolute;
    top: 4px; left: 5px;
    width: 6px; height: 9px;
    border: solid #00e5a0;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg);
    animation: aiseo-cl-pop 0.3s ease-out;
}
@keyframes aiseo-cl-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
#aiseolocal-audit-root .aiseo-cl-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-cl-detail {
    color: #00e5a0;
    font-size: 11px;
    opacity: 0;
    animation: aiseo-cl-fadein 0.4s 0.1s ease-out forwards;
    overflow-wrap: anywhere;
    word-break: break-word;
}
@keyframes aiseo-cl-fadein { to { opacity: 1; } }

/* Progress bar */
#aiseolocal-audit-root .aiseo-progress-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #1e2d42;
}
#aiseolocal-audit-root .aiseo-progress-bar-wrap {
    height: 4px;
    background: #1e2d42;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 14px;
}
#aiseolocal-audit-root .aiseo-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5a0, #6ef0c4);
    width: 0%;
    border-radius: 100px;
    transition: width 0.3s linear;
    box-shadow: 0 0 12px rgba(0, 229, 160, 0.5);
}
#aiseolocal-audit-root .aiseo-progress-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
#aiseolocal-audit-root .aiseo-progress-microcopy {
    flex: 1;
    min-width: 0;
    color: #8a99ae;
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    transition: opacity 0.4s;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-progress-microcopy.aiseo-mc-swap {
    opacity: 0;
}
#aiseolocal-audit-root .aiseo-progress-percent {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: #00e5a0;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

/* ==========================
 * Report state
 * ========================== */
/* Score hero */
#aiseolocal-audit-root .aiseo-score-hero {
    background: #121826;
    border: 1px solid #1e2d42;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
#aiseolocal-audit-root .aiseo-score-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}
#aiseolocal-audit-root .aiseo-score-hero.aiseo-red::before { background: #ff4455; }
#aiseolocal-audit-root .aiseo-score-hero.aiseo-amber::before { background: #ffb020; }
#aiseolocal-audit-root .aiseo-score-hero.aiseo-green::before { background: #00e5a0; }

#aiseolocal-audit-root .aiseo-score-biz {
    color: #8a99ae;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-score-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 8px 0;
}
#aiseolocal-audit-root .aiseo-score-num {
    font-size: 78px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}
#aiseolocal-audit-root .aiseo-score-num.aiseo-red { color: #ff4455; }
#aiseolocal-audit-root .aiseo-score-num.aiseo-amber { color: #ffb020; }
#aiseolocal-audit-root .aiseo-score-num.aiseo-green { color: #00e5a0; }
#aiseolocal-audit-root .aiseo-score-denom {
    color: #5e6b7e;
    font-size: 20px;
    font-weight: 400;
}
#aiseolocal-audit-root .aiseo-score-lbl {
    color: #e8edf5;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}
#aiseolocal-audit-root .aiseo-score-sub {
    color: #8a99ae;
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
#aiseolocal-audit-root .aiseo-score-bar {
    background: #1e2d42;
    border-radius: 100px;
    height: 6px;
    margin: 22px 0 0;
    overflow: hidden;
}
#aiseolocal-audit-root .aiseo-score-fill {
    height: 100%;
    border-radius: 100px;
    width: 0%;
    transition: width 1.2s cubic-bezier(.16, 1, .3, 1);
}
#aiseolocal-audit-root .aiseo-score-fill.aiseo-red { background: #ff4455; }
#aiseolocal-audit-root .aiseo-score-fill.aiseo-amber { background: #ffb020; }
#aiseolocal-audit-root .aiseo-score-fill.aiseo-green { background: #00e5a0; }

/* Gaps (v1.4 — supports measured-language badges) */
#aiseolocal-audit-root .aiseo-gaps-title {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5e6b7e;
    margin: 0 0 14px;
    padding: 0 4px;
}

#aiseolocal-audit-root .aiseo-gap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #121826;
    border: 1px solid #1e2d42;
    border-left: 3px solid #5e6b7e;
    border-radius: 10px;
    margin-bottom: 10px;
}
#aiseolocal-audit-root .aiseo-gap.red { border-left-color: #ff4455; }
#aiseolocal-audit-root .aiseo-gap.amber { border-left-color: #ffb020; }

#aiseolocal-audit-root .aiseo-gap-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-top: 2px;
}
#aiseolocal-audit-root .aiseo-gap.red .aiseo-gap-icon {
    background: rgba(255, 68, 85, 0.14);
    color: #ff8a96;
}
#aiseolocal-audit-root .aiseo-gap.amber .aiseo-gap-icon {
    background: rgba(255, 176, 32, 0.14);
    color: #ffc966;
}

#aiseolocal-audit-root .aiseo-gap-body {
    flex: 1;
    min-width: 0;
}
#aiseolocal-audit-root .aiseo-gap-title {
    font-size: 15px;
    font-weight: 600;
    color: #e8edf5;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-gap-desc {
    color: #8a99ae;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#aiseolocal-audit-root .aiseo-gap-measure {
    display: inline-block;
    max-width: 100%;
    padding: 3px 8px;
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.25);
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    color: #6ef0c4;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#aiseolocal-audit-root .aiseo-no-gaps {
    text-align: center;
    color: #00e5a0;
    font-size: 14px;
    padding: 16px 0;
}

/* Final CTA */
#aiseolocal-audit-root .aiseo-result-cta {
    margin-top: 28px;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.08), transparent 60%), #121826;
    border: 1px solid rgba(0, 229, 160, 0.25);
    border-radius: 14px;
    text-align: center;
}
#aiseolocal-audit-root .aiseo-result-cta-title {
    color: #e8edf5;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
#aiseolocal-audit-root .aiseo-result-cta-sub {
    color: #8a99ae;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile */
@media (max-width: 600px) {
    #aiseolocal-audit-root .aiseo-mockup { padding: 26px 20px; }
    #aiseolocal-audit-root .aiseo-h1 { font-size: 26px; }
    #aiseolocal-audit-root .aiseo-grid { grid-template-columns: 1fr; }
    #aiseolocal-audit-root .aiseo-score-num { font-size: 64px; }
    #aiseolocal-audit-root .aiseo-card { padding: 20px; }
    #aiseolocal-audit-root .aiseo-loading-headline { font-size: 17px; }
    #aiseolocal-audit-root .aiseo-progress-foot { flex-direction: column; align-items: flex-start; }
    #aiseolocal-audit-root .aiseo-progress-microcopy { font-size: 12px; }
    #aiseolocal-audit-root .aiseo-check-item { font-size: 12px; }
    #aiseolocal-audit-root .aiseo-result-cta { padding: 22px 18px; }
}
