/* FITNESS.EE Demo V8 — Enhanced Tools */
/* Replicates his current design with dark blue nav, red logo, WooCommerce grid */

:root {
  --nav-bg: #1a3a5c;
  --btn-blue: #1e5f9e;
  --btn-blue-hover: #174b80;
  --accent-red: #e02020;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f5f7fa;
  --bg-white: #fff;
  --border: #ddd;
  --maxfit-badge: #ff6600;
  --green: #2e7d32;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: #f0f0f0;
  line-height: 1.6;
}

a { color: var(--btn-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOP NAV ===== */
.top-nav {
  background: var(--nav-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.logo {
  font-weight: 900;
  font-size: 20px;
  color: var(--accent-red);
  letter-spacing: 1px;
  padding: 12px 0;
  margin-right: 24px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nav-links a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 10px;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  text-decoration: none;
}

/* ===== BANNER ===== */
.banner {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a6cb0 100%);
  text-align: center;
  padding: 18px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ===== DEMO NOTICE ===== */
.demo-notice {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #664d03;
}
.demo-notice strong { color: var(--accent-red); }

/* ===== CONTENT WRAPPER ===== */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ===== HOMEPAGE LAYOUT ===== */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media (max-width: 800px) {
  .home-layout { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
}
.article-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.article-card .meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.article-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.article-card .read-more {
  display: inline-block;
  background: var(--btn-blue);
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.article-card .read-more:hover {
  background: var(--btn-blue-hover);
  text-decoration: none;
}

.sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px;
  height: fit-content;
}
.sidebar h3 {
  font-size: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--btn-blue);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sidebar-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item .forum-title { font-weight: 600; display: block; }
.sidebar-item .forum-meta { font-size: 11px; color: var(--text-light); }

/* ===== CALCULATOR PAGE ===== */
.calc-container {
  max-width: 760px;
  margin: 0 auto;
}
.calc-container h1 {
  font-size: 24px;
  margin-bottom: 4px;
}
.calc-container .subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.calc-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

/* Form rows — label left, input right */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.form-row label {
  flex: 0 0 140px;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}
.form-row select,
.form-row input[type="number"] {
  padding: 8px 10px;
  border: 1px solid #bbb;
  font-size: 14px;
  background: #fff;
}
.form-row select { flex: 1; max-width: 300px; }
.form-row input[type="number"] { width: 80px; }
.form-row .input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.form-row .input-group select { flex: 1; }
.form-row .unit { font-size: 13px; color: var(--text-light); }

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding-left: 152px;
}
.btn-calc {
  background: var(--btn-blue);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: .5px;
}
.btn-calc:hover { background: var(--btn-blue-hover); }
.btn-reset {
  background: #ccc;
  color: #333;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-reset:hover { background: #bbb; }

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.result-item {
  text-align: center;
  background: var(--bg-light);
  padding: 14px 8px;
  border: 1px solid #e0e0e0;
}
.result-item .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--btn-blue);
}
.result-item .label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===== PRODUCT RECOMMENDATION SECTION ===== */
.reco-section {
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--btn-blue);
  padding: 20px 24px;
  margin-top: 24px;
}
.reco-section .reco-positive {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.reco-section .reco-suggest {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.reco-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.reco-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  position: relative;
}
.reco-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}
.reco-card .reco-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  min-height: 36px;
}
.reco-card .reco-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.reco-card .reco-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--btn-blue);
  margin-bottom: 10px;
}
.reco-card .btn-cart {
  display: inline-block;
  background: var(--btn-blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: .5px;
}
.reco-card .btn-cart:hover { background: var(--btn-blue-hover); }
.reco-link {
  text-align: center;
  font-size: 14px;
}
.reco-link a { font-weight: 600; }

/* ===== DAILY INTAKE TABLE ===== */
.daily-section {
  margin-top: 24px;
}
.daily-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--nav-bg);
}
.daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.daily-table th,
.daily-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: center;
}
.daily-table th {
  background: var(--nav-bg);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}
.daily-table td:first-child { text-align: left; font-weight: 600; }
.daily-table tr:nth-child(even) { background: #f9f9f9; }

/* ===== SHOP GRID ===== */
.shop-header {
  margin-bottom: 20px;
}
.shop-header h1 {
  font-size: 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .reco-cards { grid-template-columns: 1fr; }
  .home-layout { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  position: relative;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.product-card .badge-maxfit {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--maxfit-badge);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: .3px;
}
.product-card .product-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}
.product-card .placeholder-img {
  width: 100%;
  height: 140px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}
.product-card .product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 36px;
}
.product-card .product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--btn-blue);
  margin-bottom: 10px;
}
.product-card .btn-cart {
  display: inline-block;
  background: var(--btn-blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}
.product-card .btn-cart:hover { background: var(--btn-blue-hover); }

/* ===== FOOTER ===== */
.footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 16px;
  font-size: 12px;
  margin-top: 32px;
}
.footer a { color: rgba(255,255,255,.8); }
