/* Detective Chain — Tool Pages Shared Styles */

.tool-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
}

.tool-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.tool-search {
    max-width: 640px;
    margin: 0 auto 48px;
}

/* Loading */
.tool-loading {
    text-align: center;
    padding: 60px 0;
}

.loading-steps {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.load-step {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.load-step.active {
    color: var(--gold);
    background: rgba(212, 168, 83, 0.06);
}

.load-step.done {
    color: var(--emerald);
}

/* Results */
.tool-results {
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.entity-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: var(--glow-crimson);
    color: var(--crimson);
}

.entity-badge.safe { background: var(--glow-emerald); color: var(--emerald); }
.entity-badge.warning { background: var(--glow-gold); color: var(--gold); }
.entity-badge.danger { background: var(--glow-crimson); color: var(--crimson); }

.result-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.entity-address {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* Score Grid */
.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.score-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.score-ring {
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--border);
}

.score-ring.danger::before { border-color: rgba(244, 63, 94, 0.3); }
.score-ring.warning::before { border-color: rgba(212, 168, 83, 0.3); }
.score-ring.info::before { border-color: rgba(59, 130, 246, 0.3); }

.score-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.score-ring.danger .score-value { color: var(--crimson); }
.score-ring.warning .score-value { color: var(--gold); }
.score-ring.info .score-value { color: var(--blue); }

.score-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Result Cards */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* DNA Bars */
.dna-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dna-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dna-label {
    width: 110px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dna-bar-wrapper {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.dna-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.dna-bar.emerald { background: linear-gradient(90deg, var(--emerald-dark), var(--emerald)); }
.dna-bar.crimson { background: linear-gradient(90deg, #b91c1c, var(--crimson)); }
.dna-bar.blue { background: linear-gradient(90deg, #1d4ed8, var(--blue)); }
.dna-bar.purple { background: linear-gradient(90deg, #6d28d9, var(--purple)); }

.dna-pct {
    width: 44px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* Match List */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.match-item:hover {
    border-color: var(--border-hover);
    background: rgba(212, 168, 83, 0.03);
}

.match-pct {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--gold);
    min-width: 50px;
}

.match-info {
    flex: 1;
}

.match-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.match-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.match-outcome {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.match-outcome.negative { background: var(--glow-crimson); color: var(--crimson); }
.match-outcome.positive { background: var(--glow-emerald); color: var(--emerald); }
.match-outcome.neutral { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--emerald), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 12px 0 12px 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px; top: 18px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-primary);
}

.timeline-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Verdict */
.verdict-card {
    text-align: center;
    padding: 40px;
    border-color: rgba(212, 168, 83, 0.15);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.03), rgba(52, 211, 153, 0.02));
}

.verdict-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.verdict-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.verdict-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 { font-size: 2rem; }
    .score-grid { grid-template-columns: 1fr; }
    .result-card { padding: 20px; }
    .dna-label { width: 80px; font-size: 0.72rem; }
}
