/**
 * Kizmio Fitness Plugin - Modern Health/Fitness Fintech Design
 * Primary Color: #22C55E | Dark: #15803D | Light: #DCFCE7
 */

:root {
  --kzm-fitness-primary: #22c55e;
  --kzm-fitness-dark: #15803d;
  --kzm-fitness-light: #dcfce7;
  --kzm-fitness-glow: rgba(34, 197, 94, 0.25);
  --kzm-fitness-border: rgba(34, 197, 94, 0.2);
  --kzm-fitness-card-bg: var(--kzm-surface, #ffffff);
  --kzm-fitness-card-border: var(--kzm-border, #e2e8f0);
  --kzm-fitness-text: var(--kzm-text, #1e293b);
  --kzm-fitness-muted: var(--kzm-muted, #64748b);
}

body.night-mode {
  --kzm-fitness-light: rgba(34, 197, 94, 0.15);
  --kzm-fitness-card-bg: var(--kzm-surface, #1e293b);
  --kzm-fitness-card-border: var(--kzm-border, #334155);
  --kzm-fitness-text: var(--kzm-text, #f8fafc);
  --kzm-fitness-muted: var(--kzm-muted, #94a3b8);
}

/* ==========================================================================
   BLOGS-STYLE HERO BANNER (FITNESS EMERALD PALETTE)
   ========================================================================== */
.fitness-hero-v2 {
  position: relative;
  background: #06170d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  padding: 38px 32px;
  margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.fitness-hero-v2__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.fitness-hero-v2__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.fitness-hero-v2__glow--1 {
  top: -20%;
  left: -10%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0) 70%);
}

.fitness-hero-v2__glow--2 {
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(21, 128, 61, 0.28) 0%, rgba(21, 128, 61, 0) 70%);
}

.fitness-hero-v2__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.65;
}

.fitness-hero-v2__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 32px;
}

.fitness-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  color: #4ade80;
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
  margin-bottom: 14px;
}

.fitness-hero-v2__title {
  font-size: 34px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 12px;
}

.fitness-hero-v2__accent {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fitness-hero-v2__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 22px;
}

.fitness-hero-v2__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fitness-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.fitness-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  color: #ffffff !important;
}

.fitness-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.fitness-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

/* ==========================================================================
   SIDEBAR (COPIED EXACTLY FROM FLIPBOOK PATTERN WITH GREEN PALETTE)
   ========================================================================== */
.country-sidebar-card.country-places-sidebar.kzm-fitness-unified-sidebar,
.kzm-fitness-unified-sidebar {
  border: 1px solid var(--kzm-fitness-card-border) !important;
  border-radius: 16px !important;
  background: var(--kzm-fitness-card-bg) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.kzm-fitness-sidebar-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px !important;
  background: linear-gradient(145deg, #ecfdf5, #ffffff) !important;
  border-bottom: 1px solid var(--kzm-fitness-card-border) !important;
}

.kzm-fitness-sidebar-identity > span {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  border-radius: 13px !important;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25) !important;
  font-size: 1.15rem !important;
}

.kzm-fitness-sidebar-identity small {
  color: #16a34a !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  display: block !important;
}

.kzm-fitness-sidebar-identity h2 {
  color: var(--kzm-fitness-text) !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.kzm-fitness-sidebar-heading {
  padding: 0 4px 8px !important;
}

.kzm-fitness-sidebar-heading > span {
  color: #16a34a !important;
  font-size: 0.67rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  display: block !important;
}

.kzm-fitness-sidebar-heading h3 {
  margin: 2px 0 0 !important;
  color: var(--kzm-fitness-text) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

.kzm-fitness-sidebar-grid {
  display: grid !important;
  gap: 7px !important;
}

.kzm-fitness-sidebar-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px !important;
  color: var(--kzm-fitness-text) !important;
  text-align: left !important;
  text-decoration: none !important;
  background: var(--kzm-surface-soft, #f8fafc) !important;
  border: 1px solid var(--kzm-fitness-card-border) !important;
  border-radius: 12px !important;
  transition: all 0.18s ease !important;
}

.kzm-fitness-sidebar-pill:hover,
.kzm-fitness-sidebar-pill.is-active {
  color: #15803d !important;
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: #22c55e !important;
  transform: translateY(-1px) !important;
}

.kzm-fitness-sidebar-pill__icon {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  color: #22c55e !important;
  background: var(--kzm-surface, #ffffff) !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
}

.kzm-fitness-sidebar-pill:hover .kzm-fitness-sidebar-pill__icon,
.kzm-fitness-sidebar-pill.is-active .kzm-fitness-sidebar-pill__icon {
  color: #ffffff !important;
  background: #22c55e !important;
}

.kzm-fitness-sidebar-pill__copy {
  min-width: 0 !important;
  flex: 1 !important;
}

.kzm-fitness-sidebar-pill__copy strong {
  display: block !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.79rem !important;
  font-weight: 800 !important;
  color: inherit !important;
}

.kzm-fitness-sidebar-pill__copy small {
  display: block !important;
  color: var(--kzm-fitness-muted) !important;
  font-size: 0.67rem !important;
}

.kzm-fitness-sidebar-pill--create {
  color: #ffffff !important;
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  border-color: #22c55e !important;
}

.kzm-fitness-sidebar-pill--create .kzm-fitness-sidebar-pill__icon {
  color: #22c55e !important;
  background: #ffffff !important;
}

.kzm-fitness-sidebar-pill--create:hover {
  color: #ffffff !important;
  background: #16a34a !important;
}

body.night-mode .kzm-fitness-sidebar-identity {
  background: #06170d !important;
}

body.night-mode .kzm-fitness-sidebar-pill__icon {
  background: #1e293b !important;
}

body.night-mode .kzm-fitness-sidebar-pill:hover,
body.night-mode .kzm-fitness-sidebar-pill.is-active {
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.18) !important;
}

/* ==========================================================================
   FINTECH STATS CARDS & WELLNESS SCORE
   ========================================================================== */
.fitness-fintech-card {
  background: var(--kzm-fitness-card-bg);
  border: 1px solid var(--kzm-fitness-card-border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fitness-fintech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.fitness-fintech-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fitness-fintech-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.fitness-fintech-card__icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.fitness-fintech-card__icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.fitness-fintech-card__icon--orange {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.fitness-fintech-card__icon--purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.fitness-fintech-card__val {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
  color: var(--kzm-fitness-text);
}

.fitness-fintech-card__sub {
  font-size: 12px;
  color: var(--kzm-fitness-muted);
  margin-top: 4px;
}

.fitness-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--kzm-surface-soft, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.fitness-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Circular Progress Ring */
.fitness-ring-svg {
  transform: rotate(-90deg);
}

.fitness-ring-bg {
  stroke: rgba(255, 255, 255, 0.12);
}

.fitness-ring-fill {
  stroke: #22c55e;
  transition: stroke-dashoffset 0.6s ease;
}

/* Daily Action Card */
.fitness-action-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fitness-action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #22c55e;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 44px;
}

/* Offcanvas mobile drawer */
@media (max-width: 767.98px) {
  .fitness-hero-v2__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fitness-hero-v2 {
    padding: 24px 18px;
  }
  .fitness-hero-v2__title {
    font-size: 26px;
  }
  .fitness-action-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
