/* Nav search */
.nav-search { display: flex; gap: 0; }

.nav-search input {
    padding: 0.5rem 0.75rem;
    background: var(--surface); backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--text); font-size: 0.85rem; outline: none;
    width: 220px; font-family: var(--mono);
    caret-color: var(--accent);
}

.nav-search input:focus { border-color: var(--accent); }

.nav-search button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
    border-radius: 0 4px 4px 0;
}

/* Report */
.report { max-width: 1000px; margin: 0 auto; padding: 2rem; }

.report-header {
    text-align: center; padding: 3rem 2.5rem;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.report-header h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    font-family: var(--sans);
}

.score-ring {
    width: 164px; height: 164px; border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid;
    position: relative;
}

.score-ring.score-good::before { border-color: var(--good); }
.score-ring.score-warning::before { border-color: var(--warning); }
.score-ring.score-bad::before { border-color: var(--bad); }

.score-number {
    font-size: 4.2rem; font-weight: 800; line-height: 1;
}

.score-ring.score-good .score-number { color: var(--good); text-shadow: 0 0 25px var(--glow-green); }
.score-ring.score-warning .score-number { color: var(--warning); text-shadow: 0 0 25px var(--warning-glow); }
.score-ring.score-bad .score-number { color: var(--bad); text-shadow: 0 0 25px var(--bad-glow); }

.score-label {
    font-size: 0.65rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.12em;
}

