/* ---------------------------------------------------------------
   EvaluareNationala123 — Design System
   Based on Vercel/Geist design language (see DESIGN.md)
--------------------------------------------------------------- */

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

/* ---------------------------------------------------------------
   Design Tokens
--------------------------------------------------------------- */
:root {
  /* Foundation */
  --geist-foreground:  #171717;
  --geist-background:  #ffffff;

  /* Gray scale */
  --accents-1: #fafafa;
  --accents-2: #eaeaea;
  --accents-3: #999999;
  --accents-4: #888888;
  --accents-5: #666666;
  --accents-6: #444444;
  --accents-7: #333333;
  --accents-8: #111111;

  /* Workflow */
  --geist-success: #0a72ef;
  --geist-error:   #ff5b4f;
  --geist-warning: #de1d8d;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;

  /* Letter spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.025em;
  --tracking-normal:  -0.01em;
  --tracking-wide:     0.02em;
  --tracking-wider:    0.08em;

  /* Shadows (border replacement) */
  --shadow-border:          0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-border-hover:    0 0 0 1px rgba(0, 0, 0, 0.15);
  --shadow-border-focus:    0 0 0 1px #171717;
  --shadow-card:            0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-card-hover:      0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-elevated:        0 0 0 1px rgba(0, 0, 0, 0.03),
                            0 2px 4px rgba(0, 0, 0, 0.02),
                            0 4px 8px rgba(0, 0, 0, 0.02),
                            0 8px 16px rgba(0, 0, 0, 0.02);
  --focus-ring: hsla(212, 100%, 48%, 1);
}

/* ---------------------------------------------------------------
   Base Reset
--------------------------------------------------------------- */
*, *::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-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--geist-foreground);
  background: var(--geist-background);
  letter-spacing: var(--tracking-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
  white-space: nowrap;
  text-decoration: none;
}

/* Sizes */
.btn-sm  { height: 28px; padding: 0 8px;  font-size: 13px; }
.btn-md  { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg  { height: 44px; padding: 0 20px; font-size: 15px; }

/* Primary — black */
.btn-primary {
  background: var(--geist-foreground);
  color: #ffffff;
  box-shadow: var(--shadow-border);
}
.btn-primary:hover  { background: var(--accents-7); }
.btn-primary:active { background: var(--accents-6); transform: scale(0.98); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--focus-ring);
}
.btn-primary:disabled {
  background: var(--accents-1);
  color: var(--accents-3);
  cursor: not-allowed;
}

/* Secondary — outlined */
.btn-secondary {
  background: var(--geist-background);
  color: var(--geist-foreground);
  box-shadow: var(--shadow-border);
}
.btn-secondary:hover  { background: var(--accents-1); box-shadow: var(--shadow-border-hover); }
.btn-secondary:active { background: #f5f5f5; }
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--focus-ring);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--accents-5);
}
.btn-ghost:hover { background: var(--accents-1); color: var(--geist-foreground); }

/* Danger */
.btn-danger {
  background: var(--geist-error);
  color: #ffffff;
}
.btn-danger:hover { background: #e5443a; }

/* ---------------------------------------------------------------
   Cards
--------------------------------------------------------------- */
.card {
  background: var(--geist-background);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-elevated {
  background: var(--geist-background);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-elevated);
}

/* ---------------------------------------------------------------
   Inputs
--------------------------------------------------------------- */
.input {
  background: var(--geist-background);
  color: var(--geist-foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 0 12px;
  height: 40px;
  border-radius: 6px;
  border: none;
  box-shadow: var(--shadow-border);
  transition: box-shadow 150ms ease;
  width: 100%;
}
.input:hover  { box-shadow: var(--shadow-border-hover); }
.input:focus  { outline: none; box-shadow: var(--shadow-border-focus); }
.input::placeholder { color: var(--accents-3); }
.input:disabled { background: var(--accents-1); color: var(--accents-3); cursor: not-allowed; }
.input.error  { box-shadow: 0 0 0 1px var(--geist-error); }

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--geist-foreground);
  margin-bottom: 8px;
}
.input-helper     { font-size: 13px; color: var(--accents-5); margin-top: 6px; }
.input-error-text { font-size: 13px; color: var(--geist-error); margin-top: 6px; }

/* ---------------------------------------------------------------
   Typography helpers
--------------------------------------------------------------- */
.text-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  color: var(--accents-4);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Divider
--------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--accents-2);
  margin: 0;
}

/* ---------------------------------------------------------------
   Utility
--------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
