@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.vevor-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 860px;
    margin: 24px 0;
    color: #1a1a2e;
}

.vevor-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.vevor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229,57,53,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vevor-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.vevor-subtitle {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    font-weight: 400;
}

.vevor-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vevor-card-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 14px;
}

.vevor-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.vevor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vevor-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.vevor-field input,
.vevor-field select {
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1a1a2e;
    background: #fff;
}

.vevor-field input:focus,
.vevor-field select:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}

.vevor-hint {
    font-size: 11px;
    color: #999;
}

.vevor-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 14px 0;
}

#product-urls {
    width: 100%;
    min-height: 130px;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #1a1a2e;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
    line-height: 1.7;
}

#product-urls:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}

.vevor-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.vevor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.vevor-btn-primary {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    box-shadow: 0 3px 12px rgba(229,57,53,0.35);
}

.vevor-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(229,57,53,0.45);
}

.vevor-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vevor-btn-secondary {
    background: #f5f6fa;
    color: #1a1a2e;
    border: 1.5px solid #e0e0e0;
}

.vevor-btn-secondary:hover {
    background: #eaedf5;
}

.vevor-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.vevor-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.vevor-msg.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Progress bar */
.vevor-progress-bar {
    background: #f0f2f5;
    border-radius: 99px;
    height: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.vevor-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e53935, #ff7043);
    border-radius: 99px;
    width: 0%;
    transition: width 0.4s ease;
}

.vevor-progress-text {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

/* Log */
.vevor-log-title {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #1a1a2e;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.log-entry.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.log-entry.error {
    background: #ffebee;
    color: #c62828;
}

.log-entry.info {
    background: #e3f2fd;
    color: #1565c0;
}

.log-entry.pending {
    background: #fff8e1;
    color: #f57f17;
}

.log-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.log-url {
    font-family: monospace;
    font-size: 11px;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
.badge-blue  { background: #e3f2fd; color: #1565c0; }
.badge-green { background: #e8f5e9; color: #2e7d32; }

/* API hint box */
.vevor-api-hint-box {
    background: #f0f4ff;
    border: 1px solid #c5cae9;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #3949ab;
    margin-bottom: 16px;
}
.vevor-api-hint-box a { color: #1a237e; font-weight: 600; }

/* Full-width field */
.vevor-field-full {
    grid-column: 1 / -1;
}

/* Result badges */
.result-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.result-item:hover {
    border-color: #0f3460;
}

.result-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.result-meta {
    font-size: 12px;
    color: #888;
}

.result-meta span {
    margin-right: 12px;
}

.result-link {
    font-size: 13px;
    font-weight: 600;
    color: #0f3460;
    text-decoration: none;
    padding: 7px 14px;
    border: 1.5px solid #0f3460;
    border-radius: 7px;
    white-space: nowrap;
    transition: all 0.2s;
}

.result-link:hover {
    background: #0f3460;
    color: white;
}

/* Bookmarklet box */
.vevor-bookmarklet-box {
    background: #f8f9ff;
    border: 2px dashed #c5cae9;
    border-radius: 12px;
    padding: 24px;
}
.bookmarklet-steps { display: flex; flex-direction: column; gap: 20px; }
.bookmarklet-step { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
    background: #0f3460; color: white;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.vevor-bookmarklet-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white !important;
    padding: 10px 18px; border-radius: 8px;
    font-weight: 700; font-size: 14px;
    text-decoration: none !important;
    cursor: grab;
    box-shadow: 0 3px 10px rgba(229,57,53,0.4);
    user-select: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
}
.vevor-bookmarklet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(229,57,53,0.5);
    color: white !important;
    text-decoration: none !important;
}
