/* ─── WEIGHT CUT PLANNER PAGE ─── */

/* Nav — reuse scout-nav base styles */
.wc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.wc-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Page Header */
.wc-header {
  padding: 140px 0 60px;
  position: relative;
}

.wc-title {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  margin-bottom: 20px;
  margin-top: 24px;
}

.wc-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.7;
}

/* Form Section */
.wc-form-section {
  padding: 0 0 64px;
}

.wc-form {
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
}

.wc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.wc-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-form-group.full-width {
  grid-column: 1 / -1;
}

.wc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.wc-input,
.wc-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.wc-input:focus,
.wc-select:focus {
  border-color: rgba(255, 58, 47, 0.4);
}

.wc-select option {
  background: var(--bg-card);
  color: var(--fg);
}

.wc-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.wc-input-row .wc-input {
  flex: 1;
}

.wc-unit-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.wc-unit-btn {
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wc-unit-btn.active {
  background: var(--accent);
  color: #fff;
}

.wc-bf-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-bf-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wc-bf-btn.active,
.wc-bf-btn:hover {
  border-color: rgba(255, 58, 47, 0.5);
  color: var(--accent);
  background: var(--accent-glow);
}

.wc-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 20px;
}

.wc-submit-hint {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Loading Overlay */
.wc-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-loading-box {
  text-align: center;
  padding: 48px;
}

/* Error Box */
.wc-error-section { padding: 0 0 32px; }

/* Danger Warning */
.danger-warning-banner {
  background: rgba(255, 58, 47, 0.1);
  border: 2px solid rgba(255, 58, 47, 0.5);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.danger-warning-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1.2;
}

.danger-warning-content h3 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.danger-warning-content p {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.6;
}

/* Plan Section */
.wc-plan-section {
  padding: 0 0 80px;
}

/* Plan Header */
.wc-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 20px;
}

.wc-plan-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 12px;
}

.wc-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.wc-meta-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

.wc-cut-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 110px;
  text-align: center;
  flex-shrink: 0;
}

.wc-cut-badge-num {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.wc-cut-badge-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.cut-safe     { background: rgba(34, 197, 94, 0.1);  border: 1px solid rgba(34, 197, 94, 0.25);  color: #22c55e; }
.cut-aggressive { background: rgba(234, 179, 8, 0.1);  border: 1px solid rgba(234, 179, 8, 0.25);  color: #eab308; }
.cut-extreme  { background: rgba(255, 58, 47, 0.1);  border: 1px solid rgba(255, 58, 47, 0.4);   color: var(--accent); }

/* Strategy Summary */
.wc-strategy-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}

/* Report Cards */
.wc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  margin-bottom: 20px;
}

.wc-card-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--fg);
}

/* Daily Schedule Table */
.daily-schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.day-row:last-child { border-bottom: none; }

.day-label-col {
  padding-right: 20px;
}

.day-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.day-date {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.day-phase-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 6px;
}

.phase-water_load { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.phase-sodium_load { background: rgba(234, 179, 8, 0.1); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }
.phase-sodium_cut { background: rgba(249, 115, 22, 0.1); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.phase-water_cut { background: rgba(255, 58, 47, 0.1); color: var(--accent); border: 1px solid rgba(255, 58, 47, 0.2); }
.phase-weigh_in_day { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }

.day-content-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.day-stat {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 10px 12px;
}

.day-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.day-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.day-notes {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border-left: 2px solid var(--border);
}

.sauna-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 6px;
}

/* Protocol + Rehydration Cards */
.protocol-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.protocol-item {
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.protocol-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.protocol-item-text {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.6;
}

.rehyd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.food-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.food-list-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.food-list-label.green { color: #4ade80; }
.food-list-label.red { color: var(--accent); }

.food-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  margin: 3px 4px 3px 0;
}

.food-tag-good {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.food-tag-avoid {
  background: rgba(255, 58, 47, 0.08);
  border: 1px solid rgba(255, 58, 47, 0.2);
  color: var(--accent);
}

/* Key Principles */
.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

.principle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Disclaimer */
.wc-disclaimer {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.wc-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scout footer link */
.scout-footer-link {
  display: block;
  text-align: center;
  padding: 28px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.scout-footer-link strong { color: var(--accent); }
.scout-footer-link:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 768px) {
  .wc-header { padding: 120px 0 40px; }
  .wc-form { padding: 24px 20px; }
  .wc-form-grid { grid-template-columns: 1fr; }
  .wc-plan-header { flex-direction: column; }
  .day-row { grid-template-columns: 70px 1fr; }
  .day-content-col { grid-template-columns: 1fr 1fr; }
  .rehyd-grid { grid-template-columns: 1fr; }
  .food-lists { grid-template-columns: 1fr; }
  .wc-submit-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .wc-title { font-size: 36px; }
  .day-content-col { grid-template-columns: 1fr; }
}
