/* =============================
   _base.css
   Base styles for theme-aware site
   ============================= */

@import url('./_variables.css');

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition-theme);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  transition: var(--transition-theme);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  transition: var(--transition-theme);
}

p, ul, ol, li, dl, dt, dd {
  color: var(--color-text);
  font-family: inherit;
  transition: var(--transition-theme);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.3s;
}
a:hover,
a:focus {
  color: var(--color-link-hover);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
  transition: var(--transition-theme);
}

input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-input-bg);
  color: var(--color-input-text);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  transition: var(--transition-theme);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
}

::-webkit-input-placeholder { color: var(--color-text-muted); }
::-moz-placeholder { color: var(--color-text-muted); }
:-ms-input-placeholder { color: var(--color-text-muted); }
::placeholder { color: var(--color-text-muted); }

/* Utility classes */
.bg-alt { background: var(--color-bg-alt) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.border { border: 1px solid var(--color-border) !important; }
.card { background: var(--color-card); box-shadow: 0 1px 4px rgba(0,0,0,0.03); border-radius: 8px; border: 1px solid var(--color-border); transition: var(--transition-theme); }

/* Smooth transition for all themeable elements */
.theme-aware, .card, .bg-alt, .text-muted, .border, html, body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd {
  transition: var(--transition-theme);
}
