
:root {
  --primary: #075985;
  --accent: #f97316;
  --bg: #f9fafb;
  --text: #111827;
  --card: #ffffff;
  --border: #e5e7eb;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 700;
  color: var(--primary);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list a {
  font-size: 0.95rem;
  color: #374151;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-donate {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.nav-user {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 2rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  color: var(--primary);
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.25rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
}

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-danger-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: none;
  background: var(--danger);
  color: #fff;
  cursor: pointer;
}

.hero-graphic {
  position: relative;
  background: #eff6ff;
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
}

.hero-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hero-card li::before {
  content: "🐾 ";
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-bg {
  padding: 2.5rem 0;
  background: #e5f3ff;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.step-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.step-card h3 span {
  margin-right: 0.25rem;
  color: var(--accent);
}

/* Forum */
.forum-callout {
  text-align: center;
  max-width: 650px;
}

.forum-callout p {
  margin-bottom: 1rem;
}

.forum-layout {
  max-width: 900px;
}

.forum-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.forum-header h1 {
  margin: 0;
  color: var(--primary);
}

.forum-breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
}

.forum-breadcrumb a {
  text-decoration: underline;
}

/* Forum groups (top-level) */
.forum-group {
  margin-bottom: 2rem;
}

.forum-group-header h2 {
  margin: 0 0 0.3rem;
  color: var(--primary);
}

.forum-group-header p {
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.forum-empty {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Tables */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.forum-table th,
.forum-table td {
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.forum-table th {
  text-align: left;
  background: #f3f4f6;
}

.forum-table tr:last-child td {
  border-bottom: none;
}

.forum-table tbody tr:hover {
  background: #f9fafb;
}

/* Topic */
.topic-layout {
  max-width: 800px;
}

.topic-header h1 {
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.posts {
  margin: 1.5rem 0;
}

.post {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.8rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.post-body {
  font-size: 0.95rem;
}

.post-admin-actions {
  margin-top: 0.35rem;
  text-align: right;
}

/* Forms */
.new-topic-layout,
.login-layout {
  max-width: 700px;
}

.new-topic-form,
.reply-box form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea,
select {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
}

/* Reply box */
.reply-box {
  background: #eef2ff;
  border-radius: 0.75rem;
  padding: 1rem;
}

.reply-box h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Get involved */
.get-involved .gi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.get-involved article {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-footer a {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-list {
    font-size: 0.9rem;
  }
}
