/**
 * J-Corp Style Menu - Left Menu + Right Submenu Layout
 */

/* Hamburger Icon */
.jcorp-hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  z-index: 1002;
}

.jcorp-hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.jcorp-hamburger span:nth-child(1) {
  top: 0px;
}

.jcorp-hamburger span:nth-child(2) {
  top: 10px;
}

.jcorp-hamburger span:nth-child(3) {
  top: 20px;
}

/* Hamburger Animation when active */
.jcorp-hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
  background: white;
}

.jcorp-hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.jcorp-hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
  background: white;
}

/* Desktop - White hamburger */
@media (min-width: 992px) {
  .jcorp-hamburger span {
    background: white;
  }
  
  .jcorp-hamburger.active span:nth-child(1),
  .jcorp-hamburger.active span:nth-child(3) {
    background: white;
  }
}

/* Full Screen Overlay Menu */
.jcorp-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.98);
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
}

.jcorp-menu-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Menu Container */
.jcorp-menu-container {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
}

.jcorp-menu-content {
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 80px);
  transform: translateY(-50px);
  transition: transform 0.4s ease;
}

.jcorp-menu-overlay.active .jcorp-menu-content {
  transform: translateY(0);
}

/* J-Corp Style Layout: Left + Right */
.jcorp-menu-wrapper {
  display: flex;
  min-height: calc(100vh - 80px);
  gap: 60px;
  padding-bottom: 40px;
}

/* Left Side: Main Menu */
.jcorp-menu-left {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jcorp-main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jcorp-main-item {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.4s forwards;
}

.jcorp-main-item:nth-child(1) { animation-delay: 0.1s; }
.jcorp-main-item:nth-child(2) { animation-delay: 0.2s; }
.jcorp-main-item:nth-child(3) { animation-delay: 0.3s; }
.jcorp-main-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.jcorp-main-link {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 15px 0;
  border-left: 4px solid transparent;
  padding-left: 20px;
  transition: all 0.3s ease;
}

.jcorp-main-link:hover,
.jcorp-main-item.active .jcorp-main-link {
  color: #00b4d8;
  border-left-color: #00b4d8;
  padding-left: 30px;
}

/* Right Side: Submenu Panels */
.jcorp-menu-right {
  flex: 1;
  position: relative;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 20px;
}

/* Custom scrollbar for menu */
.jcorp-menu-right::-webkit-scrollbar,
.jcorp-menu-overlay::-webkit-scrollbar {
  width: 8px;
}

.jcorp-menu-right::-webkit-scrollbar-track,
.jcorp-menu-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.jcorp-menu-right::-webkit-scrollbar-thumb,
.jcorp-menu-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.jcorp-menu-right::-webkit-scrollbar-thumb:hover,
.jcorp-menu-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.jcorp-submenu-panel {
  position: absolute;
  top: 0;
  left: 40px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 0;
  min-height: 100%;
}

.jcorp-submenu-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.jcorp-submenu-section {
  margin-bottom: 40px;
}

.jcorp-submenu-title {
  color: #00b4d8;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jcorp-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jcorp-submenu-children {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 20px;
  margin-top: 5px;
}

.jcorp-submenu-child {
  margin-bottom: 5px;
}

.jcorp-submenu-child-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

.jcorp-submenu-child-link:hover {
  color: #00b4d8 !important;
  padding-left: 10px;
}

.jcorp-submenu-item {
  margin-bottom: 8px;
}

.jcorp-submenu-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  padding-left: 15px;
}

.jcorp-submenu-link:hover {
  color: #fff;
  border-left-color: #00b4d8;
  padding-left: 20px;
}

/* Language Switcher */
.jcorp-menu-language {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 20px;
}

.jcorp-menu-language a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.jcorp-menu-language a:hover,
.jcorp-menu-language a.active {
  color: #00b4d8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .jcorp-menu-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .jcorp-menu-left {
    flex: none;
  }
  
  .jcorp-main-link {
    font-size: 20px;
  }
  
  .jcorp-menu-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 20px;
  }
  
  .jcorp-submenu-panel {
    position: relative;
    left: 0;
    height: auto;
    justify-content: flex-start;
  }
}

/* Prevent body scroll when menu is open */
body.jcorp-menu-open {
  overflow: hidden !important;
}

/* Alternative scroll prevention for html element */
html.jcorp-menu-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* J-Corp Search Styling - Simple underlined style */
.jcorp-search-item {
  margin-top: 20px;
}

.jcorp-search-wrapper {
  padding: 15px 0;
  padding-left: 20px;
}

.jcorp-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jcorp-search-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 18px;
  padding: 8px 0;
  outline: none;
  font-family: inherit;
  width: 200px;
  transition: border-color 0.3s ease;
}

.jcorp-search-input:focus {
  border-bottom-color: #00b4d8;
}

.jcorp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.jcorp-search-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.jcorp-search-button:hover {
  color: #00b4d8;
}

.jcorp-search-button svg {
  width: 18px;
  height: 18px;
}