/* ================================================================
   VantrisAI LLMS.txt Scorer — Stylesheet
   Brand: "Vantris" white / "AI" #2563eb blue
   ================================================================ */

:root {
    --vls-blue: #2563eb;
    --vls-blue-dark: #1d4ed8;
    --vls-blue-light: #dbeafe;
    --vls-navy: #0f172a;
    --vls-gray-900: #111827;
    --vls-gray-700: #374151;
    --vls-gray-500: #6b7280;
    --vls-gray-300: #d1d5db;
    --vls-gray-100: #f3f4f6;
    --vls-green: #16a34a;
    --vls-amber: #d97706;
    --vls-orange: #ea580c;
    --vls-red: #dc2626;
    --vls-radius: 12px;
    --vls-radius-sm: 8px;
    --vls-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Container ── */
.vls-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: var(--vls-font);
    color: var(--vls-gray-900);
}

/* ── Input Section ── */
.vls-input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vls-input-row {
    display: flex;
    align-items: center;
    background: var(--vls-gray-100);
    border: 2px solid var(--vls-gray-300);
    border-radius: var(--vls-radius);
    padding: 0 1rem;
    transition: border-color 0.2s;
}

.vls-input-row:focus-within {
    border-color: var(--vls-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vls-prefix,
.vls-suffix {
    font-size: 0.875rem;
    color: var(--vls-gray-500);
    white-space: nowrap;
    user-select: none;
}

.vls-suffix {
    opacity: 0.6;
}

.vls-url-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    font-family: var(--vls-font);
    color: var(--vls-gray-900);
    outline: none;
    min-width: 0;
}

.vls-url-input::placeholder {
    color: var(--vls-gray-500);
}

/* ── Button ── */
.vls-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--vls-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--vls-font);
    border: none;
    border-radius: var(--vls-radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.vls-check-btn:hover {
    background: var(--vls-blue-dark);
}

.vls-check-btn:active {
    transform: scale(0.98);
}

.vls-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Spinner ── */
.vls-btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vls-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vls-spin 0.7s linear infinite;
}

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

/* ── Loading Animation ── */
.vls-loading {
    margin-top: 2rem;
    text-align: center;
}

.vls-reading-animation {
    padding: 2rem;
}

.vls-scan-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto 1.25rem;
}

.vls-scan-line {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vls-blue-light), var(--vls-blue), var(--vls-blue-light));
    background-size: 200% 100%;
    animation: vls-scan 1.5s ease-in-out infinite;
    opacity: 0.7;
}

.vls-scan-line:nth-child(1) { width: 100%; animation-delay: 0s; }
.vls-scan-line:nth-child(2) { width: 85%; animation-delay: 0.15s; }
.vls-scan-line:nth-child(3) { width: 92%; animation-delay: 0.3s; }
.vls-scan-line:nth-child(4) { width: 70%; animation-delay: 0.45s; }
.vls-scan-line:nth-child(5) { width: 60%; animation-delay: 0.6s; }

@keyframes vls-scan {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vls-loading-text {
    font-size: 0.9rem;
    color: var(--vls-gray-500);
    margin: 0;
    animation: vls-pulse-text 1.5s ease-in-out infinite;
}

@keyframes vls-pulse-text {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* ── Error ── */
.vls-error {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--vls-radius-sm);
    color: var(--vls-red);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Results ── */
.vls-results {
    margin-top: 2rem;
}

/* ── Score Ring ── */
.vls-score-ring-wrap {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.vls-score-ring {
    width: 140px;
    height: 140px;
}

.vls-ring-bg {
    fill: none;
    stroke: var(--vls-gray-100);
    stroke-width: 10;
}

.vls-ring-fg {
    fill: none;
    stroke: var(--vls-blue);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.4s;
}

.vls-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--vls-gray-900);
    line-height: 1;
}

.vls-score-value small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--vls-gray-500);
}

.vls-score-label {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Breakdown ── */
.vls-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vls-section-card {
    background: #fff;
    border: 1px solid var(--vls-gray-300);
    border-radius: var(--vls-radius-sm);
    overflow: hidden;
    animation: vls-fade-up 0.4s ease-out both;
}

.vls-section-card:nth-child(1) { animation-delay: 0.1s; }
.vls-section-card:nth-child(2) { animation-delay: 0.2s; }
.vls-section-card:nth-child(3) { animation-delay: 0.3s; }
.vls-section-card:nth-child(4) { animation-delay: 0.4s; }
.vls-section-card:nth-child(5) { animation-delay: 0.5s; }
.vls-section-card:nth-child(6) { animation-delay: 0.6s; }
.vls-section-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes vls-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vls-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
}

.vls-section-header:hover {
    background: var(--vls-gray-100);
}

.vls-section-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vls-gray-900);
    flex: 1;
}

.vls-section-score-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.vls-badge-full {
    background: #dcfce7;
    color: var(--vls-green);
}
.vls-badge-partial {
    background: #fef3c7;
    color: var(--vls-amber);
}
.vls-badge-low {
    background: #fff7ed;
    color: var(--vls-orange);
}
.vls-badge-zero {
    background: #fef2f2;
    color: var(--vls-red);
}

.vls-section-chevron {
    width: 18px;
    height: 18px;
    color: var(--vls-gray-500);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.vls-section-card.vls-open .vls-section-chevron {
    transform: rotate(180deg);
}

/* ── Bar ── */
.vls-section-bar-wrap {
    height: 4px;
    background: var(--vls-gray-100);
}

.vls-section-bar {
    height: 100%;
    border-radius: 0 4px 4px 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* ── Details ── */
.vls-section-details {
    display: none;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--vls-gray-100);
}

.vls-section-card.vls-open .vls-section-details {
    display: block;
}

.vls-section-why {
    font-size: 0.8rem;
    color: var(--vls-gray-500);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.vls-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vls-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--vls-gray-700);
}

.vls-check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.vls-check-pass {
    color: var(--vls-green);
}

.vls-check-fail {
    color: var(--vls-red);
}

/* ── CTA ── */
.vls-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    background: var(--vls-navy);
    border-radius: var(--vls-radius);
    color: #fff;
}

.vls-cta p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.vls-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--vls-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--vls-radius-sm);
    transition: background 0.2s;
}

.vls-cta-btn:hover {
    background: var(--vls-blue-dark);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .vls-container {
        padding: 1.25rem 1rem;
    }
    .vls-prefix { font-size: 0.8rem; }
    .vls-suffix { font-size: 0.75rem; }
    .vls-url-input { font-size: 0.9rem; padding: 0.75rem 0.4rem; }
}
