/* Taboola Scraper - shared design tokens and base elements (Soft UI). */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body, h1, h2, h3, p, ul, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

:root {
    --bg: #e9edf3;
    --surface: #eef1f6;
    --text: #2e3440;
    --text-muted: #6b7684;
    --accent: #5b6cf2;
    --accent-text: #ffffff;
    --danger: #e0567c;
    --success: #3fae7c;
    --radius: 16px;
    --shadow-light: #ffffff;
    --shadow-dark: #c3cad6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* "Soft UI" card: raised via a pair of light/dark offset shadows instead of a border. */
.soft-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    padding: 1.75rem;
}

.soft-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: none;
    border-radius: calc(var(--radius) * 0.6);
    background: var(--bg);
    color: var(--text);
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.soft-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.soft-button {
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: calc(var(--radius) * 0.6);
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}

.soft-button:hover {
    filter: brightness(1.05);
}

.soft-button:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.soft-button--secondary {
    background: var(--surface);
    color: var(--text);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.flash {
    border-radius: calc(var(--radius) * 0.5);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.flash-success { background: #d9f3e6; color: #1f6b48; }
.flash-error   { background: #fbdde7; color: #8a2f4d; }
.flash-info    { background: #e1e6fb; color: #37408a; }
.flash-warning { background: #fdf1d6; color: #8a6a1f; }

a {
    color: var(--accent);
}
