/* Georgia Hunting Season Tracker */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --amber: #f57f17;
  --amber-light: #fff8e1;
  --gray: #757575;
  --gray-light: #f5f5f5;
  --text: #212121;
  --border: #e0e0e0;
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #f9f9f7;
  line-height: 1.55;
}

/* NAV */
nav {
  background: var(--green);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
nav .logo { color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; }
nav .logo span { color: #a5d6a7; }
nav ul { list-style: none; display: flex; gap: 1.25rem; }
nav ul a { color: #c8e6c9; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
nav ul a:hover { color: #fff; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.4rem; }
.hero .subtitle { color: #c8e6c9; font-size: 1rem; margin-bottom: 0.5rem; }
.hero .date-line { color: #a5d6a7; font-size: 0.85rem; }

/* OPEN NOW */
.open-now {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.open-now h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.85rem; color: var(--green-dark); }
#open-now-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.open-card {
  background: #fff;
  border: 2px solid #4caf50;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.open-icon { font-size: 1.8rem; line-height: 1; }
.open-card strong { font-size: 0.95rem; }
.open-season-name { font-size: 0.82rem; color: var(--gray); }
.open-days { font-size: 0.82rem; color: var(--green); font-weight: 600; margin-top: 0.2rem; }
.no-open { color: var(--gray); font-style: italic; font-size: 0.9rem; }

/* SECTION */
section { max-width: 900px; margin: 0 auto; padding: 0 1rem 2rem; }
section h2.section-title { font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--green-light); }

/* FILTER BAR */
.filter-bar {
  max-width: 900px;
  margin: 0 auto 0.75rem;
  padding: 0 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* SPECIES GRID */
#species-grid { display: flex; flex-direction: column; gap: 1.25rem; }

.species-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.species-card.card-open { border-left: 4px solid #4caf50; }
.species-card.card-upcoming { border-left: 4px solid #ffc107; }
.species-card.card-closed { border-left: 4px solid #bdbdbd; }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem 0.5rem;
}
.species-icon { font-size: 2rem; line-height: 1; }
.species-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.overall-status { font-size: 0.82rem; color: var(--gray); margin-top: 0.15rem; }

.seasons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.seasons-table thead { background: var(--gray-light); }
.seasons-table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.seasons-table td { padding: 0.6rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.seasons-table tr.open { background: #f1f8f1; }
.seasons-table tr.upcoming { background: #fffde7; }
.season-note { font-size: 0.76rem; color: var(--gray); margin-top: 0.2rem; }
.dates { white-space: nowrap; color: var(--gray); }

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge.open { background: #e8f5e9; color: #2e7d32; }
.badge.upcoming { background: #fff8e1; color: #f57f17; }
.badge.closed { background: #f5f5f5; color: #9e9e9e; }

/* CARD META */
.card-meta {
  padding: 0.75rem 1.25rem;
  background: var(--gray-light);
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.meta-label { font-weight: 600; color: var(--green-dark); }
.new-regs {
  margin: 0 1.25rem 0.75rem;
  background: #fff3e0;
  border-left: 3px solid var(--amber);
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #e65100;
}
.zone-btn {
  display: block;
  margin: 0.5rem 1.25rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background 0.15s;
}
.zone-btn:hover { background: var(--green-dark); }

/* LICENSE TABLE */
.license-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.license-table thead { background: var(--green); color: #fff; }
.license-table th { padding: 0.65rem 1rem; text-align: left; font-weight: 600; font-size: 0.8rem; }
.license-table td { padding: 0.6rem 1rem; border-top: 1px solid var(--border); }
.license-table tr:nth-child(even) td { background: var(--gray-light); }

/* DEER ZONE MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.modal-close { float: right; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray); line-height: 1; }
.county-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.lookup-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 1rem;
}
.lookup-btn:hover { background: var(--green-dark); }
#county-result { display: none; }
#county-result h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.zone-result {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.87rem;
}
.zone-result.standard { background: var(--green-light); border: 1px solid #a5d6a7; }
.zone-result.special { background: #fff8e1; border: 1px solid #ffe082; }
.zone-result p { margin-top: 0.4rem; }
.zone-disclaimer { font-size: 0.78rem; color: var(--gray); margin-top: 0.75rem; }
.zone-disclaimer a { color: var(--green); }

/* TIPS SECTION */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.tip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.85rem;
}
.tip-card h3 { font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--green-dark); }
.tip-card a { color: var(--green); font-weight: 600; text-decoration: none; }
.tip-card a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  background: var(--green-dark);
  color: #a5d6a7;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.83rem;
  margin-top: 2rem;
}
footer .footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
footer a { color: #c8e6c9; text-decoration: none; }
footer a:hover { color: #fff; }
footer .disclaimer { color: #81c784; font-size: 0.75rem; margin-top: 0.5rem; }

/* CONTACT BTN */
.contact-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, transform 0.15s;
}
.contact-btn:hover { background: var(--green-dark); transform: translateY(-2px); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .seasons-table thead { display: none; }
  .seasons-table td { display: block; padding: 0.4rem 0.85rem; }
  .seasons-table td:first-child { padding-top: 0.75rem; font-weight: 600; }
  .seasons-table td.dates::before { content: "📅 "; }
  .seasons-table tr { border-top: 2px solid var(--border); display: block; }
  nav ul { gap: 0.75rem; }
  .card-header { padding: 0.85rem; }
  .card-meta { padding: 0.6rem 0.85rem; }
  .new-regs { margin: 0 0.85rem 0.6rem; }
  .zone-btn { margin: 0.4rem 0.85rem 0.85rem; }
}
