/* Modern Mobile Navigation CSS - Flirtmaatje Style */

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 70%;
  height: 100vh;
  background: #1a1a1a;
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow: hidden;
}

.mobile-sidebar.active {
  right: 0;
}

/* Sidebar Header */
.mobile-sidebar-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 20px;
  border-bottom: none;
}

.mobile-sidebar-title {
  display: none;
}

.mobile-close-btn {
  border: none;
  background: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.mobile-close-btn:hover {
  color: #fff;
}

/* Navigation Section */
.mobile-nav-section {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #2a2a2a;
}

.mobile-nav-item:first-child {
  border-top: none;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-item:hover {
  background-color: #252525;
  color: #fff;
}

.mobile-nav-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.mobile-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}

.mobile-nav-icon.envelope {
  color: #81B624;
}

.mobile-nav-icon.heart {
  color: var(--site-primary-color);
}

.mobile-nav-icon.coins {
  color: #EDAE06;
}

.mobile-nav-separator {
  display: none;
}

/* Badge and Counter */
.mobile-nav-badge {
  background: #81B624;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  flex-shrink: 0;
}

.mobile-nav-counter {
  font-size: 14px;
  color: #888;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Dropdown Arrow */
.mobile-nav-chevron {
  font-size: 12px;
  color: #888;
  transition: transform 0.3s;
  margin-left: auto;
}

.mobile-nav-item.expanded .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* Footer */
.mobile-nav-footer {
  margin-top: auto;
  padding: 16px 16px 20px;
  border-top: 1px solid #2a2a2a;
}

.mobile-credits-text {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.mobile-nav-btn {
  width: 100%;
  border-radius: 8px;
  border: none;
  padding: 4px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.mobile-nav-btn:hover {
  transform: translateY(-1px);
}

.mobile-nav-btn-outline {
  background: #f5f5f5;
  color: #4A5565;
  margin-bottom: 12px;
}

.mobile-nav-btn-outline:hover {
  background: #fff;
  color: #4A5565;
}

.mobile-nav-btn-outline i {
  color: #4A5565;
}

.mobile-nav-btn-primary {
  background: var(--site-primary-color);
  color: #fff;
}

.mobile-nav-btn-primary:hover {
  background: var(--site-primary-color);
  color: #fff;
}

.mobile-nav-btn i {
  font-size: 16px;
}

/* Mobile Menu Toggle Button - Override Bootstrap navbar toggle */
@media (max-width: 768px) {
  /* Make the bootstrap navbar-toggle trigger the new mobile sidebar */
  .navbar-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 1000;
    background: transparent;
    border: none;
    padding: 8px 15px 8px 10px;
    margin-right: 10px;
    margin: 0;
  }
  
  .navbar-toggle .menu-text {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 14px;
  }
  
  .navbar-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 14px;
  }
  
  .navbar-toggle .icon-bar {
    display: block !important;
    width: 19px;
    height: 2px;
    background-color: #FFFFFF !important;
    border-radius: 0;
    margin: 0;
  }
  
  /* Override default navbar collapse behavior on mobile */
  .navbar-collapse {
    display: none !important;
  }
  
  /* Reduce header height to minimal */
  #header {
    position: relative;
    min-height: 10px;
    padding: 0;
    display: flex;
    align-items: center;
  }
  
  #header-wrapp {
    min-height: 10px;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    align-items: center;
  }
  
  #header-wrapp .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  
  #header.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }
  
  #header .row {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
  }
  
  #logo {
    display: flex;
    align-items: center;
    padding: 0;
  }
  
  .navbar {
    min-height: 10px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
  }
  
  .navbar-header {
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: auto;
    position: relative;
  }
  
  .navbar .container-fluid {
    width: 100%;
    padding: 0;
  }

  /* Mobile matches grid – 2 cards per row, modern style */
  #members-search {
    margin: 0;
  }

  #members-search .profile-small {
    padding: 6px;
  }

  #members-search .profile-small-inner {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 180px;
    min-width: 160px;
    margin: 0 auto 8px;
    padding-bottom: 10px;
  }

  #members-search .profile-image img {
    width: 100%;
    height: 130px;
    min-height: 120px;
    display: block;
    object-fit: cover;
  }

  #members-search .visible-xs.profile-text {
    padding: 8px 10px 4px;
  }

  #members-search .visible-xs.profile-text .profile-name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
  }

  #members-search .visible-xs.profile-text .profile-name .profile-age {
    margin-left: 4px;
    font-weight: 400;
    color: #4b5563;
  }

  #members-search .visible-xs.profile-text .profile-info {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  #members-search .visible-xs.profile-text .profile-info .profile-distance i {
    font-size: 11px;
    margin-right: 2px;
  }

  #members-search .hidden-xs.profile-bottom {
    display: none !important;
  }

  /* Online badge (reuses existing .online element) */
  #members-search .online {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #81B624;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
  }
}

@media (max-width: 568px) {
  .mobile-sidebar {
    width: 70%;
    max-width: 70%;
  }
  
  /* Keep positioning consistent on smaller screens */
  .navbar-toggle {
    top: 50% !important;
    right: 0 !important;
    padding: 8px 15px 8px 10px !important;
    margin-right: 10px !important;
  }
  
  .navbar-toggle .menu-text {
    font-size: 13px;
  }
  
  .navbar-toggle .icon-bar {
    width: 19px !important;
    height: 2px !important;
  }
}

/* Smooth scrolling for nav section only */
.mobile-nav-section::-webkit-scrollbar {
  width: 0;
  display: none;
}

.mobile-nav-section {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Prevent body scroll when sidebar is open */
body.mobile-sidebar-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

body.mobile-sidebar-open #container {
  overflow: hidden !important;
}

html.mobile-sidebar-open {
  overflow: hidden !important;
}

/* Animation for nav items - Subtle fade in */
.mobile-sidebar.active .mobile-nav-item {
  animation: fadeIn 0.2s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slight staggered animation delay for nav items */
.mobile-sidebar.active .mobile-nav-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(2) { animation-delay: 0.08s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(3) { animation-delay: 0.11s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(4) { animation-delay: 0.14s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(5) { animation-delay: 0.17s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(6) { animation-delay: 0.20s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(7) { animation-delay: 0.23s; }
.mobile-sidebar.active .mobile-nav-item:nth-child(8) { animation-delay: 0.26s; }

