/* ============================================
   BASE STYLES
   Global resets and base element styles
   Note: Design tokens now in builder/tokens.css
   Note: Component styles now in builder/builder-components.css
   ============================================ */

:root {
  /* Legacy tokens for non-builder pages */
  --bg: #232336;
  --fg: #f5f7ff;
  --muted: #c2c6da;
  --accent: #000000;
  --accent-2: #d600a9;
  --danger: #ef4444;
  --card: #1a1c2f;
  --card-2: #1f2134;
  --border: rgba(255, 255, 255, 0.14);
  --surface: #ffffff;
  --surface-border: rgba(60, 31, 31, 0.18);
  --ink: #1f2238;
  --radius: 10px;
  font-variant-ligatures: none;
}
/* === CSS Reset === */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #232336 0%, #181824 100%);
  color: var(--fg);
  font: 16px/1.5 'Gilroy', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Base Typography === */
h1,
h2,
h3 {
  margin: 0 0 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* === Base Media === */
img {
  max-width: 100%;
  display: block;
}

/* === Base Interaction === */
button {
  cursor: pointer;
}
/* === Utility Classes === */
/* Note: Component-specific styles (buttons, inputs, cards) moved to builder-components.css */

.hidden {
  display: none !important;
}

/* Layout helpers */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Typography helpers */
label {
  display: block;
  margin: 0.25rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.helper {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 1rem 0;
}

/* Legacy components for non-builder pages */
.card {
  background: rgba(26, 28, 52, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 18px 36px rgba(12, 10, 30, 0.32);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(20, 19, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.progress {
  height: 4px;
  background: rgba(20, 22, 40, 0.4);
  border-radius: 999px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}
/* === Responsive Helpers === */
.only-desktop {
  display: block;
}

.only-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}
