﻿/* Optimized font loading */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Montserrat:900&display=swap");

/* Professional Design System */
@import url("design-system.css");

/* Legacy variables for backward compatibility */
:root {
  --primary-color: #0f172e;
  --primary-color-light: #232d44;
  --primary-color-extra-light: #232c3e;
  --secondary-color: #10B981;
  --secondary-color-dark: #059669;
  --accent-color: #ff6b6b;
  --success-color: #51cf66;
  --text-light: #b0bec5;
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #0f172e 0%, #1a2847 100%);
  --gradient-accent: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --max-width: 1200px;
}

/* Light Mode Theme */










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

/* Prevent horizontal scroll globally */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ensure all elements respect viewport width */
*,
*::before,
*::after {
  max-width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

canvas {
  overflow: hidden;
}

.section__container {
  max-width: var(--max-width);
  width: 100%;
  margin: auto;
  padding: 6rem clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.section__container:first-of-type {
  padding-top: 4rem;
}

.section__container:last-of-type {
  padding-bottom: 6rem;
}

.section__header {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__subheader {
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  color: var(--text-light);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: var(--line-height-relaxed);
}

/* Button styles now in design-system.css - keeping for backward compatibility */
.btn {
  padding: var(--spacing-md) var(--spacing-xl);
  outline: none;
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}


#postButton {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

img {
  width: 100%;
  display: flex;
  overflow: hidden;
}

a {
  text-decoration: none;
}

.bg__blur {
  position: absolute;
  box-shadow: 0 0 1000px 50px var(--secondary-color);
  z-index: -1;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--white);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
}

nav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: var(--z-sticky, 200) !important;
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: rgba(15, 23, 46, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center !important;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  overflow: visible !important;
  clip-path: none !important;
}

nav::-webkit-scrollbar {
  display: none;
}

.nav__logo-top {
  display: none;
}

.nav__bottom {
  display: flex;
  align-items: center;
  gap: 0.01rem;
  flex-wrap: nowrap;
  padding: 0.5rem clamp(1rem, 4vw, 1.5rem);
  overflow-x: auto;
  overflow-y: visible !important;
  overflow: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 10001;
  clip-path: none !important;
}

.nav__bottom > .nav-logo-link {
  margin-right: 0.5rem;
}

.nav__bottom > .nav-logo-link + button,
.nav__bottom > .nav-logo-link + ul {
  margin-left: 0.5rem;
}

.nav__bottom::-webkit-scrollbar {
  display: none;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: auto;
  height: auto;
  margin: 0;
  line-height: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 200px;
  width: auto;
  max-width: 200px;
  margin-bottom: -70px;
  margin-top: -70px;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
  padding: 0;
  line-height: 0;
}

.nav-logo-link:hover .nav-logo-img {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 140px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 225px;
    max-width: 220px;
  }
}

/* Nav text logo styling - larger and matching header brand */
.nav-logo-text {
  display: inline-block;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 3px;
  text-transform: none;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

.nav-logo-text:hover {
  text-decoration: none;
}

/* 3D Flip Animation for FITNESSPLAT */
.nav-logo-text.loader {
  -webkit-perspective: 700px;
  perspective: 700px;
  white-space: nowrap;
  display: inline-block;
}

.nav-logo-text.loader > span {
  font-size: 2rem;
  display: inline-block;
  animation: flip 4s infinite linear;
  transform-origin: 0 70%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  color: #00b376;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg);
  }
  25% {
    transform: rotateX(360deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

.nav-logo-text.loader > span:nth-child(even) {
  color: white;
}

.nav-logo-text.loader > span:nth-child(2) {
  animation-delay: 0.3s;
}

.nav-logo-text.loader > span:nth-child(3) {
  animation-delay: 0.6s;
}

.nav-logo-text.loader > span:nth-child(4) {
  animation-delay: 0.9s;
}

.nav-logo-text.loader > span:nth-child(5) {
  animation-delay: 1.2s;
}

.nav-logo-text.loader > span:nth-child(6) {
  animation-delay: 1.5s;
}

.nav-logo-text.loader > span:nth-child(7) {
  animation-delay: 1.8s;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  padding: 0;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: visible !important;
  clip-path: none !important;
}

.link a {
  position: relative;
  padding: 0.6rem clamp(1rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: clamp(1rem, 1vw, 0.9rem);  /* Plus grand : entre 1rem et 1.2rem */
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  pointer-events: auto !important;
  z-index: 1;
  
}

.link a:hover {
  color: var(--white);
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.link a::after {
  display: none;
}

/* Dropdown menu styles */
.nav__dropdown {
  position: relative !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* Keep dropdown visible when hovering over the menu itself */
.nav__dropdown-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.nav__dropdown > a {
  display: flex;
  align-items: center;
  
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
  
}

.nav__dropdown > a i {
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.nav__dropdown:hover > a i,
.nav__dropdown.active > a i {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0.5rem !important;
  background: rgba(15, 23, 46, 0.98) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: 12px !important;
  min-width: 220px !important;
  padding: 0.5rem !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) scale(0.95) !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 2147483647 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
  overflow: visible !important;
  pointer-events: none !important;
  will-change: transform, opacity !important;
  display: block !important;
  clip-path: none !important;
}

/* Bridge element to prevent gap hover issues - extends upward to fill gap */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
  pointer-events: auto;
}

.nav__dropdown-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.active .nav__dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  display: block !important;
}

/* Keep menu visible when hovering directly over it - must come after pointer-events is set */
.nav__dropdown-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.nav__dropdown:hover .nav__dropdown-menu::after,
.nav__dropdown.active .nav__dropdown-menu::after {
  opacity: 1;
}

.nav__dropdown-menu li {
  list-style: none;
  margin: 0;
}

.nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0.15rem 0;
  position: relative;
}

.nav__dropdown-menu a i {
  font-size: 1rem;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.nav__dropdown-menu a:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--white);
  transform: translateX(4px);
  padding-left: 1.25rem;
}

.nav__dropdown-menu a:hover i {
  opacity: 1;
  color: var(--secondary-color);
}

.nav__dropdown-menu a::after {
  display: none;
}

#navAuthButtons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

#navAuthButtons .nav__dropdown {
  position: relative;
}

/* Theme Toggle Button */
/* Notification Bell in Navigation */
.nav-notification-bell {
  position: relative;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-notification-bell:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-color);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  padding: 0 4px;
}

.nav-donate-btn,
.nav-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(64, 255, 170, 0.1);
  color: #40ffaa;
  text-decoration: none;
  border: 2px solid rgba(64, 255, 170, 0.3);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(64, 255, 170, 0.1);
  margin-right: 1rem;
  position: relative;
  overflow: visible;
  min-width: fit-content;
}

