/* EA Media – URL Validator Styles v1.0.0 */

.ea-url-field-wrap {
    margin: 18px 0 20px;
    padding: 18px 20px 16px;
    background: #f8f9fb;
    border: 1.5px solid #e2e6ea;
    border-radius: 10px;
    font-family: inherit;
}

.ea-url-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.ea-url-icon {
    font-size: 16px;
    line-height: 1;
}

.ea-required {
    color: #e24b4a;
    margin-left: 2px;
}

.ea-url-input-row {
    position: relative;
    display: flex;
    align-items: center;
}

.ea-url-input {
    width: 100%;
    padding: 11px 140px 11px 14px;
    font-size: 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.ea-url-input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ea-url-input.ea-valid {
    border-color: #1d9e75;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.1);
}

.ea-url-input.ea-invalid {
    border-color: #e24b4a;
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1);
    animation: ea-shake 0.35s ease;
}

.ea-url-input.ea-checking {
    border-color: #378add;
}

@keyframes ea-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.ea-url-status {
    position: absolute;
    right: 12px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.2s;
    pointer-events: none;
}

.ea-url-status svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ea-status-valid {
    color: #1d9e75;
}

.ea-status-invalid {
    color: #e24b4a;
}

.ea-status-checking {
    color: #378add;
}

.ea-url-hint {
    margin-top: 7px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.ea-url-hint code {
    background: #eef2f7;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    color: #374151;
    font-family: 'Courier New', monospace;
}

.ea-url-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    color: #b91c1c;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .ea-url-input {
        padding-right: 14px;
    }
    .ea-url-status {
        display: none;
    }
}
