/* Loosely mirrors the whiteglass theme on austinbrian.github.io so the two
   sites read as one. Kept standalone — this repo has no Jekyll build. */

body {
  font-family: Bitter, Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  margin: 0;
}

a { color: #2a7ae2; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 18px 0;
  margin-bottom: 10px;
}

.site-header .wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.site-nav .page-link {
  margin-left: 20px;
  color: #333;
}

.site-nav .fa {
  font-size: 18px;
}

/* Dropdown nav. Mirrors _includes/header.html on austinbrian.github.io: opens
   on hover for mice and on focus-within for keyboard and touch, no JS. */
.site-nav .dropdown {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.site-nav .dropdown-toggle {
  font: inherit;
  color: #333;
  line-height: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0;
  cursor: pointer;
}

.site-nav .dropdown-toggle::after {
  content: " \25BE";
  font-size: 0.8em;
}

.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  min-width: 150px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  line-height: 1.6;
  text-align: left;
}

.site-nav .dropdown:hover .dropdown-menu,
.site-nav .dropdown:focus-within .dropdown-menu {
  display: block;
}

.site-nav .dropdown-menu a {
  display: block;
  margin: 0;
  padding: 6px 16px;
  white-space: nowrap;
}

.site-nav .dropdown-menu a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* ── Dashboard ──────────────────────────────────────────────────────────── */

.running-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.running-dashboard h1 {
  margin-bottom: 4px;
}

.subtitle {
  margin-top: 0;
  color: #666;
  font-size: 15px;
}

.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: #333; }

.tab-btn.active {
  color: #FC4C02;
  border-bottom-color: #FC4C02;
  font-weight: bold;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.controls input[type="date"],
.controls select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.radio-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.radio-group label { font-weight: normal; }

.info-boxes {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.info-box {
  flex: 1;
  min-width: 200px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
}

.info-box h4 {
  margin: 0 0 10px 0;
  color: #FC4C02;
}

.info-box p, .info-box div {
  margin: 5px 0;
  font-size: 14px;
}

.chart-container {
  width: 100%;
  min-height: 400px;
  margin: 20px 0;
}

.week-row hr {
  margin: 20px 0;
  border-color: #E5E5E5;
}

.week-chart-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
}

.week-chart {
  width: 90%;
  height: 150px;
}

.week-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  min-width: 80px;
}

.summary-number {
  font-size: 24px;
  font-weight: bold;
  color: #000080;
  text-align: center;
}

.summary-unit {
  font-size: 16px;
  color: #000080;
  text-align: center;
}

.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
}

.empty {
  color: #555;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  padding: 20px;
  border-radius: 8px;
}

#target-slider { width: 150px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid #e8e8e8;
  margin-top: 40px;
  padding: 20px 0;
  color: #828282;
  font-size: 14px;
}

@media (max-width: 600px) {
  .site-header .wrapper { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav .page-link { margin-left: 0; margin-right: 16px; }
  .site-nav .dropdown { margin-left: 0; margin-right: 16px; }
  .site-nav .dropdown-menu { right: auto; left: 0; }
}
