/* ============================================================
   Email Sender Checker Pro — Styles v4
   ============================================================ */

.esc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #1a1a2e;
}

/* ── Formulaire ─────────────────────────────────────────── */

.esc-form-container {
    background: #fffdf6;
    border: 1px solid #e0ddd4;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.esc-form-container h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.esc-subtitle {
    margin: 0 0 20px;
    color: #555;
    font-size: 0.95rem;
}

.esc-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.esc-input-row input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.esc-input-row input[type="email"]:focus {
    border-color: #2563eb;
}

.esc-submit-btn {
    padding: 12px 28px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.esc-submit-btn:hover {
    background: #1d4ed8;
}

/* ── Loading ─────────────────────────────────────────────── */

#esc-loading {
    text-align: center;
    padding: 32px;
    color: #555;
}

.esc-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: esc-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes esc-spin {
    to { transform: rotate(360deg); }
}

/* ── Header résultats + score ────────────────────────────── */

.esc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #f8f9fc;
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.esc-domain-label {
    font-size: 0.95rem;
    color: #444;
}

.esc-score-wrap {
    text-align: center;
}

.esc-score-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #e5e7eb;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    transition: border-color 0.3s;
    line-height: 90px;
    text-align: center;
    box-sizing: border-box;
}

.esc-score-max {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
    margin-left: 1px;
    vertical-align: middle;
}

.esc-score-circle.esc-score-green  { border-color: #16a34a; color: #16a34a; }
.esc-score-circle.esc-score-orange { border-color: #d97706; color: #d97706; }
.esc-score-circle.esc-score-red    { border-color: #dc2626; color: #dc2626; }

.esc-score-label {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

/* ── Items résultats ─────────────────────────────────────── */

.esc-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.esc-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.esc-item--good    { border-left: 4px solid #16a34a; }
.esc-item--warning { border-left: 4px solid #d97706; }
.esc-item--error   { border-left: 4px solid #dc2626; }
.esc-item--info    { border-left: 4px solid #6366f1; }

.esc-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fafafa;
    cursor: default;
}

.esc-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.esc-item-label {
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1;
}

.esc-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.esc-badge--good    { background: #dcfce7; color: #166534; }
.esc-badge--warning { background: #fef3c7; color: #92400e; }
.esc-badge--error   { background: #fee2e2; color: #991b1b; }
.esc-badge--info    { background: #e0e7ff; color: #3730a3; }

.esc-item-body {
    padding: 12px 16px 14px;
}

.esc-msg {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.esc-record {
    display: block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.esc-rec {
    font-size: 0.85rem;
    color: #555;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
    margin-top: 4px;
}



/* ── Disclaimer ──────────────────────────────────────────── */

.esc-disclaimer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 24px;
}

.esc-disclaimer-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.esc-disclaimer strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.esc-disclaimer p {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.esc-disclaimer p:last-child {
    margin-bottom: 0;
}

.esc-disclaimer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Alerte webmail ──────────────────────────────────────── */

.esc-webmail-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.esc-webmail-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.esc-webmail-alert strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.esc-webmail-alert p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.esc-webmail-alert p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 520px) {
    .esc-form-container { padding: 20px 16px; }
    .esc-input-row      { flex-direction: column; }
    .esc-submit-btn     { width: 100%; }
    .esc-results-header { flex-direction: column; align-items: flex-start; }
}
