/**
 * GolinksPRO — site-wide dark "studio" theme.
 *
 * Loaded LAST by layouts/main.php. Remaps the light design tokens from
 * main.css onto the app's 1.3.0 palette (see studio.css), so every page that
 * uses the shared tokens turns dark without being rewritten. The few rules
 * below the token block patch components that hardcode light colours.
 */
:root {
    --primary: #a3e635;
    --primary-hover: #bef264;
    --primary-light: #bef264;
    --primary-dark: #84cc16;
    --primary-glow: rgba(163, 230, 53, 0.14);
    --primary-surface: rgba(163, 230, 53, 0.06);
    --primary-ink: #0b0c0e;

    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-light: #6ee7b7;

    --secondary: #121317;
    --secondary-light: #1a1c21;

    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.1);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.1);

    --bg-body: #09090b;
    --bg-gradient: linear-gradient(180deg, #09090b 0%, #0f1013 100%);
    --surface-1: #0d0e11;
    --surface-2: #121317;
    --surface-3: #1a1c21;
    --surface-glass: rgba(18, 19, 23, 0.8);
    --surface-hover: rgba(163, 230, 53, 0.04);
    --surface-dark: #09090b;
    --surface-dark-2: #121317;

    --border: #22252b;
    --border-light: #1a1c21;
    --border-active: #a3e635;

    --text: #f1f3f5;
    --text-secondary: #aab0b8;
    --text-muted: #7d838c;
    --text-disabled: #575d66;
    --text-on-dark: #f1f3f5;
    --text-on-dark-secondary: #aab0b8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 32px -14px rgba(0, 0, 0, 0.7);
    --shadow-xl: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 56px -20px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 0 1px rgba(163, 230, 53, 0.35), 0 8px 28px -10px rgba(163, 230, 53, 0.55);
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-brutal: 0 0 0 1px rgba(163, 230, 53, 0.25);

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { color-scheme: dark; }
body { background: var(--bg-body); color: var(--text); }
::selection { background: rgba(163, 230, 53, 0.3); color: var(--text); }

/* Headings: the app's tight, semibold Inter instead of Space Grotesk */
h1, h2, h3, h4, h5, h6 { color: var(--text); letter-spacing: -0.025em; }

a { color: inherit; }

/* Form controls (contact, checkout, download) */
input, textarea, select {
    color-scheme: dark;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
textarea, select {
    background-color: var(--surface-3);
    border-color: var(--border);
    color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-disabled); }
input:focus, textarea:focus, select:focus {
    border-color: rgba(163, 230, 53, 0.5);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.1);
    outline: none;
}

/* Tables (privacy, comparisons) */
table { border-color: var(--border); }
th { color: var(--text); }
td { color: var(--text-secondary); }

/* Undefined-variable fallbacks used by landing pages (they fell back to navy) */
:root { --text-primary: var(--text); }
