/* =====================================================
   MinMaxMuscle — Core System Stylesheet
   Dark, intentional, mobile-first
   ===================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #111827, #020617 70%);
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100vh;
  text-align: center;
}

/* --------------------
   LINKS
-------------------- */
a {
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffffff;
  opacity: 0.85;
}

ul {
  list-style-position: inside;
}

/* --------------------
   HEADER / NAV
-------------------- */
header {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.7));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  height: 32px;
}

.logo span {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Desktop nav */
.desktop-nav {
  display: none;
  gap: 24px;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* --------------------
   HAMBURGER
-------------------- */
.hamburger {
  display: block;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #e5e7eb;
}

/* --------------------
   MOBILE MENU
-------------------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu a {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
}

/* When open */
.mobile-menu.open {
  display: flex;
}

/* --------------------
   MAIN CONTENT
-------------------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* --------------------
   HERO
-------------------- */
.hero {
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero p {
  max-width: 700px;
  font-size: 1rem;
  color: #9ca3af;
  margin: 0 auto;
}

/* --------------------
   SECTIONS
-------------------- */
section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

section p {
  color: #9ca3af;
  max-width: 750px;
  margin: 0 auto;
}

.peptide-list ol {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.peptide-list li {
  position: relative;
  padding: 18px 18px 18px 64px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
  text-align: left;
}

.peptide-list h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #f8fafc;
}

.peptide-link {
  color: inherit;
  text-decoration: none;
}

.peptide-link:hover {
  text-decoration: underline;
}

.peptide-list li::before {
  counter-increment: peptide;
  content: counter(peptide, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
}

.peptide-list li::after {
  content: "🧬";
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 1.1rem;
  opacity: 0.6;
}

.peptide-list ol {
  counter-reset: peptide;
}

.peptide-status {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.peptide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.disclaimer-link {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 24px;
}

.disclaimer-link a {
  color: inherit;
  text-decoration: underline;
}

.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.resource-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
}

.resource-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #f8fafc;
}

.resource-card p {
  margin: 0;
  color: #9ca3af;
}

/* --------------------
   FORMS
-------------------- */
form {
  max-width: 500px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #9ca3af;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #e5e7eb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
}

/* --------------------
   FOOTER
-------------------- */
footer {
  margin-top: 64px;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

/* --------------------
   RESPONSIVE
-------------------- */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}
/* Nutrition goal selector */
.nutrition-toggle {
  margin: 32px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nutri-btn {
  padding: 10px 18px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
}

.nutri-btn.active {
  background: #1e40af;
  border-color: #1e40af;
}

/* Nutrition content states */
.nutrition-mode {
  display: none;
}

.nutrition-mode.active {
  display: block;
}
