/* ==========================================================================
   NutriVibe - Premium Nutrition & Wellness Website Stylesheet
   Framework: Bootstrap 5.3 + Custom Premium Styling
   Fonts: Plus Jakarta Sans & Playfair Display
   Icons: Tabler Icons Webfont
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --nv-primary: #1e5a3c;
  --nv-primary-light: #2d7a52;
  --nv-primary-subtle: #e8f5ee;
  --nv-primary-border: #c4e5d2;
  --nv-primary-hover: #16432c;
  --nv-accent: #38a169;
  --nv-accent-gold: #eab308;
  --nv-accent-coral: #f97316;
  --nv-accent-sky: #0ea5e9;

  /* Neutrals & Dark Tones */
  --nv-dark: #121814;
  --nv-dark-card: #1a221d;
  --nv-charcoal: #242e27;
  --nv-slate: #475569;
  --nv-muted: #64748b;
  --nv-light-muted: #94a3b8;
  --nv-border: #e2e8f0;
  --nv-border-light: #edf2f7;
  --nv-cream: #f8faf7;
  --nv-cream-alt: #f1f6f2;
  --nv-white: #ffffff;

  /* Shadows */
  --nv-shadow-xs: 0 1px 3px rgba(18, 24, 20, 0.04);
  --nv-shadow-sm: 0 4px 12px rgba(18, 24, 20, 0.06);
  --nv-shadow-md: 0 10px 25px -4px rgba(18, 24, 20, 0.08);
  --nv-shadow-lg: 0 20px 40px -10px rgba(18, 24, 20, 0.12);
  --nv-shadow-glow: 0 10px 30px rgba(45, 122, 82, 0.18);

  /* Radius */
  --nv-radius-sm: 8px;
  --nv-radius-md: 14px;
  --nv-radius-lg: 20px;
  --nv-radius-xl: 28px;
  --nv-radius-pill: 9999px;

  /* Transitions */
  --nv-transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --nv-transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nv-transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base & Typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--nv-cream);
  color: var(--nv-dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--nv-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

a {
  color: var(--nv-primary);
  text-decoration: none;
  transition: all var(--nv-transition-fast);
}

a:hover {
  color: var(--nv-primary-hover);
}

/* Bootstrap Default Blue Overrides (Enforce Nutrition Brand Colors) */
.text-primary {
  color: var(--nv-primary) !important;
}

.text-primary-emphasis {
  color: var(--nv-primary-hover) !important;
}

.bg-primary {
  background-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.bg-primary-subtle {
  background-color: var(--nv-primary-subtle) !important;
  color: var(--nv-primary) !important;
}

.border-primary {
  border-color: var(--nv-primary-border) !important;
}

.border-primary-subtle {
  border-color: var(--nv-primary-border) !important;
}

.link-primary {
  color: var(--nv-primary) !important;
}

.link-primary:hover, .link-primary:focus {
  color: var(--nv-primary-hover) !important;
}

.btn-primary {
  background-color: var(--nv-primary) !important;
  border-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--nv-primary-hover) !important;
  border-color: var(--nv-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(30, 90, 60, 0.25) !important;
}

.btn-outline-primary {
  border-color: var(--nv-primary) !important;
  color: var(--nv-primary) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active {
  background-color: var(--nv-primary) !important;
  border-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.badge.bg-primary {
  background-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.badge.bg-primary-subtle {
  background-color: var(--nv-primary-subtle) !important;
  color: var(--nv-primary) !important;
  border: 1px solid var(--nv-primary-border);
}

.badge.bg-info-subtle {
  background-color: #f1f6f2 !important;
  color: var(--nv-primary) !important;
  border: 1px solid var(--nv-primary-border);
}

/* Global Form Controls & Focus Rings */
.form-control:focus, .form-select:focus {
  border-color: var(--nv-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 90, 60, 0.15) !important;
}

.form-check-input:checked {
  background-color: var(--nv-primary) !important;
  border-color: var(--nv-primary) !important;
}

.form-check-input:focus {
  border-color: var(--nv-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 90, 60, 0.15) !important;
}

/* Tabs and Pagination Overrides */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  background-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.nav-pills .nav-link {
  color: var(--nv-slate);
}

.nav-pills .nav-link:hover {
  color: var(--nv-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--nv-primary) !important;
  border-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

.pagination .page-link {
  color: var(--nv-primary) !important;
}

.pagination .page-link:hover {
  color: var(--nv-primary-hover) !important;
  background-color: var(--nv-primary-subtle) !important;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(30, 90, 60, 0.15) !important;
}

.dropdown-item:active, .dropdown-item.active {
  background-color: var(--nv-primary) !important;
  color: #ffffff !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--nv-cream-alt);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nv-primary-light);
}

/* --------------------------------------------------------------------------
   Navigation & Sticky Header
   -------------------------------------------------------------------------- */
.navbar-nutrivibe {
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--nv-transition-smooth);
  padding: 14px 0;
  z-index: 1030;
}

.navbar-nutrivibe.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(18, 24, 20, 0.06);
  padding: 10px 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nv-dark);
  letter-spacing: -0.03em;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--nv-primary) 0%, var(--nv-accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(45, 122, 82, 0.25);
  transition: transform var(--nv-transition-bounce);
}

.brand-logo:hover .brand-logo-icon {
  transform: rotate(10deg) scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--nv-slate);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  border-radius: var(--nv-radius-pill);
  transition: all var(--nv-transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--nv-primary);
  background-color: var(--nv-primary-subtle);
}

/* Header CTA Buttons */
.btn-nv-primary {
  background: linear-gradient(135deg, var(--nv-primary) 0%, var(--nv-primary-light) 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--nv-radius-pill);
  box-shadow: 0 4px 14px rgba(30, 90, 60, 0.25);
  transition: all var(--nv-transition-bounce);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-nv-primary:hover {
  background: linear-gradient(135deg, var(--nv-primary-hover) 0%, var(--nv-primary) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 90, 60, 0.32);
}

.btn-nv-primary:active {
  transform: translateY(0);
}

.btn-nv-outline {
  background: transparent;
  color: var(--nv-dark);
  border: 1.5px solid var(--nv-border);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--nv-radius-pill);
  transition: all var(--nv-transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-nv-outline:hover {
  background: var(--nv-cream-alt);
  border-color: var(--nv-primary-border);
  color: var(--nv-primary);
  transform: translateY(-2px);
}

.btn-nv-subtle {
  background: var(--nv-primary-subtle);
  color: var(--nv-primary);
  border: 1px solid var(--nv-primary-border);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--nv-radius-pill);
  transition: all var(--nv-transition-fast);
}

.btn-nv-subtle:hover {
  background: #d3ecd9;
  color: var(--nv-primary-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Badges & Tags
   -------------------------------------------------------------------------- */
.badge-pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--nv-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--nv-primary-subtle);
  color: var(--nv-primary);
  border: 1px solid var(--nv-primary-border);
}

.badge-pill-orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-pill-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-pill-blue {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* --------------------------------------------------------------------------
   Cards & Layout
   -------------------------------------------------------------------------- */
.nv-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  box-shadow: var(--nv-shadow-sm);
  padding: 24px;
  transition: all var(--nv-transition-smooth);
  position: relative;
}

.nv-card:hover {
  box-shadow: var(--nv-shadow-md);
  border-color: rgba(45, 122, 82, 0.15);
  transform: translateY(-4px);
}

.nv-card-interactive {
  cursor: pointer;
}

.nv-card-dark {
  background: var(--nv-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Hero Section & Floating Composition
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 161, 105, 0.12) 0%, rgba(248, 250, 247, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-composition {
  position: relative;
  min-height: 480px;
}

.hero-main-img-wrapper {
  position: relative;
  border-radius: var(--nv-radius-xl);
  overflow: hidden;
  box-shadow: var(--nv-shadow-lg);
  border: 4px solid var(--nv-white);
  height: 450px;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-main-img-wrapper:hover .hero-main-img {
  transform: scale(1.04);
}

/* Floating Badges */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--nv-radius-md);
  padding: 12px 18px;
  box-shadow: var(--nv-shadow-md);
  z-index: 2;
  animation: floatAnim 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 30px;
  left: -24px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 40px;
  right: -20px;
  animation-delay: 2.5s;
}

.floating-card-3 {
  bottom: -20px;
  left: 20px;
  animation-delay: 1.2s;
}

@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   Trust & Stats Banner
   -------------------------------------------------------------------------- */
.trust-banner {
  background: var(--nv-white);
  border-top: 1px solid var(--nv-border-light);
  border-bottom: 1px solid var(--nv-border-light);
  padding: 36px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--nv-radius-md);
  background: var(--nv-primary-subtle);
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--nv-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--nv-slate);
  font-size: 0.88rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Nutrition Dashboard Section (Preview & Full)
   -------------------------------------------------------------------------- */
.dashboard-preview-card {
  background: #ffffff;
  border-radius: var(--nv-radius-xl);
  border: 1px solid var(--nv-border);
  box-shadow: var(--nv-shadow-lg);
  padding: 32px;
}

.circular-gauge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--nv-accent) 0% 72%, #e2e8f0 72% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circular-gauge-inner {
  width: 112px;
  height: 112px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.macro-bar-wrap {
  margin-bottom: 16px;
}

.macro-progress {
  height: 8px;
  border-radius: var(--nv-radius-pill);
  background-color: var(--nv-border-light);
  overflow: hidden;
}

.macro-progress-bar-protein {
  background: linear-gradient(90deg, #1e5a3c, #38a169);
}

.macro-progress-bar-carbs {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.macro-progress-bar-fats {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}

.macro-progress-bar-calories {
  background: linear-gradient(90deg, var(--nv-primary), var(--nv-accent));
}

.macro-progress-bar-water {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* --------------------------------------------------------------------------
   Category Cards
   -------------------------------------------------------------------------- */
.category-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--nv-transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--nv-cream-alt);
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  transition: all var(--nv-transition-bounce);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--nv-primary-border);
  box-shadow: var(--nv-shadow-md);
}

.category-card:hover .category-icon {
  background: var(--nv-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Weekly Meal Planner Tabs & Cards
   -------------------------------------------------------------------------- */
.nav-pills-nutrivibe {
  background: var(--nv-cream-alt);
  padding: 6px;
  border-radius: var(--nv-radius-pill);
  gap: 4px;
  display: inline-flex;
  flex-wrap: wrap;
}

.nav-pills-nutrivibe .nav-link {
  color: var(--nv-slate);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--nv-radius-pill);
  transition: all var(--nv-transition-fast);
  border: none;
}

.nav-pills-nutrivibe .nav-link.active {
  background: var(--nv-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 90, 60, 0.2);
}

.meal-slot-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-md);
  overflow: hidden;
  transition: all var(--nv-transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.meal-slot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nv-shadow-md);
  border-color: var(--nv-primary-border);
}

.meal-img-box {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.meal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.meal-slot-card:hover .meal-img-box img {
  transform: scale(1.06);
}

.meal-type-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 24, 20, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--nv-radius-pill);
}

