/**
 * Claryx Design Tokens
 * Global typography, color, and component styles
 * Reference this file across all pages
 */

/* ============================================
   COLOR PALETTE
   ============================================ */

:root {
  /* Primary Colors */
  --color-black: #1a1a1a;
  --color-cyan: #1DD9D9;
  --color-blue-dark: #2563EB;
  --color-blue-medium: #6B9FE8;
  --color-blue-light: #E0ECFF;
  
  /* Neutrals */
  --color-grey: #E8E8E8;
  --color-white: #FFFFFF;
  
  /* Text */
  --color-text: #1a1a1a;
  --color-text-muted: #6B7280;
  
  /* Semantic */
  --color-success: #059669;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  
  /* Typography Tweaks */
  --button-weight: 400;
  --button-font: 'Poppins', sans-serif;
  --heading-weight: 500;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Font Families */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADING STYLES
   ============================================ */

h1, .h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-text);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-text);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-text);
}

/* ============================================
   BODY TEXT STYLES
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

p, .body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

button, .button {
  font-family: var(--button-font);
  font-weight: var(--button-weight);
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary Button */
.button-primary, button.primary {
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  padding: 10px 18px;
  letter-spacing: 0;
}

.button-primary:hover,
button.primary:hover {
  background-color: #2a2a2a;
}

.button-primary:active,
button.primary:active {
  background-color: #0a0a0a;
}

/* Secondary Button */
.button-secondary, button.secondary {
  background-color: transparent;
  color: var(--color-black);
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--color-black);
  letter-spacing: 0;
}

.button-secondary:hover,
button.secondary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Medium Button */
.button-medium, button.medium {
  font-size: 13px;
  padding: 8px 14px;
  letter-spacing: 0;
}

/* Small Button */
.button-small, button.small {
  font-size: 12px;
  padding: 6px 12px;
  letter-spacing: 0;
}

/* ============================================
   UI TEXT STYLES
   ============================================ */

.label, label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.caption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary {
  color: var(--color-blue-dark);
}

.text-cyan {
  color: var(--color-cyan);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-danger {
  color: var(--color-danger);
}

/* Background colors */
.bg-white {
  background-color: var(--color-white);
}

.bg-light {
  background-color: var(--color-blue-light);
}

.bg-grey {
  background-color: var(--color-grey);
}

.bg-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* ============================================
   COMPONENT DEFAULTS
   ============================================ */

/* Card */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-grey);
  padding: 24px;
  border-radius: 0;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Input */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-grey);
  border-radius: 0;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-blue-dark);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   SPACING SCALE
   ============================================ */

:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

/* ============================================
   BREAKPOINTS
   ============================================ */

:root {
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* ============================================
   SHADOWS
   ============================================ */

:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TRANSITIONS
   ============================================ */

:root {
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}