/* style.css */

:root {
  --color-bg-light: #f8f9fb;
  --color-bg-dark: #191c1f;
  --color-text-light: #222;
  --color-text-dark: #fff;
  --color-primary: #52b069;
  --color-secondary: #e5e6eb;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  transition: background 0.3s, color 0.3s;
}

header {
  background: var(--color-primary);
  color: white;
  padding: 1.5rem 1rem 1rem 1rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.actions {
  display: flex;
  gap: 1rem;
}

main {
  max-width: 670px;
  margin: 2rem auto;
  padding: 1rem;
}

.feature {
  background: white;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
}

.flex-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

h2, h3 {
  margin-top: 0;
}

.primary {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1em;
  transition: background 0.2s;
}

.primary:hover {
  background: #378c4b;
}

.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  margin-top: 1em;
  transition: background 0.2s;
}

.secondary:hover {
  background: #c1c2c9;
}

details {
  margin-bottom: 1em;
}

footer {
  text-align: center;
  padding: 1em;
  color: #999;
  background: #f3f3f3;
}

body.dark-theme {
  background: var(--color-bg-dark);
  color: var(--color-text-dark);
}

body.dark-theme header {
  background: #212836;
  color: var(--color-primary);
}

body.dark-theme .feature {
  background: #232730;
  color: var(--color-text-dark);
  box-shadow: 0 2px 12px #0006;
}

body.dark-theme .primary {
  background: var(--color-primary);
  color: white;
}

body.dark-theme .secondary {
  background: #444857;
  color: white;
}

body.dark-theme .secondary:hover {
  background: #7e829a;
}

body.dark-theme footer {
  background: #20232b;
  color: #ccc;
}