/* --------------------------------------------------------------------------
   Recipe Grid & Cards
   -------------------------------------------------------------------------- */
.recipe-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  overflow: hidden;
  transition: all var(--nv-transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nv-shadow-md);
  border-color: var(--nv-primary-border);
}

.recipe-img-box {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.recipe-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img-box img {
  transform: scale(1.05);
}

.recipe-bookmark-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nv-slate);
  transition: all var(--nv-transition-bounce);
  z-index: 3;
}

.recipe-bookmark-btn:hover,
.recipe-bookmark-btn.active {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.12);
}

.recipe-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--nv-radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--nv-primary);
}

/* --------------------------------------------------------------------------
   Expert Cards
   -------------------------------------------------------------------------- */
.expert-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  padding: 24px;
  transition: all var(--nv-transition-smooth);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nv-shadow-md);
  border-color: var(--nv-primary-border);
}

.expert-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

.expert-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nv-primary-subtle);
}

.expert-badge-verified {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 26px;
  height: 26px;
  background: var(--nv-primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   How It Works Timeline
   -------------------------------------------------------------------------- */
.process-step-card {
  position: relative;
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: all var(--nv-transition-smooth);
}

.process-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nv-shadow-md);
  border-color: var(--nv-primary-border);
}

.step-num-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nv-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--nv-radius-pill);
  letter-spacing: 0.05em;
}

