/* Noida Mess Wire - Vibrant Health & Wellness Theme */
/* Inspired by One Medical, Included Health, WHOOP, Levels, Headspace, Mayo Clinic & MSK */

:root {
  /* Vibrant Rose & Berry Wellness Palette */
  --rose-primary: #e11d48;          /* Vibrant rose / raspberry */
  --rose-deep: #1f0d16;             /* Deep plum anchor */
  --rose-vibrant: #f43f5e;          /* Energetic coral rose */
  --rose-bright: #ec4899;           /* Playful bright pink */
  --rose-light: #fff1f4;            /* Soft blush highlight */
  --rose-soft: #ffe4e8;             /* Subtle petal tint */
  --rose-glow: rgba(225, 29, 72, 0.16);

  /* Secondary Accents */
  --accent-purple: #9333ea;
  --accent-purple-light: #f3e8ff;
  --accent-coral: #ea580c;
  --accent-coral-light: #ffedd5;
  --accent-mint: #059669;
  --accent-mint-light: #ecfdf5;

  /* Surfaces & Backgrounds */
  --bg-page: #faf6f8;               /* Warm porcelain with gentle blush warmth */
  --bg-surface: #ffffff;            /* Crisp white cards */
  --bg-card-subtle: #fff7f9;        /* Tinted feature card */
  --bg-banner: linear-gradient(135deg, #1f0d16 0%, #381226 60%, #4a1532 100%);
  --rose-gradient: linear-gradient(135deg, #e11d48 0%, #ec4899 50%, #f43f5e 100%);
  --btn-gradient: linear-gradient(135deg, #e11d48 0%, #db2777 100%);

  /* Typography & Borders */
  --text-main: #1c0e15;             /* High contrast deep plum */
  --text-muted: #5e4a54;            /* Soft muted heather */
  --text-light: #856f7b;
  --border-subtle: #f1e2e7;         /* Soft rose border */
  --border-card: #ecdbe1;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(31, 13, 22, 0.04);
  --shadow-card: 0 4px 18px rgba(31, 13, 22, 0.06);
  --shadow-hover: 0 10px 28px rgba(225, 29, 72, 0.12);

  --max-width: 1040px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.65;
}

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

body {
  font-family: var(--font-family);
  line-height: var(--line-height);
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--rose-light);
  color: var(--rose-primary);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid var(--rose-soft);
}

.badge-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--rose-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--rose-glow);
  transition: all 0.22s ease;
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.brand-wrapper {
  padding: 1.15rem 0 0.85rem 0;
}

.site-title {
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--rose-deep);
  text-decoration: none;
  display: inline-block;
}

.site-title span {
  background: var(--rose-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-tagline {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--rose-primary);
  background-color: var(--rose-light);
}

.site-nav a.active {
  color: #ffffff;
  background: var(--btn-gradient);
  box-shadow: 0 2px 8px var(--rose-glow);
}

/* ==========================================================================
   Interactive Vitals / Metrics Banner (WHOOP & Levels Inspired)
   ========================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 2.25rem 0;
  padding: 1.35rem 1.6rem;
  background: var(--bg-banner);
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 13, 22, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  position: relative;
  overflow: hidden;
}

.metrics-strip::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.metric-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-size: 1.95rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #ffc0cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 0.35rem;
  font-weight: 550;
}

/* ==========================================================================
   Typography & Introductions
   ========================================================================== */
h1 {
  font-size: 2.35rem;
  line-height: 1.2;
  color: var(--rose-deep);
  margin-bottom: 1rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.48rem;
  line-height: 1.3;
  color: var(--rose-deep);
  margin: 1.85rem 0 0.9rem 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--rose-deep);
  margin-bottom: 0.5rem;
  font-weight: 750;
}

p {
  margin-bottom: 1.15rem;
  font-size: 1.03rem;
  color: var(--text-main);
}

.intro-lead {
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--text-muted);
  border-left: 4px solid var(--rose-primary);
  padding: 1.2rem 1.35rem;
  margin-bottom: 2rem;
  background-color: var(--bg-card-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Filter Bar (One Medical & Headspace Inspired)
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.filter-tab {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tab:hover {
  border-color: var(--rose-primary);
  color: var(--rose-primary);
  background-color: var(--rose-light);
}

.filter-tab.active {
  background: var(--btn-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--rose-glow);
}

/* ==========================================================================
   Article Cards & Grids
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2.5rem 0 1.25rem 0;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--rose-deep);
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Featured Hero Article */
.featured-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rose-gradient);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rose-primary);
}