.verdict {
    display: inline-block; padding: 0.4rem 1.5rem;
    border: 1px solid; border-radius: 4px;
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.verdict-good { border-color: var(--good); color: var(--good); text-shadow: 0 0 6px var(--glow-green-dim); }
.verdict-warning { border-color: var(--warning); color: var(--warning); }
.verdict-bad { border-color: var(--bad); color: var(--bad); }

.industry-badge {
    display: inline-block; padding: 0.4rem 0.85rem;
    border: 1px solid var(--accent-3); border-radius: 3px;
    font-size: 0.8rem; color: var(--accent-3);
    letter-spacing: 0.06em; margin-bottom: 1rem;
    text-decoration: none;
}

a.industry-badge:hover {
    background: rgba(139,92,246,0.1);
    border-color: var(--accent-3);
}

.summary {
    color: var(--text-dim); max-width: 650px;
    margin: 0 auto 1rem; font-size: 0.95rem;
    line-height: 1.75;
    font-family: var(--sans);
}

.industry-comparison {
    font-size: 0.72rem; color: var(--text-faint);
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    display: inline-block; margin-bottom: 0.5rem;
    background: var(--surface-2);
}

.industry-comparison strong { color: var(--accent); }

.checked-at { font-size: 0.7rem; color: var(--text-faint); }
.checked-at a { color: var(--accent-2); text-decoration: none; }
.checked-at a:hover { text-decoration: underline; }

/* Sections */
.section { margin-top: 3rem; }

.section h2 {
    font-size: 0.72rem; font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.5rem;
}

.section h2::before {
    content: '//';
    color: var(--accent);
    font-weight: 400;
}

/* Breakdown */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.breakdown-item {
    background: var(--surface);
    backdrop-filter: blur(16px);
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

/* Colored left edge */
.breakdown-item::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
}

.breakdown-item.breakdown-good::before { background: linear-gradient(180deg, var(--good), var(--accent)); }
.breakdown-item.breakdown-warning::before { background: linear-gradient(180deg, var(--warning), #FF8800); }
.breakdown-item.breakdown-bad::before { background: linear-gradient(180deg, var(--bad), #FF0044); }

.breakdown-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 0.5rem;
}

.breakdown-category {
    font-weight: 700; font-size: 0.88rem;
    font-family: var(--sans);
}

.breakdown-score {
    font-weight: 700; font-size: 0.75rem;
    padding: 0.2rem 0.6rem; border: 1px solid;
    border-radius: 3px;
}

.breakdown-findings {
    color: var(--text-dim); font-size: 0.85rem; line-height: 1.55;
    font-family: var(--sans);
}

/* Similar sites */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.similar-card:hover {
    box-shadow: 0 0 12px var(--glow-dim);
}

.similar-score {
    font-size: 1.2rem; font-weight: 700;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border-radius: 50%;
    border: 2px solid;
}

.similar-domain { display: block; font-weight: 700; font-size: 0.9rem; }
.similar-verdict { font-size: 0.7rem; color: var(--text-dim); }

/* CTA */
.cta-section {
    background: var(--surface-2);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
    opacity: 0.5;
}

.cta-section h2::before { content: '//'; color: var(--accent-3); }

.cta-section > p {
    color: var(--text-dim); margin-bottom: 1.25rem; font-size: 0.9rem;
    font-family: var(--sans);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.cta-card {
    border: 1px solid var(--border);
    border-radius: 6px; padding: 1.1rem;
    background: var(--surface);
    transition: all 0.2s;
}

.cta-card:hover {
    border-color: var(--accent-3);
    box-shadow: 0 0 12px var(--glow-purple);
}

.cta-card strong { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; color: var(--text); }

.cta-card p {
    font-size: 0.75rem; color: var(--text-dim); line-height: 1.55;
    font-family: var(--sans);
}

/* Embed badge section */
.embed-section {
    background: var(--surface-2);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.embed-subtitle {
    color: var(--text-dim); font-size: 0.85rem;
    font-family: var(--sans); margin-bottom: 1.25rem;
}

.embed-controls {
    display: flex; gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.embed-option {
    display: flex; flex-direction: column; gap: 0.3rem;
}

.embed-option label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 700;
}

.embed-option select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.8rem;
    cursor: pointer;
}

.embed-option select:focus {
    outline: none;
    border-color: var(--accent);
}

.embed-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-height: 80px;
}

.embed-preview img {
    max-width: 100%;
    height: auto;
}

.embed-snippets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.snippet-group label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.snippet-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.snippet-wrap code {
    flex: 1;
    display: block;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.72rem;
    color: var(--text-dim);
    overflow-x: auto;
    white-space: nowrap;
    line-height: 1.6;
}

.snippet-copy {
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 4px 4px 0;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.snippet-copy:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}

@media (max-width: 480px) {
    .embed-controls { flex-direction: column; }
    .embed-section { padding: 1.25rem; }
}

/* Score deductions */
.deduction-header {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.deduction-start {
    font-weight: 700;
    color: var(--good);
}

.deduction-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.deduction {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.deduction::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
}

.deduction-minor::before { background: var(--warning); }
.deduction-moderate::before { background: #FF8800; }
.deduction-serious::before { background: var(--bad); }

.deduction-points {
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 36px;
    flex-shrink: 0;
}

.deduction-minor .deduction-points { color: var(--warning); }
.deduction-moderate .deduction-points { color: #FF8800; }
.deduction-serious .deduction-points { color: var(--bad); }

.deduction-text {
    flex: 1;
    min-width: 0;
}

.deduction-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin-bottom: 0.15rem;
}

.deduction-reason {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    font-family: var(--sans);
}

.no-deductions {
    padding: 1rem;
    text-align: center;
    color: var(--good);
    font-size: 0.85rem;
    border: 1px solid var(--good);
    border-radius: 6px;
    background: var(--good-bg);
}

.deduction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 0.85rem;
    font-weight: 700;
}

.deduction-total {
    font-size: 1rem;
    font-weight: 800;
}

/* SEO content */
.seo-content article {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.75;
    white-space: pre-wrap;
    font-family: var(--sans);
}

/* Responsive */
@media (max-width: 768px) {
    .report-header { padding: 2rem 1.25rem; }
    .score-ring { width: 134px; height: 134px; }
    .score-number { font-size: 3.2rem; }
    .breakdown-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 540px) {
    .breakdown-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .report { padding: 1rem; }
    .nav-search { display: none; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 1.25rem; }
    .similar-grid { grid-template-columns: 1fr; }
}
