/* 
 * Navigation Styles - High Specificity Version
 */

/* Main Navbar - Increased Specificity */
html body .navbar,
.navbar,
body .navbar {
  background-color: transparent !important;
  padding: 1rem 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Logo Container */
html body .navbar-brand,
.navbar-brand,
body .navbar-brand {
  align-items: center !important;
  display: flex !important;
  margin-right: 1rem !important;
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
}

/* Mobile navbar brand - justify logo and hamburger to opposite sides */
@media screen and (max-width: 1023px) {
  html body .navbar-brand,
  .navbar-brand,
  body .navbar-brand {
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1rem !important;
  }
  
  /* Keep logo at proper size on mobile */
  html body .navbar-brand .navbar-item,
  .navbar-brand .navbar-item,
  body .navbar-brand .navbar-item {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    padding: 0.5rem !important;
  }
}

/* Extra small mobile adjustments */
@media screen and (max-width: 480px) {
  html body .navbar-brand,
  .navbar-brand,
  body .navbar-brand {
    padding: 0 0.75rem !important;
  }
  
  html body .navbar-brand .navbar-item,
  .navbar-brand .navbar-item,
  body .navbar-brand .navbar-item {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Logo SVG - Fix for missing logo - LARGER SIZE - FILL CONTAINER */
html body .navbar-brand svg,
.navbar-brand svg,
body .navbar-brand svg,
.navbar-item svg {
  width: 100% !important;
  height: 100% !important;
  min-width: 60px !important;
  min-height: 60px !important;
  transition: transform 0.2s ease !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain !important;
  position: relative !important;
  max-width: none !important;
}

/* Fix for logo circle fill color */
html body .navbar-brand svg #background,
.navbar-brand svg #background,
body .navbar-brand svg #background,
svg #background {
  fill: #fff !important;
}

/* Fix for logo vectors */
html body .navbar-brand svg #vectors,
.navbar-brand svg #vectors,
body .navbar-brand svg #vectors,
svg #vectors {
  fill: #000 !important;
}

/* Logo Hover Effect */
html body .navbar-brand:hover svg,
.navbar-brand:hover svg,
body .navbar-brand:hover svg {
  transform: scale(1.1) !important;
}

/* Navbar Menu */
html body .navbar-menu,
.navbar-menu,
body .navbar-menu {
  background-color: transparent !important;
}

/* Desktop navbar items (only visible on desktop) */
@media screen and (min-width: 1024px) {
  html body .navbar-menu,
  .navbar-menu,
  body .navbar-menu {
    display: flex !important;
  }
  
  /* Hide hamburger on desktop */
  html body .navbar-burger,
  .navbar-burger,
  body .navbar-burger {
    display: none !important;
  }
}

/* Navbar Items */
html body .navbar-item,
.navbar-item,
body .navbar-item {
  color: #cccccc !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
  background-color: transparent !important;
  padding: 0.5rem 1rem !important;
}

html body .navbar-item:hover,
.navbar-item:hover,
body .navbar-item:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Buttons in Navbar */
html body .navbar-item.button.is-rounded,
.navbar-item.button.is-rounded,
body .navbar-item.button.is-rounded {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #cccccc !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

html body .navbar-item.button.is-rounded:hover,
.navbar-item.button.is-rounded:hover,
body .navbar-item.button.is-rounded:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Back Button */
html body .back-button,
.back-button,
body .back-button {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #cccccc !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  margin-right: 1rem !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  display: none !important;
}

html body .back-button:hover,
.back-button:hover,
body .back-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

html body .back-button.is-visible,
.back-button.is-visible,
body .back-button.is-visible {
  display: flex !important;
  align-items: center !important;
}

/* Hamburger Menu - ONLY VISIBLE ON MOBILE */
html body .navbar-burger,
.navbar-burger,
body .navbar-burger {
  color: #cccccc !important;
  height: 4rem !important;
  width: 4rem !important;
  margin-left: auto !important;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  display: none !important; /* Hidden by default, shown on mobile */
}

html body .navbar-burger span,
.navbar-burger span,
body .navbar-burger span {
  height: 2px !important;
  width: 20px !important;
  background-color: #cccccc !important;
  display: block !important;
  position: absolute !important;
  left: calc(50% - 10px) !important;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
}

html body .navbar-burger span:nth-child(1),
.navbar-burger span:nth-child(1),
body .navbar-burger span:nth-child(1) {
  top: calc(50% - 8px) !important;
}

html body .navbar-burger span:nth-child(2),
.navbar-burger span:nth-child(2),
body .navbar-burger span:nth-child(2) {
  top: 50% !important;
}

html body .navbar-burger span:nth-child(3),
.navbar-burger span:nth-child(3),
body .navbar-burger span:nth-child(3) {
  top: calc(50% + 6px) !important;
}

html body .navbar-burger:hover span,
.navbar-burger:hover span,
body .navbar-burger:hover span {
  background-color: #ffffff !important;
}

html body .navbar-burger.is-active span:nth-child(1),
.navbar-burger.is-active span:nth-child(1),
body .navbar-burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg) !important;
}

