* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #f0e500;
  --primary-dark: #c5e500;
  --bg: #f5f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #888888;
  --border: #eeeeee;
  --success: #00c853;
  --error: #ff4444;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* View transitions */
.view {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a[data-link] {
  color: var(--text);
  text-decoration: underline;
}

a[data-link]:hover {
  opacity: 0.8;
}

/* Buttons base */
button {
  font-family: inherit;
  cursor: pointer;
}

/* Inputs base */
input, select {
  font-family: inherit;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  padding: 0.35rem 0.5rem;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--text);
}

.lang-divider {
  color: var(--border);
  font-size: 0.8rem;
}

/* Mini language switcher (in header) */
.lang-switcher-mini {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn-mini {
  padding: 0.25rem 0.5rem;
  border: none;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lang-btn-mini:hover {
  color: var(--text);
}

.lang-btn-mini.active {
  background: var(--primary);
  color: var(--text);
}

/* ============ ICON BUTTONS ============ */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--border);
}

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

.hidden {
  display: none !important;
}
