/* ═══════════════════════════════════════════════
   BLUEPRINT VALIDATOR STYLES
   ═══════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #faf8f5;
    color: #2d2a26;
    line-height: 1.6;
}

/* ─── Hero ─── */
.validate-hero {
    text-align: center;
    padding: 60px 40px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.validate-hero .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #558b2f;
    background: #edf7ee;
    padding: 4px 12px;
    border-radius: 20px;
}

.validate-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 16px;
    letter-spacing: -0.02em;
}

.validate-hero .subtitle {
    font-size: 15px;
    color: #6b665e;
    margin-top: 10px;
    line-height: 1.7;
}

/* ─── Validator Section ─── */
.validator-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.input-area {
    background: #fffefa;
    border: 1px solid #e8e4de;
    border-radius: 14px;
    overflow: hidden;
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0ece6;
}

.input-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
}

.btn-validate {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.btn-validate:hover {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transform: translateY(-1px);
}

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

.blueprint-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: none;
    outline: none;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #2d2a26;
    background: #fffefa;
    resize: vertical;
}

.blueprint-textarea::placeholder {
    color: #c4bfb8;
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f0ece6;
    background: #faf8f5;
}

.char-count {
    font-size: 12px;
    color: #9e9890;
    font-family: 'SFMono-Regular', 'Consolas', monospace;
}

.btn-clear {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid #e8e4de;
    border-radius: 6px;
    background: #fffefa;
    color: #8a857d;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    border-color: #ccc;
    color: #2d2a26;
}

/* ─── Results ─── */
.results-panel {
    margin-top: 24px;
    background: #fffefa;
    border: 1px solid #e8e4de;
    border-radius: 14px;
    overflow: hidden;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f0ece6;
}

.overall-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.overall-badge.pass {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.overall-badge.warn {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.overall-badge.fail {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.results-summary {
    font-size: 14px;
    color: #5d5850;
}

.results-summary strong {
    color: #2d2a26;
}

/* ─── Check Items ─── */
.checks-list {
    padding: 8px 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid #f5f3ee;
    transition: background 0.15s;
}

.check-item:last-child {
    border-bottom: none;
}

.check-item:hover {
    background: #faf8f5;
}

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

.check-icon.pass {
    background: #e8f5e9;
    color: #2e7d32;
}

.check-icon.warn {
    background: #fff8e1;
    color: #f57f17;
}

.check-icon.fail {
    background: #ffebee;
    color: #c62828;
}

.check-body {
    flex: 1;
}

.check-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9e9890;
    margin-bottom: 2px;
}

.check-message {
    font-size: 14px;
    color: #2d2a26;
}

.check-details {
    margin-top: 6px;
    padding: 0;
    list-style: none;
}

.check-details li {
    font-size: 12px;
    color: #8a857d;
    padding: 2px 0 2px 14px;
    position: relative;
}

.check-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ccc;
}

/* ─── Drag hover ─── */
.blueprint-textarea.drag-hover {
    background: #edf7ee;
    border: 2px dashed #66bb6a;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .validate-hero {
        padding: 40px 20px 30px;
    }

    .validator-section {
        padding: 0 20px 40px;
    }

    .blueprint-textarea {
        min-height: 200px;
    }
}
/* ─── Community Banner ─── */
.community-banner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 60px;
}
.community-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f5faf6, #edf7ee);
    border: 1px solid #c8e6c9;
    border-radius: 14px;
}
.community-text { display: flex; align-items: center; gap: 16px; }
.community-icon { font-size: 28px; }
.community-text h3 { font-size: 16px; font-weight: 700; color: #1a1816; margin-bottom: 2px; }
.community-text p { font-size: 13px; color: #6b665e; }
.community-link {
    display: inline-flex; align-items: center; font-size: 14px; font-weight: 600;
    padding: 10px 22px; border-radius: 10px; background: #2d2a26; color: #fff;
    text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.community-link:hover {
    background: #1a1816; box-shadow: 0 4px 12px rgba(0,0,0,.15); transform: translateY(-1px);
}
