/* Mobile Sidemenu Styles - Max width 800px */

/* Hamburger button */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}


.hamburger-icon {
  display: block;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-nav-submenu {
  display: none;
}
.mobile-nav-submenu.active {
  display: block;
}


/* Mobile sidemenu overlay */
.mobile-sidemenu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidemenu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile sidemenu container */
.mobile-sidemenu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-sidemenu.active {
  transform: translateX(0);
}

/* Mobile sidemenu header */
.mobile-sidemenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  min-height: 87px;
  box-sizing: border-box;
}

.mobile-sidemenu-logo {
  height: 39px;
  width: auto;
}

.mobile-sidemenu-close {
  background: none;
  border: none;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  line-height: 1;
}


/* Mobile sidemenu content */
.mobile-sidemenu-content {
  padding: 0;
}

/* Navigation sections */
.mobile-nav-section {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.mobile-nav-toggle {
display: none;
}


.mobile-nav-title.active .mobile-nav-toggle {
  transform: rotate(45deg);
}

.mobile-nav-submenu {
  display: none;
  padding: 0 20px 20px 20px;
}

.mobile-nav-submenu.active {
  display: block;
}

.mobile-nav-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-submenu li {
  margin: 0;
}

.mobile-nav-submenu a {
  display: flex;
  flex-direction: row;
  padding: 12px 0;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
  transition: color 0.3s ease;
}
.no-underline a{
  border-bottom: none !important;
}
.puzzle-fix{
  width: 20px !important;
  height: 20px !important;
  margin-left: 8px;
}

.mobile-nav-submenu li:last-child a {
  border-bottom: none;
}

.mobile-header-nav h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #2F3DA2;
  font-weight: 600;
}

.mobile-header-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mobile-feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.mobile-feature-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
}

.mobile-feature-content p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.mobile-cta-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #2F3DA2;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}


.mobile-cta-button.bireysel {
  background: #00E1E0;
  color: #02131A;
}

/* App download section */
.mobile-app-section {
  padding: 24px 20px;
  text-align: start;
  border-top: 1px solid #e2e8f0;
}

.mobile-app-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.mobile-app-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

.mobile-app-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
}

.mobile-app-button {
  display: block;
  width: auto;
  height: 48px;
}

.mobile-app-button img {
  height: 100%;
  width: auto;
  border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 800px) {
  
.mobile-nav-toggle {
  display: inline-block;   /* make it visible */
  margin-left: 5px;        /* spacing from text */
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}
  /* Hide desktop navigation */
  .header nav,
  .header .auth-actions,
  .header .lang-switch {
    display: none;
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: block;
  }

  /* Mobile sidemenu elements are always block, visibility controlled by classes */

  /* Adjust header layout for mobile */
  .header .header-inner {
    padding: 0 16px;
    width: 100%;
    max-width: none;
  }

  .header .header-right {
    gap: 8px;
  }

  /* Mobile sidemenu responsive adjustments */
  .mobile-sidemenu {
    width: 100%;
  }
}

@media (max-width: 480px) {

  .mobile-app-buttons {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .mobile-app-button {
    width: 140px;
  }
}
