/* ============================================================
   Whispering Pines Hunting Club - shared stylesheet
   Palette pulled from the club patch: deep pine green, dark
   walnut wood, aged cream/parchment, and brass/gold accent.
   ============================================================ */

:root {
  --pine-dark: #1c2b22;
  --pine: #26382c;
  --pine-light: #3c5442;
  --wood-dark: #2a1d15;
  --wood: #3d2b1f;
  --cream: #f2e9d8;
  --parchment: #e9dcc0;
  --gold: #c8a24a;
  --gold-light: #ddc27f;
  --rust: #8a4a2f;
  --text-dark: #241c14;
  --text-light: #f6efdf;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --max-width: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--wood-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--text-dark);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--pine-dark);
  letter-spacing: 0.02em;
}

a { color: var(--rust); }
a:hover { color: var(--gold); }

/* ---------- Header / nav ---------- */
header.site-header {
  background: linear-gradient(180deg, var(--pine-dark), var(--pine));
  border-bottom: 4px solid var(--gold);
  color: var(--text-light);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--pine-dark);
}

.brand-text .club-name {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  line-height: 1.1;
  font-weight: bold;
}

.brand-text .club-sub {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.85;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(200, 162, 74, 0.22);
  color: var(--gold-light);
}

nav.main-nav .nav-account {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

#nav-username {
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* ---------- Layout ---------- */
main.page {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px var(--shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.card h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.badge {
  display: inline-block;
  background: var(--pine);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin: 0 4px 4px 0;
}

.badge.gold { background: var(--gold); color: var(--text-dark); }
.badge.rust { background: var(--rust); color: var(--text-light); }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover { background: var(--gold-light); color: var(--text-dark); }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--pine);
  color: var(--pine-dark);
}
.btn.secondary:hover { background: rgba(38,56,44,0.08); }

.btn.small { padding: 6px 12px; font-size: 0.8rem; }

/* ---------- Hero (landing page) ---------- */
.hero {
  text-align: center;
  padding: 40px 20px 10px;
}

.hero img.crest {
  max-width: 340px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
}

.hero h1 {
  color: var(--gold-light);
  font-size: 2.1rem;
  margin: 18px 0 6px;
}

.hero p.tagline {
  color: var(--parchment);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.tile {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 6px 16px var(--shadow);
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
  transition: transform 0.15s ease;
}

.tile:hover { transform: translateY(-3px); }

.tile .tile-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.tile h3 { margin: 0 0 6px; color: var(--pine-dark); }
.tile p { margin: 0; font-size: 0.88rem; color: #4a3f30; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 420px;
  margin: 30px auto;
}

label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
  font-size: 0.9rem;
  color: var(--pine-dark);
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #b9ab8b;
  font-size: 0.95rem;
  background: #fffdf8;
  color: var(--text-dark);
}

textarea { min-height: 100px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: #6b5c42;
  margin-top: 6px;
}

.error-box {
  background: #f6dede;
  border: 1px solid #c96b6b;
  color: #7a1f1f;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
  font-size: 0.9rem;
  display: none;
}

.notice-box {
  background: #e4efe0;
  border: 1px solid #7ea36f;
  color: #2d4a22;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 0.88rem;
}

.warn-box {
  background: #fbeecb;
  border: 1px solid var(--gold);
  color: #5c4917;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 0.86rem;
}

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 18px;
}

.filters .field { min-width: 160px; }
.filters label { margin: 0 0 4px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.photo-card {
  background: #fffdf8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid rgba(0,0,0,0.08);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ddd;
  cursor: zoom-in;
}

.photo-meta {
  padding: 10px 12px 12px;
}

.photo-meta .cam-name {
  font-weight: 700;
  color: var(--pine-dark);
  font-size: 0.95rem;
}

.photo-meta .cam-time {
  font-size: 0.78rem;
  color: #6b5c42;
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #7a6d54;
}

/* lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 8, 0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
#lightbox .lb-caption { color: var(--parchment); text-align: center; margin-top: 12px; font-size: 0.9rem; }
#lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: var(--gold-light);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------- Tables ---------- */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data-table th, table.data-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

table.data-table th {
  background: var(--pine);
  color: var(--text-light);
  position: sticky;
  top: 0;
}

table.data-table tr:nth-child(even) { background: rgba(0,0,0,0.03); }
.table-wrap { overflow-x: auto; }

/* ---------- Board ---------- */
.post {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 16px 0;
}
.post:last-child { border-bottom: none; }
.post-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b5c42;
  margin-bottom: 6px;
}
.post-author { font-weight: 700; color: var(--pine-dark); }
.post img { max-width: 100%; border-radius: 6px; margin-top: 8px; }

/* ---------- Map embed ---------- */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #ddd;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--pine-dark);
  color: var(--parchment);
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  border-top: 3px solid var(--gold);
}

footer.site-footer a { color: var(--gold-light); }

/* ---------- Misc ---------- */
.section-sub {
  color: #6b5c42;
  font-size: 0.9rem;
  margin-top: -6px;
}

/* ---------- Rules page lists ---------- */
.card h3 {
  margin: 24px 0 4px;
  color: var(--pine-dark);
}

.card h4 {
  margin: 14px 0 6px;
  color: var(--rust);
  font-size: 0.98rem;
}

.card ul {
  margin: 4px 0 10px;
  padding-left: 22px;
}

.card ul ul {
  margin: 4px 0;
}

.card li {
  margin: 4px 0;
  line-height: 1.5;
}

.toc {
  columns: 2;
  -webkit-columns: 2;
  list-style: decimal;
  padding-left: 20px;
  margin: 10px 0 0;
}

.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .toc { columns: 1; }
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav.main-nav { width: 100%; justify-content: flex-start; }
}
