/* Webshop Trust Checker v2.1.42 */

.wtc-container {
    max-width: 100%;
    margin: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}
.wtc-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.25rem; color: #1a1a2e; }
.wtc-subtitle { color: #64748b; margin-bottom: 1.5rem; font-size: 1rem; }

/* Form */
.wtc-form-wrapper { margin-bottom: 2rem; }
.wtc-input-group { display: flex; gap: 0.5rem; position: relative; width: 100%; }
.wtc-input {
    flex: 1; padding: 0.75rem 1rem; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 1rem; transition: border-color 0.2s; outline: none;
}
.wtc-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.wtc-button {
    padding: 0.75rem 1.5rem; background: #6366f1; color: white; border: none;
    border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem;
}
.wtc-button:hover { background: #4f46e5; }
.wtc-button:disabled { background: #94a3b8; cursor: not-allowed; }
.wtc-btn-loading { display: flex; align-items: center; gap: 0.5rem; }
.wtc-spinner { animation: wtc-spin 1s linear infinite; }
@keyframes wtc-spin { to { transform: rotate(360deg); } }
.wtc-error { color: #dc2626; margin-top: 0.5rem; font-size: 0.9rem; }

/* Progress */
.wtc-progress {
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border-radius: 16px; padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 12px rgba(99,102,241,0.07), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative; overflow: hidden;
}
/* Animated shimmer signals "working" even when bar is slow */
.wtc-progress::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.06) 50%, transparent 100%);
    animation: wtc-bg-shimmer 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes wtc-bg-shimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* Taller bar with glow for more perceived momentum */
.wtc-progress-bar {
    height: 10px;
    background: #e0e7ff;
    border-radius: 99px;
    overflow: visible;
    margin-bottom: 1.1rem;
    position: relative;
}
.wtc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 55%, #a78bfa 100%);
    border-radius: 99px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 10px rgba(99,102,241,0.5), 0 0 22px rgba(139,92,246,0.25);
}
/* Pulsing bright dot at the leading edge */
.wtc-progress-fill::after {
    content: '';
    position: absolute;
    right: -3px; top: -4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #c4b5fd 40%, transparent 72%);
    box-shadow: 0 0 8px 4px rgba(167,139,250,0.7);
    animation: wtc-tip-pulse 1.3s ease-in-out infinite;
}
@keyframes wtc-tip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.65); }
}

/* Status text: dynamically updated to show current operation */
.wtc-progress-text {
    font-weight: 600; font-size: 0.95rem;
    color: #4338ca;
    margin-bottom: 1rem;
    min-height: 1.4em;
}

/* Steps */
.wtc-progress-steps { display: flex; flex-direction: column; gap: 0.5rem; }
.wtc-step {
    font-size: 0.85rem;
    color: #c7d2fe;
    opacity: 0.5;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.25s ease;
    display: flex; align-items: center; gap: 0.5rem;
}
/* Active step: slide in slightly, show spinner */
.wtc-step.active {
    color: #4f46e5;
    font-weight: 700;
    opacity: 1;
    transform: translateX(5px);
}
.wtc-step.active::before {
    content: '';
    display: inline-block;
    width: 11px; height: 11px;
    border: 2px solid #c7d2fe;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: wtc-spin 0.65s linear infinite;
    flex-shrink: 0;
}
/* Done step: green check */
.wtc-step.done {
    color: #16a34a;
    opacity: 1;
    transform: translateX(0);
}
.wtc-step.done::before {
    content: '\2713';
    font-size: 11px;
    font-weight: 800;
    color: #16a34a;
}


