/* Professional Theme - Global Styles */
/* Applied across all pages */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* ========== HEADER STYLES ========== */
header {
  background-color: var(--secondary, #2B2B2B);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.06);
}

.gym-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.highlight {
  color: var(--primary, #FFD700);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

nav ul li a:hover {
  color: var(--accent, #FFD700);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary, #FFD700);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  height: 3px;
  width: 26px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.login-btn,
.join-btn {
  background-color: var(--primary, #FFD700);
  color: white;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
}

.login-btn:hover,
.join-btn:hover {
  background-color: var(--accent, #FFB700);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* ========== FOOTER STYLES ========== */
footer {
  text-align: center;
  background: var(--secondary, #2B2B2B);
  color: white;
  padding: 30px 20px;
  margin-top: auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.footer-logo {
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.footer-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-logo:hover img {
  transform: scale(1.15) rotate(10deg);
}

footer .social {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

footer .social a:hover {
  background: var(--primary, #FFD700);
  transform: translateY(-3px);
}

footer .social img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

footer .social a:hover img {
  transform: scale(1.15);
}

/* ========== MODAL STYLES ========== */
.join-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,1);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.join-modal.active {
  display: flex;
  opacity: 1;
}

.join-modal.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.join-card {
    color: #fff !important;
  background: rgba(30,30,30,0.98);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 14px;
  width: 380px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  border: 1px solid rgba(255,255,255,0.8);
}

.join-card h2 {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 700;
}

.join-card p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #fff !important;
  font-weight: 400 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  font-weight: 400;
}

.join-card input,
.join-card select {
  width: 100%;
  padding: 13px 14px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.join-card input:focus,
.join-card select:focus {
  border-color: var(--primary, #FFD700);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
  outline: none;
}

.join-card button {
  width: 100%;
  background: var(--primary, #FFD700);
  color: white;
  padding: 13px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.join-card button:hover {
  background: var(--accent, #FFB700);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.close-join {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #999;
  font-weight: 600;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.close-join:hover {
  color: #333;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== CHATBOT STYLES ========== */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary, #FFD700);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  background: var(--accent, #FFB700);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transform: scale(1.08);
}

.chatbot-box {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 340px;
  max-height: 450px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  border: 1px solid rgba(0,0,0,0.05);
}

.chatbot-header {
  background: var(--primary, #FFD700);
  color: #fff;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.4;
  font-size: 13px;
}

.bot {
  background: #f1f1f1;
  align-self: flex-start;
  color: #333;
}

.user {
  background: var(--primary, #FFD700);
  color: #fff;
  align-self: flex-end;
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  padding: 12px;
  gap: 6px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.chatbot-options button {
  flex: 1;
  background: var(--secondary, #2B2B2B);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 80px;
}

.chatbot-options button:hover {
  background: var(--primary, #FFD700);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  header {
    padding: 12px 20px;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    background: #333;
    padding: 15px;
    gap: 10px;
  }

  nav ul li a {
    padding-bottom: 0;
  }

  nav ul li a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  nav.active {
    display: block;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 16px;
  }

  .gym-name {
    font-size: 22px;
  }

  .highlight {
    font-size: 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .join-card {
    width: 90%;
    padding: 30px;
  }

  .chatbot-box {
    width: 100%;
    max-width: 90%;
    right: 5%;
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px 12px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .gym-name {
    font-size: 18px;
  }

  nav ul {
    gap: 15px;
  }

  .login-btn,
  .join-btn {
    padding: 9px 16px;
    font-size: 12px;
  }
}