.nav-donate-btn:hover,
.nav-support-btn:hover {
  background: #40ffaa;
  color: #0f172a;
  border-color: #40ffaa;
  box-shadow: 0 0 25px rgba(64, 255, 170, 0.4);
  transform: translateY(-2px);
}

.nav-donate-btn i,
.nav-support-btn i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-donate-btn span,
.nav-support-btn span {
  display: inline-block;
  white-space: nowrap;
}

.nav-notification-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  color: var(--secondary-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-right: 10rem;
}

.nav-notification-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

@media (max-width: 768px) {
  .nav-donate-btn,
  .nav-support-btn {
    padding: 0.6rem 1rem;
    margin-right: 0.5rem;
    font-size: 0.85rem;
  }
  
  .nav-donate-btn span,
  .nav-support-btn span {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .nav-donate-btn span,
  .nav-support-btn span {
    font-size: 0.75rem;
  }
  
  .nav-donate-btn,
  .nav-support-btn {
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
}

.theme-toggle-btn {
  background: rgba(26, 40, 71, 0.6);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.theme-toggle-btn:hover::before {
  width: 100px;
  height: 100px;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.1);
  border-color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  color: var(--secondary-color);
}

.theme-toggle-btn:active {
  transform: rotate(15deg) scale(0.95);
}



/* Hashtag suggestion box styles */
.hashtag-suggest-box {
  min-width: min(300px, 100%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hashtag-suggestion-item.highlighted {
  background: rgba(0, 212, 255, 0.3) !important;
  border-left: 3px solid var(--secondary-color);
}

.header__container {
  position: relative;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
  min-height: 600px;
}

.header__container::before {
  content: "FITNESS";
  position: absolute;
  bottom: 5rem;
  right: 20rem;
  font-size: 10rem;
  font-weight: 700;
  line-height: 7rem;
  color: var(--white);
  opacity: 0.05;
  z-index: -1;
}

.header__blur {
  bottom: 5rem;
  right: 0;
}

.header__content h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 5rem;
  font-weight: 700;
  line-height: 6rem;
  color: var(--white);
}

.header__content h1 span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--white);
}

.header__content p {
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 90%;
}

.header__image {
  position: relative;
}

.header__image::before {
  content: "o";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40rem;
  font-weight: 400;
  line-height: 20rem;
  color: var(--secondary-color);
  opacity: 0.1;
  z-index: -1;
}

.header__image img {
  max-width: 350px;
  margin: auto;
}

/* Brand block replacing header image */
.header__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  border-radius: 8px;
  padding: 0.5rem;
}

