/* =============================================
   LightningMine Meta & Robots Checkers
   Shared CSS — extends diagnostics conventions
   ============================================= */

.lm-seo-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: lm-seo-fadeup 0.22s ease both;
}
@keyframes lm-seo-fadeup {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lm-seo-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f8fc;
    padding: 11px 16px;
    border-bottom: 1px solid #ddd;
}
.lm-seo-section-header h3 { margin: 0; font-size: 15px; color: #1a1a2e; }

.lm-seo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.6px;
}
.lm-seo-badge-green  { background: #d4f8e8; color: #1b7a40; }
.lm-seo-badge-yellow { background: #fff8d6; color: #7a5c00; }
.lm-seo-badge-red    { background: #fde8e8; color: #b52020; }
.lm-seo-badge-blue   { background: #dbeeff; color: #0073aa; }
.lm-seo-badge-grey   { background: #f0f4f8; color: #5a6a7e; }
.lm-seo-badge-purple { background: #ede7ff; color: #5b34b5; }
.lm-seo-badge-orange { background: #fff0e0; color: #9c4400; }

.lm-seo-section-body {
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.65;
    color: #1a1a2e;
}

.lm-seo-kv-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 13px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.lm-seo-kv-row:last-child { border-bottom: none; }
.lm-seo-kv-key { min-width: 160px; font-weight: 600; color: #5a6a7e; flex-shrink: 0; }
.lm-seo-kv-val { flex: 1; word-break: break-all; color: #1a1a2e; }
.lm-seo-kv-val.mono { font-family: "Courier New", Courier, monospace; }

.lm-seo-note {
    padding: 9px 14px;
    border-radius: 0;
    font-size: 13px;
    margin: 0 0 10px;
    line-height: 1.6;
}
.lm-seo-note:last-child { margin-bottom: 0; }
.lm-seo-note.good { background: #f0fdf4; border-left: 3px solid #28a745; }
.lm-seo-note.warn { background: #fffbea; border-left: 3px solid #f59e0b; }
.lm-seo-note.bad  { background: #fff3f3; border-left: 3px solid #dc3545; }
.lm-seo-note.info { background: #f0f7ff; border-left: 3px solid #0073aa; }

/* Google SERP preview */
.lm-seo-preview {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    font-family: Arial, sans-serif;
}
.lm-seo-preview-url  { font-size: 13px; color: #202124; margin-bottom: 2px; }
.lm-seo-preview-title { font-size: 20px; color: #1a0dab; margin: 0 0 4px; line-height: 1.3; cursor: pointer; }
.lm-seo-preview-title:hover { text-decoration: underline; }
.lm-seo-preview-desc  { font-size: 14px; color: #4d5156; line-height: 1.58; margin: 0; }
.lm-seo-preview-label { font-size: 11px; color: #8a9bb0; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; font-weight: 700; font-family: system-ui, sans-serif; }

/* OG image preview */
.lm-seo-og-image {
    max-width: 300px;
    border-radius: 6px;
    border: 1px solid #e8edf3;
    margin-top: 8px;
    display: block;
}

/* Robots.txt raw content */
.lm-seo-raw {
    background: #f5f8fc;
    border: 1px solid #e8edf3;
    border-radius: 6px;
    padding: 12px 16px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    color: #1a1a2e;
    margin-top: 10px;
}

/* Sitemap URL table */
.lm-seo-url-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 10px;
}
.lm-seo-url-table th {
    text-align: left;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a9bb0;
    background: #e8f4ff;
    border-bottom: 1px solid #ddd;
}
.lm-seo-url-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f4f8;
    font-family: "Courier New", Courier, monospace;
    word-break: break-all;
    color: #1a1a2e;
}
.lm-seo-url-table tr:last-child td { border-bottom: none; }
.lm-seo-url-table tr:hover td { background: #f8fbff; }
.lm-seo-url-table a { color: #0073aa; text-decoration: none; }
.lm-seo-url-table a:hover { text-decoration: underline; }

/* Schema type pills */
.lm-seo-schema-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lm-seo-schema-pill {
    background: #ede7ff;
    color: #5b34b5;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
}
.lm-seo-schema-pill span {
    font-weight: 400;
    color: #8a70d6;
    margin-left: 4px;
    font-size: 11px;
}

/* Status bar */
.lm-seo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6a7e;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f5f8fc;
    border-radius: 6px;
    border: 1px solid #d0d7e3;
}
.lm-seo-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #28a745; flex-shrink: 0; }
.lm-seo-highlight { font-family: "Courier New", Courier, monospace; font-weight: 600; color: #0073aa; }

/* Loader */
.lm-tool-loader {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 48px 0; font-size: 14px; color: #5a6a7e;
}
.lm-tool-spinner {
    width: 20px; height: 20px;
    border: 2px solid #d0d7e3;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: lm-seo-spin 0.65s linear infinite;
    flex-shrink: 0;
}
@keyframes lm-seo-spin { to { transform: rotate(360deg); } }

.lm-tool-error {
    background: #fff3f3; border: 1px solid #f5c0c0;
    border-radius: 8px; padding: 14px 18px;
    font-size: 13px; color: #c0392b;
    font-family: "Courier New", Courier, monospace;
}

.lm-tool-about {
    margin-top: 20px; background: #f7f7f7;
    border: 1px solid #ddd; border-radius: 8px;
    padding: 14px 18px; font-size: 13px; color: #555; line-height: 1.7;
}
.lm-tool-about strong { color: #1a1a2e; }

@media (max-width: 580px) {
    .lm-seo-kv-key { min-width: 110px; }
    .lm-seo-preview-title { font-size: 17px; }
}