.step-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--nv-primary-subtle);
  color: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 10px auto 20px;
  transition: transform var(--nv-transition-bounce);
}

.process-step-card:hover .step-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--nv-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Success Stories / Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--nv-shadow-xs);
  transition: all var(--nv-transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nv-shadow-md);
}

.testimonial-client-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.star-rating {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
}

/* --------------------------------------------------------------------------
   Blog Cards & Editorial
   -------------------------------------------------------------------------- */
.blog-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-lg);
  overflow: hidden;
  transition: all var(--nv-transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nv-shadow-md);
  border-color: var(--nv-primary-border);
}

.blog-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-box img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter-card {
  background: linear-gradient(135deg, var(--nv-dark) 0%, #1e3327 100%);
  border-radius: var(--nv-radius-xl);
  padding: 60px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--nv-shadow-lg);
}

.newsletter-input-group {
  background: #ffffff;
  border-radius: var(--nv-radius-pill);
  padding: 6px;
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-input {
  border: none;
  background: transparent;
  padding: 10px 20px;
  flex-grow: 1;
  font-size: 0.95rem;
  outline: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-nutrivibe {
  background: var(--nv-dark);
  color: #cbd5e1;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--nv-transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--nv-transition-bounce);
}

.social-icon-btn:hover {
  background: var(--nv-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Pricing / Plans Page
   -------------------------------------------------------------------------- */
.pricing-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-border-light);
  border-radius: var(--nv-radius-xl);
  padding: 36px 30px;
  position: relative;
  transition: all var(--nv-transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--nv-shadow-lg);
}

.pricing-card.featured {
  background: #ffffff;
  border: 2px solid var(--nv-primary);
  box-shadow: var(--nv-shadow-glow);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nv-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--nv-radius-pill);
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--nv-dark);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--nv-slate);
}

