:root {
  --bg: #f5f1e8;
  --text: #2a2a2a;
  --accent: #2d5a3d;
  --accent-light: #4a7c5e;
  --card: #ffffff;
  --border: #d4cfc0;
  --muted: #6b6b6b;
}

[data-theme="dark"] {
  --bg: #1a1f1c;
  --text: #e0ddd4;
  --accent: #6ba37f;
  --accent-light: #8cc19e;
  --card: #252b27;
  --border: #3a4139;
  --muted: #9a9a9a;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header {
  background: var(--accent);
  color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid var(--accent-light);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.logo span { color: #e8d5a0; }

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: #e8d5a0; }

.header-actions { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

main { padding: 40px 0; min-height: 60vh; }

h1 { font-size: 2.2em; margin-bottom: 20px; color: var(--accent); }
h2 { font-size: 1.6em; margin: 30px 0 15px; color: var(--accent); }
h3 { font-size: 1.3em; margin: 20px 0 10px; }

p { margin-bottom: 15px; }

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-card h3 a {
  color: var(--accent);
  text-decoration: none;
}

.article-card h3 a:hover { color: var(--accent-light); }

.meta {
  color: var(--muted);
  font-size: 0.9em;
  margin-bottom: 10px;
}

.meta span { margin-right: 15px; }

.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  margin-right: 5px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover { text-decoration: underline; }

.article-full {
  background: var(--card);
  padding: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.article-full p { margin-bottom: 18px; text-align: justify; }

.breadcrumbs {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.search-box {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font-size: 1em;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-light); }

form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 1em;
}

form textarea { min-height: 120px; resize: vertical; }

.gear-item {
  background: var(--card);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 15px;
}

.gear-item h3 { color: var(--accent); }

footer {
  background: var(--accent);
  color: #fff;
  padding: 25px 0;
  margin-top: 40px;
  text-align: center;
}

footer a { color: #e8d5a0; text-decoration: none; }

.share-buttons {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  color: var(--text);
}

.share-btn:hover { background: var(--accent); color: #fff; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1000;
}

.toast.show { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  header .container { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 15px; }
  h1 { font-size: 1.7em; }
}