/* ============================================================
   MilkOrg.net — style.css
   National Milk Radiation Monitoring Network | Est. March 2011
   Shared across all pages.
============================================================ */

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

/* === BODY === */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #222;
  background-color: #cbcbcb;
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 10px,
    rgba(0,0,0,0.025) 10px, rgba(0,0,0,0.025) 20px
  );
  min-width: 980px;
}
a { color: #2d6a2d; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === ANIMATIONS === */
@keyframes blink-dot  { 0%,100%{opacity:1} 50%{opacity:.15} }
@keyframes scroll-ticker {
  0%   { transform: translateX(110vw); }
  100% { transform: translateX(-100%); }
}

/* ========================
   HEADER
======================== */
#header {
  background: linear-gradient(180deg, #0f260f 0%, #1e4d1e 50%, #2a5e2a 100%);
  border-bottom: 4px solid #e85d00;
  padding: 12px 20px 10px;
  color: #fff;
}
#header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
#site-subtitle {
  font-size: 10px;
  color: #9fd89f;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}
#header-right {
  text-align: right;
  font-size: 10px;
  color: #9fd89f;
  line-height: 1.8;
}
#header-right strong { color: #fff; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #cc0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px 2px 5px;
  border-radius: 2px;
  letter-spacing: 1px;
  vertical-align: middle;
  margin-left: 6px;
}
.live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink-dot 1s ease-in-out infinite;
}

/* ========================
   NAV
======================== */
#nav-wrap {
  background: #1e4d1e;
  border-bottom: 2px solid #0f260f;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
#nav {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
#nav a {
  display: inline-block;
  color: #c8ecc8;
  text-decoration: none !important;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: bold;
  border-right: 1px solid #2a5e2a;
  white-space: nowrap;
}
#nav a:hover  { background: #0f260f; color: #fff; }
#nav a.active { background: #0f260f; color: #fff; }
#nav a.alert-nav { color: #ffcc44; }
#nav a.donate-nav {
  margin-left: auto;
  background: #cc0000;
  color: #fff !important;
  border-right: none;
  padding: 7px 16px;
}
#nav a.donate-nav:hover { background: #aa0000; }

/* ========================
   TICKER
======================== */
#ticker-wrap {
  background: #111;
  color: #ff9900;
  padding: 5px 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: bold;
  border-bottom: 1px solid #333;
  white-space: nowrap;
}
#ticker-label {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 1px;
  margin-right: 8px;
  vertical-align: middle;
}
#ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-ticker 60s linear infinite;
}

/* ========================
   PAGE LAYOUT
======================== */
#page {
  max-width: 980px;
  margin: 10px auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#content  { flex: 1; min-width: 0; }
#sidebar  { width: 198px; flex-shrink: 0; }

/* Full-width layout (no sidebar) */
#page.full-width #content { max-width: 100%; }