.header-brand-image {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  background: var(--primary-color);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* Blend white/light backgrounds with page background */
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

/* Alternative blend mode - uncomment if screen doesn't work well */
/* .header-brand-image {
  mix-blend-mode: multiply;
  filter: brightness(0.95) contrast(1.1);
} */
.page-brand {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subheader {
  color: var(--text-light);
  font-weight: 600;
}

.explore__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.explore__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.explore__nav span {
  padding: 0 6px;
  font-size: 1.5rem;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.explore__nav span:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.explore__container {
  padding: 6rem 2rem;
}

.explore__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.explore__card {
  --electric-border-color: #7df9ff;
  --electric-light-color: #b3f5ff;
  --eb-border-width: 2px;
  padding: 0;
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.8), rgba(36, 53, 87, 0.8));
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: visible;
  isolation: isolate;
  min-height: 280px;
}

.eb-svg {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 10px;
  height: 10px;
  opacity: 0.001;
  pointer-events: none;
}

.eb-content {
  position: relative;
  border-radius: inherit;
  z-index: 1;
  padding: 1rem;
}

.eb-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.eb-stroke,
.eb-glow-1,
.eb-glow-2,
.eb-overlay-1,
.eb-overlay-2,
.eb-background-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}

.eb-stroke {
  border: var(--eb-border-width) solid var(--electric-border-color);
  filter: url(#electric-border-filter);
}

.eb-glow-1 {
  border: var(--eb-border-width) solid rgba(125, 249, 255, 0.6);
  opacity: 0.5;
  filter: blur(calc(0.5px + (var(--eb-border-width) * 0.25)));
}

.eb-glow-2 {
  border: var(--eb-border-width) solid var(--electric-light-color);
  opacity: 0.5;
  filter: blur(calc(2px + (var(--eb-border-width) * 0.5)));
}

.eb-background-glow {
  z-index: -1;
  transform: scale(1.08);
  filter: blur(32px);
  opacity: 0.3;
  background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

.explore__card:hover {
  background: linear-gradient(135deg, rgba(36, 53, 87, 0.9), rgba(26, 40, 71, 0.9));
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(125, 249, 255, 0.3),
              0 0 40px rgba(125, 249, 255, 0.2),
              0 0 60px rgba(125, 249, 255, 0.1);
}

.explore__card span {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--white);
  background-color: var(--secondary-color-dark);
  border-radius: 5px;
}

.explore__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.explore__card p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.explore__card a {
  color: var(--white);
  transition: 0.3s;
}

.explore__card a:hover {
  color: var(--secondary-color);
}

.class__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem;
}

.class__image {
  position: relative;
}

.class__image .class__img-1 {
  position: absolute;
  right: 0;
  top: 0;
  max-width: 500px;
  border-radius: 10px;
}

.class__image .class__img-2 {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 300px;
  border-radius: 10px;
}

.class__content {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.class__content .section__header {
  text-align: left;
  max-width: 100%;
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.class__content p {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 90%;
}

/* Post Record Section Grid */
.post-record-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.post-record-section-grid .class__content {
  padding: 0;
}

.post-record-section-grid .class__content .btn {
  margin-top: 1rem;
  width: auto;
  display: inline-block;
}

@media (max-width: 968px) {
  .post-record-section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-record-section-grid .class__content .section__header {
    font-size: 2rem;
  }
}

.join__image {
  margin-top: 4rem;
  position: relative;
}

.join__image img {
  border-radius: 10px;
}

.join__grid {
  position: absolute;
  bottom: -5rem;
  width: calc(100% - 4rem);
  padding: 2rem;
  margin: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: var(--primary-color-light);
  border-radius: 10px;
}

.join__card {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.join__card span {
  padding: 5px 12px;
  font-size: 1.75rem;
  color: var(--white);
  background-color: var(--secondary-color-dark);
  border-radius: 5px;
}

.join__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.join__card p {
  color: var(--text-light);
}

.price__container {
  padding: 6rem 2rem;
}

.price__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.price__card {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.9), rgba(36, 53, 87, 0.9));
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.price__card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 48px rgba(16, 185, 129, 0.2);
}

.price__card:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 247, 255, 0.1));
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.price__card__content {
  flex: 1;
  margin-bottom: 2rem;
}

