/* Report / Site Dossier */
.report-page {
    max-width: 760px;
    margin: 0 auto;
}

/* Input card */
.report-input-card {
    text-align: center;
    padding: 36px 28px !important;
    border-radius: 24px !important;
    margin-bottom: 24px;
}

.report-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.report-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.report-input-row {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

.report-url-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(15, 25, 20, 0.6);
    border: 2px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s;
}

.report-url-input:focus {
    border-color: var(--emerald-light);
}

.report-url-input::placeholder {
    color: var(--text-muted);
}

.report-analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.report-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.report-analyze-btn:active {
    transform: translateY(0) scale(0.97);
}

.report-analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading */
.report-loading {
    text-align: center;
    padding: 48px 20px;
}

.report-loading-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.report-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(52, 211, 153, 0.15);
    border-top-color: var(--emerald-light);
    border-radius: 50%;
    animation: repSpin 0.7s linear infinite;
}

@keyframes repSpin {
    to { transform: rotate(360deg); }
}

.report-loading-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.report-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

.report-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.report-step.done {
    color: var(--emerald-light);
}

.report-step-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RESULTS
   ══════════════════════════════════════════ */
.report-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: repFadeIn 0.4s ease;
}

@keyframes repFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Score card */
.report-score-card {
    text-align: center;
    padding: 32px 24px !important;
    border-radius: 22px !important;
    position: relative;
    overflow: hidden;
}

.report-score-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    position: relative;
}

.report-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.report-score-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 8;
}

.report-score-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.report-score-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.report-score-verdict {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.report-score-url {
    font-size: 14px;
    color: var(--text-muted);
    word-break: break-all;
}

/* Section card */
.report-section {
    padding: 22px !important;
    border-radius: 20px !important;
}

.report-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--emerald-light);
    flex-shrink: 0;
}

/* Key-value rows */
.report-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.report-row:last-child {
    border-bottom: none;
}

.report-row-key {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 140px;
}

.report-row-val {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    flex: 1;
}

/* Tags */
.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-tag {
    padding: 5px 12px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--emerald-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* Notes */
.report-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
}

.report-note-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
}

.report-note.good .report-note-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.report-note.warn .report-note-icon {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.report-note.bad .report-note-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.report-note-text {
    color: var(--text-secondary);
}

/* Security indicators */
.report-sec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.report-sec-row:last-child {
    border-bottom: none;
}

.report-sec-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.report-sec-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.report-sec-badge.yes {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.report-sec-badge.no {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Favicon + domain header */
.report-domain-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.report-favicon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    object-fit: contain;
}

.report-domain-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Robots preview */
.report-robots-pre {
    background: rgba(15, 25, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    max-height: 160px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Error */
.report-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Download bar */
.report-download-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.report-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.report-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.report-download-btn:active {
    transform: translateY(0) scale(0.97);
}

.report-download-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.report-download-btn-secondary {
    background: rgba(15, 25, 20, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.report-download-btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
    color: var(--text-primary);
    box-shadow: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
    .report-input-card {
        padding: 24px 16px !important;
    }

    .report-heading {
        font-size: 22px;
    }

    .report-input-row {
        flex-direction: column;
    }

    .report-analyze-btn {
        justify-content: center;
    }

    .report-url-input {
        font-size: 16px;
    }

    .report-row {
        flex-direction: column;
        gap: 4px;
    }

    .report-row-val {
        text-align: left;
    }

    .report-row-key {
        min-width: auto;
    }

    .report-section {
        padding: 18px 16px !important;
    }

    .report-score-card {
        padding: 24px 16px !important;
    }

    .report-score-ring {
        width: 100px;
        height: 100px;
    }

    .report-score-number {
        font-size: 26px;
    }
}
