/* Metro UI Design System - Base Styles */

/* ========================================
   Design Tokens
   ======================================== */

:root {
  /* Grayscale palette */
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-faded: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(105, 105, 105);

  /* Interaction states */
  --hover-bg: rgba(255, 255, 255, 0.05);
  --active-bg: rgba(255, 255, 255, 0.1);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-thick: rgba(255, 255, 255, 0.2);
  --border-input: 2px solid rgba(255, 255, 255, 0.3);

  /* Semantic colors (minimal use) */
  --danger-color: rgb(178 131 131);

  /* Typography */
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --font-weight-bold: 600;

  /* Type scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */
  --text-3xl: 3rem;      /* 48px */

  /* No border radius - Windows Phone style */
  --border-radius: 0;
}

/* ========================================
   Typography
   ======================================== */

h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 0;
  color: var(--text-color);
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-light);
  margin: 0;
  color: var(--text-color);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--text-color);
}

p {
  margin: 0;
  color: var(--text-color);
}

.label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ========================================
   Base Elements
   ======================================== */

/* Buttons */
button {
  appearance: none;
  border: 2px solid white;
  background: transparent;
  color: var(--text-color);
  padding: 0.25rem 1rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

button:hover:not(:disabled) {
  opacity: 0.9;
}

button:active:not(:disabled) {
  background: var(--active-bg);
}

button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

button.btn-primary {
  border-color: var(--text-color);
}

button.btn-primary:hover:not(:disabled) {
  /* opacity: 0.9; */
  background: rgba(256, 256, 256, 0.1);

}

button.btn-minimal {
  border: none;
  color: var(--text-faded);
}

button.btn-danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

button.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
}

/* Inputs */
input,
textarea,
select {
  border: var(--border-input);
  background: transparent;
  color: var(--text-color);
  padding: 0.5rem;
  font-family: inherit;
  font-size: var(--text-base);
  border-radius: var(--border-radius);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--text-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Labels */
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Links */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Form groups */
.form-group {
  margin-bottom: 1.5rem;
}
