* { font-family: 'Inter', sans-serif; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

.CodeMirror {
    height: 500px !important;
    border-radius: 0 0 16px 16px;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
@media (max-width: 768px) {
    .CodeMirror { height: 350px !important; font-size: 12px; }
}

/* Tabs */
.tab-btn {
    position: relative;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}
.tab-btn:hover {
    color: #334155;
}
.tab-btn.tab-active {
    color: #4f46e5;
    font-weight: 600;
    border-bottom-color: #4f46e5;
}
.tab-btn.tab-active .iconify { color: #4f46e5; }

/* Tab Content */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SEO Score Colors */
.seo-good { color: #16a34a; }
.seo-medium { color: #ea580c; }
.seo-bad { color: #dc2626; }
.border-good { border-left-color: #16a34a !important; }
.border-medium { border-left-color: #ea580c !important; }
.border-bad { border-left-color: #dc2626 !important; }

/* Loading */
.loader {
    width: 48px; height: 48px;
    border: 4px solid #f1f5f9;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Highlight */
.cm-search-match {
    background-color: #eef2ff !important;
    color: #1e1b4b !important;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #818cf8;
}
.cm-search-match-current {
    background-color: #818cf8 !important;
    color: #ffffff !important;
    border-radius: 2px;
    box-shadow: 0 0 0 2px #6366f1, 0 0 8px rgba(99, 102, 241, 0.4);
    font-weight: 600;
    animation: pulse-highlight 1.5s ease-in-out infinite;
}
@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 2px #6366f1, 0 0 8px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 0 3px #6366f1, 0 0 16px rgba(99,102,241,0.6); }
}

/* Meta Cards */
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .meta-grid { grid-template-columns: 1fr; }
}
.meta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
.meta-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
    transform: translateY(-1px);
}
.meta-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-card-value {
    font-size: 14px;
    color: #0f172a;
    word-break: break-all;
    line-height: 1.6;
}
.meta-card-value a { color: #4f46e5; text-decoration: none; }
.meta-card-value a:hover { text-decoration: underline; }
.meta-card-empty { color: #94a3b8; font-style: italic; font-size: 13px; }

.badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-found { background: #eef2ff; color: #4f46e5; }
.badge-missing { background: #fef2f2; color: #dc2626; }

.og-tag-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
}
.og-prop {
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.og-val { color: #0f172a; word-break: break-all; }

/* SEO Grid */
.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 768px) {
    .seo-grid { grid-template-columns: 1fr; }
}
.seo-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    border-left: 4px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.25s ease;
}
.seo-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}
.seo-icon { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.seo-name { font-weight: 600; font-size: 13px; color: #0f172a; }
.seo-detail { font-size: 12px; color: #64748b; word-break: break-word; margin-top: 2px; }

/* Score Ring */
.score-ring {
    width: 140px;
    height: 140px;
    position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-number { font-size: 36px; font-weight: 700; line-height: 1; }
.score-label { font-size: 11px; font-weight: 500; color: #64748b; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Info bar chips */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    color: #475569;
    transition: all 0.2s;
}
.info-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.info-chip .chip-label { color: #94a3b8; font-weight: 500; }
.info-chip .chip-value { color: #0f172a; font-weight: 600; }

/* Glow dot */
.glow-dot {
    width: 8px; height: 8px;
    background: #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(79,70,229,0.4);
    animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(79,70,229,0.4); }
    50% { box-shadow: 0 0 16px rgba(79,70,229,0.7); }
}

#result-container { display: none; }

.search-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
}
.search-info-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}