/* css/main.css - Reset & Globals */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

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

a:hover {
  filter: brightness(1.2);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* App Container */
#app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px; /* Limit width for readability, like a mobile app on desktop */
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* View Container */
.view {
  display: none; /* Controlled via JS */
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
  width: 100%;
  animation: fadeIn var(--transition-normal);
}

.view.active {
  display: flex;
}

/* Scrollbar customization for webkit */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-subtle);
}
