/* ==========================================================================
   CULTURE INTELLIGENCE — Global Styles
   Dark theme, orange accent, clean sans-serif
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --color-bg: #0A0A0A;
    --color-surface: #1A1A1A;
    --color-surface-2: #222222;
    --color-surface-3: #2A2A2A;
    --color-accent: #F08030;
    --color-accent-hover: #D87028;
    --color-accent-glow: rgba(240, 128, 48, 0.25);
    --color-accent-subtle: rgba(240, 128, 48, 0.1);
    --color-text: #FFFFFF;
    --color-text-muted: #AAAAAA;
    --color-text-subtle: #666666;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.15);
    --color-error: #E74C3C;
    --color-error-bg: rgba(231, 76, 60, 0.1);
    --color-success: #2ECC71;
    --color-success-bg: rgba(46, 204, 113, 0.1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;

    --max-width: 1200px;
    --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
}
.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem;
}
.btn--ghost:hover { color: var(--color-text); }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn--icon {
    width: 40px; height: 40px; padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Form Inputs ---------- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    display: none;
}
.alert--error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}
.alert--success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}
.alert.show { display: block; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge--enterpriser { background: #E74C3C22; color: #E74C3C; }
.badge--coordinator { background: #3498DB22; color: #3498DB; }
.badge--chameleon { background: #2ECC7122; color: #2ECC71; }
.badge--administrator { background: #9B59B622; color: #9B59B6; }
.badge--debater { background: #F39C1222; color: #F39C12; }
.badge--craftsman { background: #1ABC9C22; color: #1ABC9C; }
.badge--scholar { background: #8E44AD22; color: #8E44AD; }
.badge--social-engineer { background: #E67E2222; color: #E67E22; }

/* ---------- Loading ---------- */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface-3); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-subtle); }

/* ---------- Focus ---------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ---------- Print ---------- */
@media print {
    body { background: #fff; color: #000; }
    .no-print { display: none !important; }
}
