/* RealDomainDNS — DNS Health Report page styles (health-report.html). */

.health-score-header {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.health-score-header h2 {
    margin-bottom: 0.5rem;
}

.score-ring {
    margin: 0 auto 0.5rem;
    max-width: 150px;
}

.score-ring .ring-bg {
    stroke: #e0e0e0;
}

.score-ring .ring-fg {
    transition: stroke-dasharray 0.4s ease;
}

.score-ring .ring-grade {
    font-size: 34px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.score-ring .ring-score {
    font-size: 13px;
    fill: #555;
}

.health-summary {
    color: #555;
    font-size: 1.05rem;
}

.health-domain-title {
    margin: 1rem 0 0.25rem;
}

.health-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.health-section {
    margin-bottom: 2rem;
}

.health-section > h3 {
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

/* --- Fix plan --- */
.fix-plan-list {
    padding-left: 1.4rem;
    margin: 0;
}

.fix-plan-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.fix-plan-empty {
    color: #1e7e34;
    font-weight: 500;
}

/* --- Checks grid --- */
.health-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.check-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.check-card summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    flex-wrap: wrap;
}

.check-card summary::-webkit-details-marker {
    display: none;
}

.check-card summary::before {
    content: '▸';
    color: #888;
    transition: transform 0.15s ease;
}

.check-card[open] summary::before {
    transform: rotate(90deg);
}

.check-name {
    font-weight: 600;
    min-width: 70px;
}

.check-summary {
    color: #555;
    flex: 1 1 100%;
    font-size: 0.92rem;
}

.check-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #f0f0f0;
}

.check-details {
    margin: 0.6rem 0;
    padding-left: 1.2rem;
}

.check-details li {
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.check-error {
    color: #c62828;
    font-size: 0.9rem;
}

.check-recommendation {
    background: #f5f7fa;
    border-left: 3px solid #2c3e50;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* --- Status badges (text + color, §8.4) --- */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.status-pass { background: #1e7e34; }
.status-warn { background: #f9a825; color: #3a2c00; }
.status-fail { background: #c62828; }
.status-info { background: #607d8b; }

/* Check card accent by status (in addition to the badge). */
.check-pass { border-left: 4px solid #1e7e34; }
.check-warn { border-left: 4px solid #f9a825; }
.check-fail { border-left: 4px solid #c62828; }
.check-info { border-left: 4px solid #607d8b; }

/* --- Export bar --- */
.export-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Spinner / status --- */
.health-spinner {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.75rem 0;
}

.health-status-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

/* --- Responsive (single column ≤ 768px, §8.4) --- */
@media (max-width: 768px) {
    .health-checks-grid {
        grid-template-columns: 1fr;
    }
    .export-buttons {
        flex-direction: column;
    }
    .export-buttons .btn {
        width: 100%;
    }
}
