:root {
    --check-ai-border: #ddd;
    --check-ai-bg: #ffffff;
    --check-ai-muted: #666;
    --check-ai-soft: #f7f7f7;

    --check-ai-green: #2ecc71;
    --check-ai-orange: #f39c12;
    --check-ai-red: #e74c3c;
}

/* =========================
   WRAPPER
========================= */

.check-ai-wrapper {
    max-width: 950px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #222;
}

/* =========================
   FORM
========================= */

.check-ai-wrapper form {
    background: var(--check-ai-bg);
    border: 1px solid var(--check-ai-border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 25px;
}

.check-ai-wrapper input[type="url"],
.check-ai-wrapper input[type="file"] {
    margin-top: 8px;
    padding: 8px;
}

/* =========================
   SUMMARY BOX
========================= */

.check-ai-summary {
    background: var(--check-ai-soft);
    border: 1px solid var(--check-ai-border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.check-ai-summary strong {
    display: inline-block;
    min-width: 160px;
}

/* =========================
   DETECTOR BLOCK
========================= */

.check-ai-detector-block {
    background: var(--check-ai-bg);
    border: 1px solid var(--check-ai-border);
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 15px;
    transition: all 0.15s ease-in-out;
}

.check-ai-detector-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* =========================
   DETECTOR HEADER
========================= */

.check-ai-detector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.check-ai-detector-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Score badge */
.check-ai-score {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f2f2f2;
    font-size: 13px;
}

/* =========================
   METRICS LINE
========================= */

.check-ai-metrics {
    font-size: 13px;
    color: var(--check-ai-muted);
    margin-bottom: 10px;
}

/* =========================
   DETAILS SECTION
========================= */

.check-ai-detector-block details {
    margin-top: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 10px;
}

.check-ai-detector-block summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.check-ai-details-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 12px;
    color: #444;
}

/* =========================
   SCORE INDICATORS
   (future-proof)
========================= */

.score-low {
    border-left: 5px solid var(--check-ai-green);
}

.score-medium {
    border-left: 5px solid var(--check-ai-orange);
}

.score-high {
    border-left: 5px solid var(--check-ai-red);
}

/* =========================
   BUTTONS (WordPress-friendly)
========================= */

.check-ai-wrapper .button {
    padding: 8px 14px;
    border-radius: 6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

    .check-ai-detector-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .check-ai-score {
        margin-top: 5px;
    }
}