/* CrowdSpark base design system — bold, playful, high-energy theme */

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

:root {
    --cs-purple: #7C3AED;
    --cs-purple-dark: #5B21B6;
    --cs-pink: #EC4899;
    --cs-orange: #F97316;
    --cs-yellow: #FACC15;
    --cs-green: #22C55E;
    --cs-blue: #3B82F6;
    --cs-red: #EF4444;

    --cs-bg: #F5F3FF;
    --cs-surface: #FFFFFF;
    --cs-ink: #1F1147;
    --cs-ink-soft: #5B4B87;
    --cs-border: #E4DBFB;

    --cs-radius-sm: 10px;
    --cs-radius: 18px;
    --cs-radius-lg: 28px;

    --cs-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
    --cs-shadow-lg: 0 16px 40px rgba(124, 58, 237, 0.22);

    --cs-font-display: 'Baloo 2', system-ui, sans-serif;
    --cs-font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --cs-gradient-main: linear-gradient(135deg, var(--cs-purple) 0%, var(--cs-pink) 100%);
    --cs-gradient-warm: linear-gradient(135deg, var(--cs-orange) 0%, var(--cs-yellow) 100%);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cs-bg);
    color: var(--cs-ink);
    font-family: var(--cs-font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .cs-display {
    font-family: var(--cs-font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.4em 0;
}

p { line-height: 1.55; }

.cs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cs-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.cs-hero-bg {
    background: var(--cs-gradient-main);
    background-size: 200% 200%;
    animation: cs-gradient-shift 12s ease infinite;
}

@keyframes cs-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cs-card {
    background: var(--cs-surface);
    border-radius: var(--cs-radius-lg);
    box-shadow: var(--cs-shadow);
    padding: 32px;
}

.cs-card--flush { padding: 0; overflow: hidden; }

.cs-btn {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}
.cs-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.cs-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.cs-btn--primary { background: var(--cs-purple); color: #fff; box-shadow: 0 4px 0 var(--cs-purple-dark); }
.cs-btn--primary:active { box-shadow: 0 2px 0 var(--cs-purple-dark); }
.cs-btn--warm { background: var(--cs-orange); color: #fff; box-shadow: 0 4px 0 #C2410C; }
.cs-btn--green { background: var(--cs-green); color: #fff; box-shadow: 0 4px 0 #15803D; }
.cs-btn--outline { background: #fff; color: var(--cs-purple); border: 2px solid var(--cs-purple); box-shadow: none; }
.cs-btn--block { width: 100%; }
.cs-btn--lg { font-size: 20px; padding: 18px 36px; }
.cs-btn--sm { font-size: 14px; padding: 9px 18px; box-shadow: 0 3px 0 rgba(0,0,0,0.15); }

.cs-input {
    width: 100%;
    font-family: var(--cs-font-body);
    font-size: 16px;
    padding: 14px 16px;
    border-radius: var(--cs-radius-sm);
    border: 2px solid var(--cs-border);
    background: #fff;
    color: var(--cs-ink);
    outline: none;
    transition: border-color 0.15s ease;
}
.cs-input:focus { border-color: var(--cs-purple); }
.cs-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--cs-ink-soft); }
.cs-field { margin-bottom: 18px; }

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--cs-bg);
    color: var(--cs-purple);
}

.cs-alert {
    border-radius: var(--cs-radius-sm);
    padding: 14px 16px;
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 14.5px;
}
.cs-alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; }
.cs-alert--success { background: #F0FDF4; color: #15803D; border: 1px solid #86EFAC; }
.cs-alert--info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }

.cs-muted { color: var(--cs-ink-soft); }
.cs-center { text-align: center; }
.cs-row { display: flex; gap: 12px; align-items: center; }
.cs-row--between { justify-content: space-between; }
.cs-stack { display: flex; flex-direction: column; gap: 12px; }

a.cs-link { color: var(--cs-purple); font-weight: 600; text-decoration: none; }
a.cs-link:hover { text-decoration: underline; }

.cs-spinner {
    width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cs-spin 0.7s linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

::selection { background: var(--cs-yellow); color: var(--cs-ink); }