/* --------------------------------------------------------------------------
   Dashboard Sidebar & Views
   -------------------------------------------------------------------------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--nv-cream);
  position: relative;
}

.dashboard-sidebar {
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  background: var(--nv-white);
  border-right: 1px solid var(--nv-border-light);
  padding: 24px 16px;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 1040;
}

.dashboard-main {
  flex-grow: 1;
  min-width: 0;
  padding: 32px 36px;
  background-color: var(--nv-cream);
  overflow-x: hidden;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 24, 20, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--nv-shadow-lg);
  }

  .dashboard-sidebar.show {
    transform: translateX(0);
  }

  .dashboard-main {
    padding: 20px 16px;
  }
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--nv-radius-md);
  color: var(--nv-slate);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  transition: all var(--nv-transition-fast);
  text-decoration: none;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: var(--nv-primary-subtle);
  color: var(--nv-primary);
}

.sidebar-nav-link i {
  font-size: 1.25rem;
}

.dashboard-metric-card {
  background: #ffffff;
  border-radius: var(--nv-radius-lg);
  padding: 22px;
  border: 1px solid var(--nv-border-light);
  box-shadow: var(--nv-shadow-xs);
  transition: all var(--nv-transition-smooth);
}

.dashboard-metric-card:hover {
  box-shadow: var(--nv-shadow-sm);
  border-color: var(--nv-primary-border);
}

/* --------------------------------------------------------------------------
   Auth Pages (Login, Register, Forgot Password)
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: #ffffff;
  border-radius: var(--nv-radius-xl);
  padding: 40px;
  box-shadow: var(--nv-shadow-lg);
  border: 1px solid var(--nv-border-light);
  max-width: 480px;
  width: 100%;
}

.auth-form .form-control {
  padding: 12px 16px;
  border-radius: var(--nv-radius-md);
  border: 1.5px solid var(--nv-border);
  font-size: 0.95rem;
  transition: all var(--nv-transition-fast);
}

.auth-form .form-control:focus {
  border-color: var(--nv-primary);
  box-shadow: 0 0 0 3px rgba(45, 122, 82, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--nv-muted);
  cursor: pointer;
  padding: 4px;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.nv-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nv-toast {
  background: #ffffff;
  border-left: 4px solid var(--nv-primary);
  border-radius: var(--nv-radius-md);
  box-shadow: var(--nv-shadow-lg);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   Interactive Recipe Portions & Checklists
   -------------------------------------------------------------------------- */
.ingredient-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--nv-cream-alt);
  border-radius: var(--nv-radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--nv-transition-fast);
}

.ingredient-check-item:hover {
  background: #e7f1e9;
}

.ingredient-check-item input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--nv-muted);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-composition {
    margin-top: 40px;
  }
  .floating-card-1 {
    left: 0;
  }
  .floating-card-2 {
    right: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-main-img-wrapper {
    height: 340px;
  }
  .newsletter-card {
    padding: 36px 20px;
  }
  .auth-card {
    padding: 28px 20px;
  }
}