.price__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.price__card h3 {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.price__card p {
  margin-bottom: 0.75rem;
  color: var(--white);
}

.price__card p i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.price__btn {
  color: var(--secondary-color);
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.price__btn:hover {
  color: var(--white);
  background: var(--gradient-accent);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.review {
  background-color: var(--primary-color-light);
}

.review__container {
  display: flex;
  gap: 2rem;
}

.review__container > span {
  font-size: 6rem;
  color: var(--secondary-color);
  opacity: 0.5;
}

.review__content {
  flex: 1;
}

.review__content h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.review__content p {
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.review__rating span {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.review__footer {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.review__member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.review__member img {
  max-width: 60px;
  border-radius: 100%;
}

.review__member__details h4 {
  margin-bottom: 0;
}

.review__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.review__nav span {
  font-size: 2rem;
  color: var(--secondary-color);
  cursor: pointer;
}

.footer__container {
  position: relative;
  display: grid;
  grid-template-columns: 400px repeat(3, 1fr);
  gap: 3rem;
  padding: 6rem 2rem 4rem;
}

.footer__blur {
  bottom: 0;
  right: 0;
}

.footer__logo {
  max-width: 150px;
  margin-bottom: 2rem;
}

.footer__col p {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  padding: 5px 10px;
  font-size: 1.25rem;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 100%;
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.footer__col > a {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-light);
  transition: 0.3s;
}

.footer__col > a:hover {
  color: var(--secondary-color);
}

.footer__bar {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

@media (width < 900px) {
  /* Mobile nav is handled by mobile-nav.js - links are shown when menu is active */
  .nav__links:not(.active) {
    display: none;
  }

  .header__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .header__image {
    grid-area: 1/1/2/2;
  }

  .explore__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .class__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .class__image {
    min-height: 500px;
  }

  .price__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review__container {
    gap: 2rem;
  }

  .footer__container {
    grid-template-columns: 1fr 200px;
  }
}

@media (width < 600px) {
  .explore__header {
    flex-direction: column;
  }

  .explore__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .join__container {
    margin-bottom: 15rem;
  }

  .join__grid {
    width: 100%;
    margin: 0;
    bottom: -20rem;
  }

  .price__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .review__container {
    flex-direction: column;
    gap: 0;
  }

  .review__footer {
    flex-direction: column;
  }

  .footer__container {
    grid-template-columns: 1fr 150px;
  }

  .footer__bar {
    text-align: center;
  }
}

/* Community and guide specific styles */
.community-container {
  max-width: 900px;
  margin: auto;
  padding: 3rem 1rem;
}
.messages {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.message {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.6), rgba(36, 53, 87, 0.6));
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.message:hover {
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.8), rgba(36, 53, 87, 0.8));
  transform: translateX(5px);
}
.message__meta {
  font-size: 0.9rem;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.message__text {
  color: var(--white);
  line-height: 1.6;
}
.message-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.message-form input,
.message-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  background: rgba(26, 40, 71, 0.5);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}
.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  background: rgba(26, 40, 71, 0.8);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.message-form input::placeholder,
.message-form textarea::placeholder {
  color: var(--text-light);
}

/* Multi-step funnel styles */
.funnel .step {
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.7), rgba(36, 53, 87, 0.7));
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  border: 2px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(10px);
}
.funnel .step h3 { 
  color: var(--secondary-color); 
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.funnel input[type="email"], .funnel .options {
  width: 100%;
}
.funnel input[type="email"]{
  padding: 0.85rem 1rem; 
  border-radius: 6px; 
  border: 2px solid rgba(0, 212, 255, 0.2); 
  background: rgba(26, 40, 71, 0.5);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}
.funnel input[type="email"]:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.funnel .options { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}
.funnel .options label { 
  color: var(--text-light); 
  cursor: pointer; 
  padding: 0.75rem 1.25rem; 
  border-radius: 6px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  background: rgba(26, 40, 71, 0.4);
  transition: all 0.3s ease;
  font-weight: 500;
}
.funnel .options input {
  margin-right: 0.5rem;
}
.funnel .options input:checked + label {
  background: rgba(0, 212, 255, 0.2);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.step__actions { 
  margin-top: 1.5rem; 
  display: flex; 
  gap: 0.75rem;
}
.plan-block { 
  padding: 1rem; 
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.5), rgba(36, 53, 87, 0.5));
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}
.plan-block:hover {
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.7), rgba(36, 53, 87, 0.7));
  transform: translateX(5px);
}


/* Exercises library styles and body map styles */
.body-map__muscle path:hover{   
    fill: crimson;
}

.bodymap-container { 
  margin: 2rem 0; 
  display: flex; 
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 247, 255, 0.05));
  border-radius: 10px;
  border: 2px solid rgba(0, 212, 255, 0.1);
}
.bodymap-container svg { max-width: 400px; height: auto; }
#bodymap .bodypart { 
  fill: rgba(0, 212, 255, 0.15);
  stroke: var(--secondary-color);
  stroke-width: 2;
  transition: all 0.3s ease;
  cursor: pointer;
}
#bodymap .bodypart:hover { 
  fill: rgba(0, 212, 255, 0.35);
  stroke: var(--secondary-color-dark);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.exercises-header { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 1rem; 
  flex-wrap: wrap;
  margin-bottom: 0rem;
  
  flex-direction: column;
  text-align: center;
}
.exercises-header > div:first-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.exercises-header .exercise-search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.exercise-search { 
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.exercise-search i {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1.2rem;
  z-index: 1;
  pointer-events: none;
}
.exercise-search input { 
  padding: 0.8rem clamp(1rem, 4vw, 8rem);
  padding-left: 3rem;
  border-radius: 8px; 
  border: 2px solid rgba(0, 212, 255, 0.2);
  background: rgba(26, 40, 71, 0.8);
  color: var(--white);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  min-width: min(250px, 100%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.exercise-search input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  background: rgba(26, 40, 71, 0.8);
}
.exercises-layout { 
  display: flex; 
  gap: 2rem; 
  margin-top: 1.5rem;
}
.filters { 
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.filter-section h4 {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.group-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
}
.filter-btn { 
  background: rgba(26, 40, 71, 0.5);
  border: 2px solid rgba(0, 212, 255, 0.2);
  color: var(--text-light); 
  padding: 0.6rem 0.9rem; 
  border-radius: 6px; 
  cursor: pointer; 
  text-align: left; 
  width: 100%;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--secondary-color);
  background: rgba(0, 212, 255, 0.1);
  color: var(--secondary-color);
  transform: translateX(3px);
}
.filter-btn.active { 
  border-color: var(--secondary-color); 
  color: var(--white); 
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 247, 255, 0.1));
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.clear-filters-btn {
  background: rgba(255, 107, 107, 0.2);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}
.clear-filters-btn:hover {
  background: var(--accent-color);
  color: var(--white);
}
.exercise-results { flex: 1; }
.exercise-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
}
.exercise-card { 
  background: linear-gradient(135deg, rgba(26, 40, 71, 0.7), rgba(36, 53, 87, 0.7));
  border-radius: 10px; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column;
  border: 2px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.exercise-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}
