/* Mobile Responsive Styles 

/* Root Variables for all breakpoints */
:root {
  --mobile-breakpoint: 480px;
  --tablet-breakpoint: 768px;
  --desktop-breakpoint: 1024px;
}


.container-responsive {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
}

.container-responsive.sm {
  max-width: 480px;
  margin: 0 auto;
}

.container-responsive.md {
  max-width: 768px;
  margin: 0 auto;
}

.container-responsive.lg {
  max-width: 1200px;
  margin: 0 auto;
}


body {
  width: 100%;
  overflow-x: hidden;
}


html {
  font-size: 16px;
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  h4 {
    font-size: 1.1rem !important;
  }
  
  p {
    font-size: 0.95rem;
  }
}


.row-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: -8px;
}

.col-responsive-full {
  flex: 0 0 100%;
  width: 100%;
}

@media (min-width: 481px) and (max-width: 768px) {
  .col-responsive-half {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
  }
}

@media (min-width: 769px) {
  .col-responsive-full {
    flex: 0 0 100%;
  }
  
  .col-responsive-half {
    flex: 0 0 calc(50% - 8px);
  }
  
  .col-responsive-third {
    flex: 0 0 calc(33.333% - 8px);
  }
  
  .col-responsive-quarter {
    flex: 0 0 calc(25% - 8px);
  }
}

/* Mobile navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 768px) {
  nav > ul {
    display: none;
  }
  
  nav > ul.mobile-menu {
    display: flex !important;
  }
  
  .nav-mobile {
    display: flex;
  }
  
  .menu-toggle {
    display: flex !important;
  }
  
  nav > ul {
    flex-direction: column;
    gap: 0 !important;
  }
  
  nav > ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  nav > ul li a {
    display: block;
    padding: 12px 16px !important;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive forms */
form {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
}

@media (max-width: 480px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  select,
  textarea {
    padding: 12px 10px;
    font-size: 16px;
  }
}

/* Responsive buttons */
.btn-responsive {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

@media (max-width: 480px) {
  .btn-responsive.full-width {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
}

/* Responsive tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .table-responsive table {
    font-size: 0.85rem;
  }
  
  .table-responsive td,
  .table-responsive th {
    padding: 8px;
  }
}

/* Responsive cards */
.card-responsive {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .card-responsive {
    padding: 12px;
    margin-bottom: 12px;
  }
}

/* Responsive header */
header {
  padding: 12px 16px !important;
}

@media (max-width: 480px) {
  header {
    padding: 10px 12px !important;
    flex-direction: column;
    gap: 12px;
  }
  
  .header-left {
    gap: 12px !important;
  }
  
  .header-left .gym-name {
    font-size: 18px !important;
  }
  
  .logo img {
    width: 48px !important;
    height: 48px !important;
  }
  
  nav ul {
    gap: 12px !important;
  }
  
  nav ul li a {
    font-size: 13px !important;
  }
}

/* Responsive footer */
footer {
  padding: 20px 16px !important;
}

@media (max-width: 480px) {
  footer {
    flex-direction: column;
    padding: 16px 12px !important;
    gap: 12px;
  }
  
  footer .social {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive modal/dialog */
.modal-responsive {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-responsive.active {
  display: flex;
}

.modal-responsive-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .modal-responsive-content {
    padding: 16px;
    max-width: 95%;
  }
}

/* Responsive flex utilities */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .flex-responsive-mobile-column {
    flex-direction: column;
  }
}

/* Responsive spacing utilities */
@media (max-width: 480px) {
  .p-responsive {
    padding: 12px !important;
  }
  
  .m-responsive {
    margin: 12px !important;
  }
  
  .p-responsive-lg {
    padding: 16px !important;
  }
}

/* Responsive display utilities */
@media (max-width: 480px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* Touch-friendly spacing */
@media (hover: none) and (pointer: coarse) {
  button,
  a.btn-responsive,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  select,
  textarea {
    min-height: 44px;
  }
}

/* Responsive orientation handling */
@media (orientation: landscape) and (max-height: 500px) {
  header {
    padding: 8px 12px !important;
  }
  
  body {
    margin: 0;
    padding: 0;
  }
}

/* Responsive sidebar/drawer */
.sidebar-responsive {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1999;
  overflow-y: auto;
}

.sidebar-responsive.active {
  transform: translateX(0);
}

@media (min-width: 769px) {
  .sidebar-responsive {
    position: static;
    width: auto;
    height: auto;
    transform: translateX(0);
  }
}

/* Responsive list */
.list-responsive {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-responsive li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 480px) {
  .list-responsive li {
    padding: 16px 0;
  }
}

/* Responsive section spacing */
section {
  padding: 32px 16px;
}

@media (max-width: 480px) {
  section {
    padding: 20px 12px;
  }
}

@media (min-width: 769px) {
  section {
    padding: 48px 24px;
  }
}