/* ========================
   BOX COMPONENT
======================== */
.box {
  background: #fff;
  border: 1px solid #b5b5b5;
  margin-bottom: 10px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.12);
}
.box-head {
  background: linear-gradient(180deg, #2a5e2a 0%, #1e4d1e 100%);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #0f260f;
}
.box-body { padding: 10px; }
.box-foot {
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  padding: 4px 10px;
  font-size: 9px;
  color: #888;
  font-style: italic;
}

/* ========================
   PAGE INTRO BANNER
======================== */
.page-intro {
  background: #f0fff0;
  border: 1px solid #b5d4b5;
  border-left: 4px solid #2a5e2a;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 10px;
}
.page-intro strong { color: #1e4d1e; }

/* ========================
   BUTTONS
======================== */
.btn-green {
  background: linear-gradient(180deg, #3a7a3a 0%, #1e4d1e 100%);
  color: #fff;
  border: 1px solid #0f260f;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none !important;
}
.btn-green:hover { background: linear-gradient(180deg, #4a9a4a 0%, #2a5e2a 100%); }

.btn-orange {
  background: linear-gradient(180deg, #ff7700 0%, #cc5500 100%);
  color: #fff;
  border: 1px solid #aa3300;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none !important;
}
.btn-orange:hover { background: linear-gradient(180deg, #ff8800 0%, #dd6600 100%); }

.btn-red {
  background: linear-gradient(180deg, #cc0000 0%, #990000 100%);
  color: #fff;
  border: 1px solid #660000;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none !important;
}

/* ========================
   DATA TABLE
======================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.data-table th {
  background: #1e4d1e;
  color: #d0f0d0;
  padding: 5px 8px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-right: 1px solid #2a5e2a;
}
.data-table th:last-child { border-right: none; }
.data-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
}
.data-table td:last-child { border-right: none; }
.data-table tr:nth-child(even) td { background: #f8faf8; }
.data-table tr:hover td { background: #f0f8f0; }
.data-table .region-header td {
  background: #e8f0e8 !important;
  font-weight: bold;
  color: #1e4d1e;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 2px solid #2a5e2a;
  padding: 5px 8px;
}

/* ========================
   STATUS / LEVEL CLASSES
======================== */
.lv-safe    { color: #009900; font-weight: bold; }
.lv-elev    { color: #c07000; font-weight: bold; }
.lv-high    { color: #cc0000; font-weight: bold; }
.lv-offline { color: #aaa;    font-style: italic; }

.status-badge {
  display: inline-block;
  padding: 5px 22px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 2px;
  letter-spacing: 1px;
}
.s-safe     { background: #009900; color: #fff; }
.s-elevated { background: #c07000; color: #fff; }
.s-danger   { background: #cc0000; color: #fff; }

/* ========================
   UTILITIES
======================== */
.mono { font-family: 'Courier New', Courier, monospace; }
.text-muted  { color: #888; }
.text-red    { color: #cc0000; font-weight: bold; }
.text-green  { color: #009900; font-weight: bold; }
.text-orange { color: #c07000; font-weight: bold; }
.text-small  { font-size: 10px; }
.text-tiny   { font-size: 9px; }
.text-center { text-align: center; }
.mt4 { margin-top: 4px; }
.mb8 { margin-bottom: 8px; }

/* ========================
   ZIP CHECKER
======================== */
.zip-row { display: flex; gap: 6px; margin-bottom: 8px; }
.zip-row input {
  flex: 1;
  padding: 5px 7px;
  border: 1px solid #aaa;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  background: #fafff8;
}
.zip-row input:focus { outline: 2px solid #2a5e2a; border-color: #2a5e2a; }
.zip-result {
  display: none;
  border: 1px solid #999;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
  background: #f5fff5;
}
.zip-result.elevated { background: #fffbe6; border-color: #c07000; }
.zip-result.danger   { background: #fff0f0; border-color: #cc0000; }

/* ========================
   SIDEBAR — MINI READING
======================== */
.mini-reading-wrap {
  text-align: center;
  padding: 8px 6px;
}
.mini-reading-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 30px;
  font-weight: bold;
  color: #009900;
  text-shadow: 0 0 8px rgba(0,170,0,0.35);
  line-height: 1;
  transition: color 0.8s;
}
.mini-reading-unit { font-size: 9px; color: #999; margin: 3px 0 6px; }
.mini-status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 2px;
  letter-spacing: 1px;
}
.mini-refresh { font-size: 9px; color: #bbb; margin-top: 4px; }

/* ========================
   SIDEBAR — CERT SEAL
======================== */
.cert-wrap { text-align: center; padding: 12px 8px 8px; }
.cert-seal {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid #2a5e2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  color: #1e4d1e;
  line-height: 1.3;
  margin: 0 auto 6px;
  padding: 8px;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px #c8e0c8;
}
.cert-seal span { font-size: 18px; display: block; margin-bottom: 2px; }
.cert-sub { font-size: 9px; color: #888; line-height: 1.5; }

/* ========================
   SIDEBAR — AD BOX
======================== */
.ad-box {
  background: #fffde6;
  border: 2px solid #e07000;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  margin-bottom: 10px;
}
.ad-box h4 { color: #c05000; font-size: 11px; margin-bottom: 4px; letter-spacing: 1px; }
.ad-icon { font-size: 28px; display: block; margin-bottom: 4px; }
.ad-name { font-weight: bold; font-size: 12px; }
.ad-deal { color: #cc0000; font-weight: bold; margin: 3px 0; }
.ad-code { font-size: 9px; color: #999; margin-top: 4px; }

/* ========================
   SIDEBAR — ALERT LEVEL
======================== */
#alert-level { padding: 8px 8px 4px; }
.al-label { font-size: 10px; text-align: center; color: #666; margin-bottom: 5px; font-weight: bold; letter-spacing: 1px; }
.al-row {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
  opacity: 0.3;
  text-align: center;
  letter-spacing: 1px;
}
.al-row.active { opacity: 1; outline: 2px solid #000; }
.al-critical { background: #880000; }
.al-high     { background: #cc3300; }
.al-elevated { background: #e07000; }
.al-guarded  { background: #bbbb00; color: #333; }
.al-low      { background: #008800; }
#alert-note  { font-size: 9px; color: #999; text-align: center; padding: 4px 0 2px; font-style: italic; }

/* ========================
   SIDEBAR — FORUM SNIPPETS
======================== */
.forum-item {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 10px;
  line-height: 1.5;
}
.forum-item:last-child { border-bottom: none; }
.forum-item strong { color: #0f260f; font-size: 10px; }
.forum-meta { color: #aaa; font-size: 9px; }

/* ========================
   SIDEBAR — DAYS COUNTER
======================== */
.days-wrap { text-align: center; padding: 10px 8px 6px; }
#sb-days-count {
  font-family: 'Courier New', monospace;
  font-size: 34px;
  font-weight: bold;
  color: #cc0000;
  line-height: 1;
}
.days-label { font-size: 10px; color: #777; margin-top: 3px; }
.days-since { font-size: 9px; color: #aaa; font-style: italic; margin-top: 2px; }

/* ========================
   FOOTER
======================== */
#footer {
  background: linear-gradient(180deg, #1a3a1a 0%, #0f260f 100%);
  color: #888;
  font-size: 10px;
  padding: 16px 20px 14px;
  text-align: center;
  margin-top: 10px;
}
#footer strong  { color: #bbb; }
.footer-tagline { color: #aaa; font-style: italic; margin: 3px 0 10px; font-size: 11px; }
.footer-disclaimer {
  color: #666;
  font-size: 9px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 8px;
  border-top: 1px solid #2a3a2a;
  padding-top: 8px;
}
.footer-disclaimer strong { color: #999; }
#footer-links { font-size: 9px; color: #555; margin-top: 6px; }
#footer-links a { color: #555; }
#footer-links a:hover { color: #888; text-decoration: underline; }