html body .navbar-burger.is-active span:nth-child(2),
.navbar-burger.is-active span:nth-child(2),
body .navbar-burger.is-active span:nth-child(2) {
  opacity: 0 !important;
}

html body .navbar-burger.is-active span:nth-child(3),
.navbar-burger.is-active span:nth-child(3),
body .navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg) !important;
}

/* Mobile Navigation */
@media screen and (max-width: 1023px) {
  /* Show hamburger on mobile */
  html body .navbar-burger,
  .navbar-burger,
  body .navbar-burger {
    display: block !important;
  }
  
  html body .navbar-menu,
  .navbar-menu,
  body .navbar-menu {
    display: none !important;
    background-color: rgba(18, 18, 18, 0.95) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    padding: 1rem 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  html body .navbar-menu.is-active,
  .navbar-menu.is-active,
  body .navbar-menu.is-active {
    display: block !important;
    animation: fadeIn 0.2s ease-out !important;
  }
  
  html body .navbar-start,
  .navbar-start,
  body .navbar-start,
  html body .navbar-end,
  .navbar-end,
  body .navbar-end {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem !important;
  }
  
  html body .navbar-item,
  .navbar-item,
  body .navbar-item {
    padding: 0.75rem 1.5rem !important;
  }
  
  html body .navbar-item.button.is-rounded,
  .navbar-item.button.is-rounded,
  body .navbar-item.button.is-rounded {
    margin: 0.5rem 1.5rem !important;
    display: block !important;
    text-align: center !important;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} 

/* Mobile Hero Layout Fixes */
@media screen and (max-width: 1023px) {
  /* Hero section mobile layout */
  .hero .container {
    padding: 0 1rem;
  }

  .hero .columns {
    margin: 0;
    flex-direction: column;
  }

  /* Force mobile order to work - override drag-and-swap */
  .hero .columns .image-column-base,
  .hero .columns.is-swapped .image-column-base {
    order: 0 !important;
    margin-bottom: 1rem;
  }
  
  .hero .columns .nav-column-base,
  .hero .columns.is-swapped .nav-column-base {
    order: 1 !important;
    margin-bottom: 1rem;
    transform: none !important;
    position: relative;
  }

  .navigation-card-container {
    transform: none !important;
    position: relative;
  }

  .navigation-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: auto;
  }

  .navigation-card .card-content {
    padding: 1rem;
    min-height: auto;
  }

  .featured-image-container {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
  }

  .featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Disable dragging and hover effects on mobile */
  .nav-column-base,
  .image-column-base {
    cursor: default !important;
    pointer-events: auto;
  }

  .nav-column-base * {
    cursor: default !important;
  }
}