/* schema-validator.css */
.tool-wrap {
    padding: 120px 5vw;
    min-height: 100vh;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-grad {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 800px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(29, 124, 110, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Hero */
.tool-hero { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: rgba(29, 124, 110, 0.1); border: 1px solid rgba(29, 124, 110, 0.3);
    color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

.tool-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -0.02em; }
.tool-hero h1 .accent { color: var(--accent); }
.tool-subtitle { font-size: 1.1rem; color: var(--muted); line-height: 1.6; margin-bottom: 40px; }

/* Input */
.input-panel { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 30px; backdrop-filter: blur(10px); }
.url-row { display: flex; gap: 12px; margin-bottom: 16px; }
.url-row input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 16px 24px; border-radius: 12px; font-size: 1.1rem; transition: border-color 0.3s; }
.url-row input:focus { outline: none; border-color: var(--accent); }
.audit-btn { background: var(--accent); color: #fff; border: none; padding: 16px 32px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.audit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.audit-btn svg { width: 20px; height: 20px; }
.url-note { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); justify-content: center; }

/* States */
.hidden { display: none !important; }
.loading-state { text-align: center; padding: 80px 20px; }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(29, 124, 110, 0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.progress-bar { width: 100%; max-width: 300px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s ease; }

.error-state { text-align: center; padding: 60px 20px; background: rgba(255, 77, 109, 0.05); border: 1px solid rgba(255, 77, 109, 0.2); border-radius: 20px; max-width: 600px; margin: 40px auto; }
.error-icon { font-size: 40px; margin-bottom: 16px; }
.error-state h3 { color: #ff4d6d; margin-bottom: 12px; font-size: 1.5rem; }
.error-state p { color: var(--muted); margin-bottom: 24px; }
.retry-btn { background: #ff4d6d; color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Dashboard */
.results-dashboard { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.results-meta { display: flex; align-items: center; gap: 16px; }
.status-indicator { width: 12px; height: 12px; background: #4ADE80; border-radius: 50%; box-shadow: 0 0 10px #4ADE80; }
.results-meta h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.results-meta p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.results-actions { display: flex; gap: 12px; }
.action-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.action-btn:hover { background: rgba(255,255,255,0.1); }
.action-btn.primary { background: var(--accent); border-color: var(--accent); }
.action-btn.primary:hover { background: var(--accent-hover); }

/* Grid Layouts */
.score-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }

@media (max-width: 1024px) {
    .score-grid { grid-template-columns: 1fr 1fr; }
    .main-score { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .url-row { flex-direction: column; }
    .score-grid, .grid-2col { grid-template-columns: 1fr; }
}

/* Cards */
.analysis-card, .score-card, .ai-readiness-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 30px;
}
.full-width { margin-bottom: 30px; }

/* Score */
.main-score { display: flex; align-items: center; gap: 30px; }
.score-circle { position: relative; width: 100px; height: 100px; }
.score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-circle circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.score-circle .bg { stroke: rgba(255,255,255,0.1); }
.score-circle .progress { stroke: #4ADE80; transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1); }
.score-val { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.8rem; font-weight: 800; color: #4ADE80; }
.main-score h3 { font-size: 1.2rem; margin-bottom: 8px; }
.main-score p { color: var(--muted); font-size: 0.95rem; }

/* AI/GEO Cards */
.ai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-icon { font-size: 24px; }
.ai-header h3 { font-size: 1.1rem; margin: 0; }
.ai-val { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; letter-spacing: -0.02em; }
.ai-val.yes { color: #4ADE80; }
.ai-val.partial { color: #fdcb6e; }
.ai-val.no { color: #ff7675; }
.ai-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* Schema Detection List */
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.card-header-flex h3 { margin: 0; font-size: 1.2rem; }
.detected-badges { display: flex; gap: 8px; }
.tech-badge { padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.tech-badge.active { background: rgba(46, 204, 113, 0.15); border-color: #2ecc71; color: #2ecc71; }

.schema-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.schema-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; display: flex; align-items: flex-start; gap: 12px; }
.schema-item.found { border-left: 3px solid #4ADE80; }
.schema-item .icon { font-size: 20px; }
.schema-item h4 { margin: 0 0 6px 0; font-size: 1rem; color: #fff; }
.schema-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Missing & Recommendations */
.analysis-card h3 { margin-bottom: 20px; font-size: 1.2rem; }
.missing-list, .recommendations-list { display: flex; flex-direction: column; gap: 12px; }

.missing-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px; }
.missing-item span { font-weight: 600; font-size: 0.95rem; }
.missing-item .opp-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 10px; background: rgba(255, 179, 71, 0.1); color: #ffb347; text-transform: uppercase; letter-spacing: 0.05em; }

.rec-item { padding: 16px; background: rgba(59, 107, 255, 0.05); border-left: 3px solid #3b6bff; border-radius: 0 8px 8px 0; }
.rec-item h4 { margin: 0 0 8px 0; color: #fff; font-size: 1rem; }
.rec-item p { margin: 0 0 12px 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.rec-prio { display: inline-block; font-size: 0.75rem; padding: 3px 10px; border-radius: 100px; font-weight: 700; background: rgba(255, 77, 109, 0.15); color: #ff4d6d; text-transform: uppercase; }
.rec-prio.med { background: rgba(255, 179, 71, 0.15); color: #ffb347; }

/* Raw Data Section */
.raw-data-section { margin-top: 30px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 24px; }
.raw-title { font-size: 1.1rem; color: #fff; margin: 0 0 4px 0; }
.raw-subtitle { font-size: 0.85rem; color: var(--muted); margin: 0 0 16px 0; }
.raw-data-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 10px; }
.raw-data-list::-webkit-scrollbar { width: 6px; }
.raw-data-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.raw-line { font-family: monospace; font-size: 0.85rem; background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 6px; border-left: 2px solid var(--accent); color: #e2e8f0; display: flex; justify-content: space-between; }
.raw-line .prop { color: #fdcb6e; }
.raw-line .val { color: #4ADE80; word-break: break-all; }

/* Conversion CTA Normalization */
.cta-fix {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: 'Inter Tight', sans-serif !important;
    cursor: pointer !important;
    text-transform: none !important;
    box-shadow: 0 15px 30px rgba(29, 124, 110, 0.3) !important;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s !important;
    margin-top: 0 !important;
}
.cta-fix:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 40px rgba(29, 124, 110, 0.4) !important;
}