/* Virtuelt stopur – diskret tæller nede i højre hjørne af progress-boksen */
.wtc-timer {
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    color: #c7d2fe;
    text-align: right;
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
    opacity: 0.7;
}
/* Score Header */
.wtc-score-header {
    display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem;
    background: #f8fafc; border-radius: 16px; margin-bottom: 1.5rem; border: 1px solid #e2e8f0;
}
.wtc-score-circle {
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.wtc-score-circle.wtc-score-best { background: linear-gradient(135deg, #bbf7d0, #86efac); border: 3px solid #16a34a; }
.wtc-score-circle.wtc-score-high { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border: 3px solid #22c55e; }
.wtc-score-circle.wtc-score-medium { background: linear-gradient(135deg, #fef9c3, #fde68a); border: 3px solid #eab308; }
.wtc-score-circle.wtc-score-low { background: linear-gradient(135deg, #fee2e2, #fecaca); border: 3px solid #ef4444; }
.wtc-score-circle.wtc-score-worst { background: linear-gradient(135deg, #fecaca, #fca5a5); border: 3px solid #991b1b; }
.wtc-score-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.wtc-score-best .wtc-score-number { color: #166534; }
.wtc-score-high .wtc-score-number { color: #16a34a; }
.wtc-score-medium .wtc-score-number { color: #ca8a04; }
.wtc-score-low .wtc-score-number { color: #dc2626; }
.wtc-score-worst .wtc-score-number { color: #7f1d1d; }
.wtc-score-label { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.wtc-score-summary h3 { font-size: 1.3rem; margin: 0 0 0.25rem 0; }
.wtc-verdict { font-size: 1.1rem; font-weight: 700; margin: 0.25rem 0; }
.wtc-verdict-best { color: #166534; }
.wtc-verdict-good { color: #16a34a; }
.wtc-verdict-caution { color: #ca8a04; }
.wtc-verdict-bad { color: #dc2626; }
.wtc-verdict-worst { color: #7f1d1d; }
.wtc-score-explanation { color: #475569; font-size: 0.95rem; margin: 0.25rem 0 0 0; }

/* Analysis Grid */
.wtc-analysis-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .wtc-analysis-grid { grid-template-columns: 1fr 1fr; } }
.wtc-analysis-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; transition: box-shadow 0.2s;
}
.wtc-analysis-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.wtc-card-header {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.wtc-card-icon { font-size: 1.2rem; }
.wtc-card-header h4 { flex: 1; margin: 0; font-size: 0.95rem; font-weight: 600; }
.wtc-card-badge {
    font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem;
    border-radius: 20px; white-space: nowrap;
}
.wtc-badge-best { background: #bbf7d0; color: #166534; }
.wtc-badge-good { background: #dcfce7; color: #16a34a; }
.wtc-badge-warning { background: #fef9c3; color: #ca8a04; }
.wtc-badge-bad { background: #fee2e2; color: #dc2626; }
.wtc-badge-worst { background: #fecaca; color: #7f1d1d; }
.wtc-card-body { padding: 0.75rem 1rem; }
.wtc-card-body p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #475569; }

/* Flags */
.wtc-flags-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 639px) { .wtc-flags-section { grid-template-columns: 1fr; } }
.wtc-green-flags, .wtc-red-flags { padding: 1rem; border-radius: 12px; }
.wtc-green-flags { background: #f0fdf4; border: 1px solid #bbf7d0; }
.wtc-red-flags { background: #fef2f2; border: 1px solid #fecaca; }
.wtc-green-flags h4 { color: #16a34a; margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.wtc-red-flags h4 { color: #dc2626; margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.wtc-green-flags ul, .wtc-red-flags ul { margin: 0; padding-left: 1.25rem; }
.wtc-green-flags li, .wtc-red-flags li { font-size: 0.9rem; margin-bottom: 0.3rem; line-height: 1.4; color: #374151; }

/* Recommendation */
.wtc-recommendation {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 1px solid #c7d2fe;
    border-radius: 12px; padding: 1.25rem;
}
.wtc-recommendation p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #312e81; font-weight: 500; }

/* Responsive */
@media (max-width: 480px) {
    .wtc-input-group { flex-direction: column; }
    .wtc-score-header { flex-direction: column; text-align: center; }
}

/* SEO Text Section */
.wtc-seo-text {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.wtc-seo-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.wtc-seo-text h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    margin: 1rem 0 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wtc-seo-text p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* === AUTOCOMPLETE === */
.wtc-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    margin: 0;
    padding: 4px 0;
    list-style: none;
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
}

.wtc-ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background .12s;
    gap: 8px;
}

.wtc-ac-item:hover,
.wtc-ac-item.wtc-ac-active {
    background: #f1f5f9;
}

.wtc-ac-domain {
    font-size: .95rem;
    color: #1e293b;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wtc-ac-badge {
    font-size: .8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.wtc-ac-badge--high   { background: #dcfce7; color: #166534; }
.wtc-ac-badge--medium { background: #fef9c3; color: #854d0e; }
.wtc-ac-badge--low    { background: #fee2e2; color: #991b1b; }

@media (max-width: 600px) {
    .wtc-autocomplete-list { border-radius: 8px; }
}
/* === END AUTOCOMPLETE === */