.featured-card h3 {
  font-size: 1.7rem;
  line-height: 1.28;
  margin: 0.85rem 0;
}

.featured-card h3 a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}

.featured-card h3 a:hover {
  color: var(--rose-primary);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2.5rem 0;
}

.article-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rose-vibrant);
}

.article-card h3 a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}

.article-card h3 a:hover {
  color: var(--rose-primary);
}

.article-meta {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 0.65rem;
  font-weight: 550;
}

.article-summary {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin-bottom: 1.15rem;
}

/* Topic Pills & Vibrant Badges */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.pill {
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.pill-rose {
  background-color: var(--rose-light);
  color: var(--rose-primary);
  border: 1px solid var(--rose-soft);
}

.pill-purple {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
}

.pill-coral {
  background-color: var(--accent-coral-light);
  color: var(--accent-coral);
}

.pill-mint {
  background-color: var(--accent-mint-light);
  color: var(--accent-mint);
}

.card-action {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.card-action a {
  color: var(--rose-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.card-action a:hover {
  color: var(--rose-deep);
  gap: 0.5rem;
}

/* ==========================================================================
   Interactive Student Nutrition Calculator (WHOOP & Levels Inspired)
   ========================================================================== */
.interactive-calculator {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.interactive-calculator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--rose-gradient);
}

.calc-header {
  margin-bottom: 1.5rem;
}

.calc-header h3 {
  font-size: 1.55rem;
  color: var(--rose-deep);
  margin-bottom: 0.35rem;
}

.calc-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-control-group label.group-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
  margin-bottom: 0.5rem;
}

.calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.calc-select:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.addons-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.addon-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.92rem;
  font-weight: 550;
}

.addon-chip:hover {
  border-color: var(--rose-vibrant);
  background-color: var(--rose-light);
}

.addon-chip input[type="checkbox"] {
  accent-color: var(--rose-primary);
  width: 16px;
  height: 16px;
}

/* Calculator Visual Dashboard */
.calc-dashboard {
  background: var(--bg-banner);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.calc-target-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.calc-big-stat {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #fda4af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-cost-display {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 650;
  margin: 0.75rem 0 1.25rem 0;
}

.progress-track {
  width: 100%;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  width: 45%;
  background: var(--rose-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.calc-feedback {
  font-size: 0.88rem;
  color: #ffccd5;
  font-weight: 550;
}

/* ==========================================================================
   Interactive Accordions (Mayo Clinic / MSK Style)
   ========================================================================== */
.faq-section {
  margin: 3rem 0;
}

.faq-accordion {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion:hover {
  border-color: var(--rose-vibrant);
}

.faq-accordion summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rose-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rose-primary);
  transition: transform 0.2s ease;
}

.faq-accordion[open] summary::after {
  content: "−";
  color: var(--rose-deep);
}

.faq-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Tip Banner & Callouts
   ========================================================================== */
.tip-banner {
  background: var(--bg-banner);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 3.25rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.tip-banner h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.tip-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 650px;
}

.tip-banner a.btn-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--rose-deep);
  font-weight: 750;
  font-size: 0.92rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.22s ease;
}

.tip-banner a.btn-cta:hover {
  background-color: var(--rose-light);
  color: var(--rose-primary);
  transform: translateY(-2px);
}

/* Content Box (About, Contact, Editorial, Privacy) */
.content-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.content-box ul,
.content-box ol {
  padding-left: 1.35rem;
  margin-bottom: 1.15rem;
}

.content-box li {
  margin-bottom: 0.55rem;
}

/* Article Detail */
.article-header {
  margin-bottom: 2rem;
}

.article-topic-pill {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose-primary);
  margin-bottom: 0.75rem;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-main);
  max-width: 760px;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body ul,
.article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.65rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--rose-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0;
  font-size: 0.92rem;
  margin-top: 4rem;
  border-top: 4px solid var(--rose-primary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand h4 {
  font-size: 1.45rem;
  color: #ffffff;
  font-weight: 850;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 820px) {
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .site-title {
    font-size: 1.7rem;
  }
  h1 {
    font-size: 1.85rem;
  }
  .featured-card {
    padding: 1.35rem;
  }
  .featured-card h3 {
    font-size: 1.35rem;
  }
  .metrics-strip {
    grid-template-columns: 1fr 1fr;
    padding: 1.15rem;
  }
  .metric-value {
    font-size: 1.55rem;
  }
  .content-box {
    padding: 1.35rem;
  }
  .header-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .footer-top {
    flex-direction: column;
  }
}
