/* ============================================================
   Biocultural Conservation Knowledge Platform — Shared Styles
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #f4f4f0;
  --green-dark: #264430;
  --green-mid: #3A5A40;
  --green-accent: #4A7C59;
  --green-light: #9bb193;
  --green-field: #edf4ea;
  --green-pillar: #cfe0cb;
  --green-border: #6f8f72;
  --text-body: #2D3B2D;
  --text-secondary: #5A6B5A;
  --text-muted: #7A8A7A;
  --card-bg: #f7faf5;
  --border-subtle: #d4ddd0;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== GOOGLE TRANSLATE OVERRIDES ===== */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-family: Arial, sans-serif !important; font-size: 14px !important; }
.goog-te-gadget .goog-te-combo {
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 4px 8px;
  border: 1px solid var(--green-light);
  border-radius: 4px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  outline: none;
}
.goog-te-gadget .goog-te-combo:hover { border-color: var(--green-accent); }
.goog-te-gadget > span { display: none !important; }
.VIpgJd-ZVi9od-l4eHX-hSRGPd { display: none !important; }

/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  overflow: visible;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  position: relative;
  z-index: 101;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--green-dark); }
.nav-links a.active { color: var(--green-dark); font-weight: 600; }

.nav-translate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

.nav-translate-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 32px 36px;
  text-align: center;
}

.footer-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

.footer-line + .footer-line { margin-top: 10px; }

.footer-line a { color: var(--green-accent); text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; height: 50px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-logo-img { height: 38px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
}