.exercise-card .thumb img { 
  width: 100%; 
  height: 160px; 
  object-fit: cover; 
  display: block;
}
.exercise-card .card-body { 
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.exercise-card h4 { 
  margin: 0 0 0.5rem 0; 
  color: var(--secondary-color); 
  font-size: 1.1rem;
  font-weight: 700;
}
.exercise-card .meta { 
  color: var(--text-light); 
  font-size: 0.85rem; 
  margin-bottom: 1rem;
  line-height: 1.5;
}
.exercise-card .details { 
  width: 100%;
  margin-top: auto;
}

.exercise-modal { 
  position: fixed; 
  inset: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(0, 0, 0, 0.7); 
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.exercise-modal .modal-inner { 
  background: linear-gradient(135deg, #1a2847 0%, #243557 100%);
  padding: 2rem; 
  border-radius: 12px; 
  width: 90%; 
  max-width: 760px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  max-height: 90vh;
  overflow-y: auto;
   margin: 0 auto;
   margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-inner h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.modal-inner h4 {
  color: var(--secondary-color);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.modal-inner p,
.modal-inner li {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.modal-inner #modalBody {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.modal-inner #modalTitle {
  text-align: center;
  width: 100%;
}

@media (max-width:1000px) {
  .exercise-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { display: flex; gap: 1rem; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .filter-section { flex: 1 1 auto; }
  .group-list { flex-direction: row; flex-wrap: wrap; }
  .filter-btn { flex: 1 1 45%; }
  .bodymap-container svg { max-width: 300px; }
}

@media (max-width:600px) {
  .exercise-grid { grid-template-columns: repeat(1, 1fr); }
  .exercises-layout { flex-direction: column; }
  .filters { width: 100%; }
  .group-list { flex-direction: row; flex-wrap: wrap; }
  .filter-btn { flex: 1 1 48%; }
  .bodymap-container svg { max-width: 250px; }
  .exercise-search input { 
    min-width: 100%;
    width: 100%;
    padding: 0.8rem 1rem;
  }
  
  /* Additional mobile fixes to prevent horizontal scroll */
  .explore__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section__container {
    padding: 3rem 1rem;
  }
  
  nav {
    gap: 1rem;
    padding: 1rem;
  }
}

/* Legacy styles removed - no longer used */

/* ============================================
   CRITICAL UX FIXES
   ============================================ */

/* 1. STICKY NAVBAR - Duplicate removed, using main nav definition above */

nav.scrolled {
  padding: 1rem 1.5rem !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* 2. MOBILE MENU TOGGLE BUTTON */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10002;
  position: relative;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-toggle:hover {
  border-color: var(--secondary-color);
  background: rgba(16, 185, 129, 0.1);
}

/* 3. MOBILE MENU STYLES */
@media (max-width: 1024px) {
  nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-sticky, 200) !important;
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 10002;
  }
  
  .nav__links {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(15, 23, 46, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 5.5rem 0 2rem 0 !important;
    gap: 0 !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    border-right: 1px solid rgba(16, 185, 129, 0.15);
  }
  
  .nav__links.active {
    transform: translateX(0);
  }
  
  .nav__links .link {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    margin: 0;
  }
  
  .nav__links .link a {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0;
    margin: 0;
  }
  
  .nav__links .link a:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: none;
  }
  
  .nav__dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    scale: 1 !important;
    background: rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 0.5rem 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav__dropdown.active .nav__dropdown-menu {
    max-height: 600px;
  }
  
  .nav__dropdown > a {
    position: relative;
  }
  
  .nav__dropdown > a i:last-child {
    margin-left: auto;
  }
  
  .nav__dropdown.active > a i:last-child {
    transform: rotate(180deg);
  }
  
  .nav__dropdown-menu a {
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    font-size: 0.95rem;
    margin: 0;
  }
  
  .nav__dropdown-menu a:hover {
    transform: none;
    padding-left: 3.25rem;
  }
  
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  
  .nav__logo {
    flex: 1;
  }
  
  .nav-logo-text {
    font-size: 1.75rem !important;
  }
  
  #navAuthButtons {
    order: 3;
  }
  
  .theme-toggle-btn {
    order: 2;
  }
  
  .nav-support-btn {
    display: none;
  }
}

/* 4. FIX HARD-CODED WIDTHS */
#postButton {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
}

.section__container {
  width: 100%;
  padding: 6rem clamp(1rem, 4vw, 2rem);
}

/* 5. TOUCH-FRIENDLY BUTTONS */
.btn,
button:not(.mobile-menu-toggle),
a.btn,
.hero-btn,
.workout-btn {
  min-height: 48px;
  min-width: auto;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  margin: 0;
  -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
  touch-action: manipulation;
}

.theme-toggle-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem;
  margin: 0;
}


@media (max-width: 768px) {
  .btn,
  .hero-btn {
    min-height: 48px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .theme-toggle-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem;
  }
}

/* 6. FOCUS STATES */
*:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* 7. RESPONSIVE TYPOGRAPHY */
.section__header {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

body {
  font-size: clamp(0.9rem, 2vw, 1rem);
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* 8. SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky nav */
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* 9. FIXED ELEMENTS SAFE AREA */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
}

/* 10. LOADING STATES */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

