/* Meta Tag Analyzer — light + dark workspace */

.apple-glass {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

html.dark .apple-glass {
    background: rgba(18, 18, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#score-ring {
    transition: stroke-dasharray 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
}

.mta-surface {
    background: #f8fafc;
    border: 1px solid #e4e4e7;
}

html.dark .mta-surface {
    background: #09090b;
    border-color: rgba(255, 255, 255, 0.1);
}

.mta-tabbar {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}

html.dark .mta-tabbar {
    background: rgba(24, 24, 27, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.result-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #52525b;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}

html.dark .result-tab { color: #a1a1aa; }
.result-tab:hover { color: #18181b; }
html.dark .result-tab:hover { color: #fff; }

.result-tab.active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.32);
}
html.dark .result-tab.active { color: #fff; }

.copy-mini {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #059669;
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    transition: all 0.15s ease;
}
html.dark .copy-mini { color: #34d399; }
.copy-mini:hover { background: rgba(16, 185, 129, 0.18); color: #047857; }
html.dark .copy-mini:hover { color: #fff; }

.meter { display: flex; flex-direction: column; gap: 0.35rem; }
.meter-track {
    position: relative;
    height: 7px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.08);
    overflow: hidden;
}
html.dark .meter-track { background: rgba(255, 255, 255, 0.06); }
.meter-fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 0.45s ease, background 0.3s ease;
}
.meter-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    font-variant-numeric: tabular-nums;
}

.status-badge-pass {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
}
html.dark .status-badge-pass { color: #34d399; }
.status-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #b45309;
}
html.dark .status-badge-warning { color: #fbbf24; }
.status-badge-fail {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.22);
    color: #e11d48;
}
html.dark .status-badge-fail { color: #fb7185; }

.audit-filter {
    padding: 0.35rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 11px;
    font-weight: 700;
    color: #52525b;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}
html.dark .audit-filter {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.audit-filter:hover { color: #18181b; }
html.dark .audit-filter:hover { color: #fff; }
.audit-filter.active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
}
html.dark .audit-filter.active { color: #fff; }

.snippet-edit {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    font-size: 0.8rem;
    line-height: 1.45;
    resize: vertical;
}
html.dark .snippet-edit {
    background: rgba(9, 9, 11, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
}
.snippet-edit:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}

/* Isolated Google SERP preview — never inherit site heading colors */
.serp-card {
    padding: 1.1rem 1.2rem;
    border-radius: 1.1rem;
    background: #ffffff !important;
    border: 1px solid #dadce0 !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
    transition: max-width 0.28s ease;
    font-family: Arial, sans-serif;
    color: #202124 !important;
}
html.dark .serp-card {
    background: #202124 !important;
    border-color: #3c4043 !important;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
    color: #e8eaed !important;
}
.serp-card.mobile-mode {
    max-width: 390px;
    margin: 0 auto;
}
.serp-card .serp-site {
    color: #202124 !important;
    font-size: 13px;
}
html.dark .serp-card .serp-site { color: #e8eaed !important; }
.serp-card .serp-url {
    color: #4d5156 !important;
    font-size: 12px;
}
html.dark .serp-card .serp-url { color: #9aa0a6 !important; }
.serp-card .serp-title,
.serp-card .serp-title * {
    color: #1a0dab !important;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0.35rem 0 0.15rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
}
html:not(.dark) .is-tool-page .serp-card .serp-title,
html:not(.dark) .is-tool-page .serp-card .serp-title * {
    color: #1a0dab !important;
}
html.dark .serp-card .serp-title,
html.dark .serp-card .serp-title *,
html.dark .is-tool-page .serp-card .serp-title {
    color: #8ab4f8 !important;
}
.serp-card .serp-title:hover { text-decoration: underline; }
.serp-card .serp-desc,
.serp-card .serp-desc * {
    color: #4d5156 !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    font-family: Arial, sans-serif;
}
html.dark .serp-card .serp-desc,
html.dark .serp-card .serp-desc * { color: #bdc1c6 !important; }
.serp-favicon-fallback {
    background: #e8f0fe;
    color: #1967d2;
}
html.dark .serp-favicon-fallback {
    background: #3c4043;
    color: #9aa0a6;
}

/* Authentic social cards — independent of site theme */
.og-card {
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dadde1;
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.25);
}
.og-card-img {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #65676b;
}
.og-card-body {
    padding: 0.7rem 0.85rem 0.9rem;
    background: #f0f2f5;
}
.og-card-body .og-kicker { color: #65676b !important; }
.og-card-body .og-heading { color: #050505 !important; }
.og-card-body .og-copy { color: #65676b !important; }

.tw-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #000 !important;
    border: 1px solid #2f3336;
    color: #e7e9ea;
}
.tw-card-img {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background: #16181c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #71767b;
}
.tw-card-body { padding: 0.75rem 0.9rem 0.95rem; }
.tw-card-body .tw-heading { color: #e7e9ea !important; }
.tw-card-body .tw-copy { color: #71767b !important; }

pre.code-block {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    padding: 12px;
    border-radius: 12px;
    overflow-x: auto;
    color: #3f3f46;
    max-height: 280px;
}
html.dark pre.code-block {
    background: #09090b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.stat-chip {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e4e4e7;
}
html.dark .stat-chip {
    background: rgba(9, 9, 11, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}
.stat-chip .label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 0.3rem;
}
.stat-chip .value {
    font-size: 12px;
    font-weight: 600;
    color: #18181b;
    word-break: break-all;
    line-height: 1.35;
}
html.dark .stat-chip .value { color: #e4e4e7; }

.loading-step.is-active { color: #059669; }
html.dark .loading-step.is-active { color: #34d399; }
.loading-step.is-done { color: #71717a; }
.loading-step.is-active span,
.loading-step.is-done span { background: #10b981; }

.tag-group-pill {
    padding: 0.3rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 10px;
    font-weight: 700;
    color: #52525b;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}
html.dark .tag-group-pill {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.tag-group-pill.active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
}
html.dark .tag-group-pill.active { color: #fff; }

.robots-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.robots-pill.on { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }
html.dark .robots-pill.on { color: #34d399; }
.robots-pill.off { background: rgba(244, 63, 94, 0.12); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.25); }
html.dark .robots-pill.off { color: #fb7185; }

.mta-table th {
    color: #71717a;
}
.mta-table td.prop {
    color: #059669;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
}
html.dark .mta-table td.prop { color: #34d399; }
.mta-table td.val {
    color: #3f3f46;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
html.dark .mta-table td.val { color: #d4d4d8; }
