/* VER2: Enhanced version styles for Megoldásaink panel and features */

/* VER2: Megoldásaink panel styling */
.megoldasaink-panel {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0px !important;
  padding: 10px 20px !important;
  margin: 5px 0 !important;
  text-align: left !important;
  
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 500px !important;
  max-width: none !important;
  height: auto !important;
  
  /* Override anchor styles */
  color: #2c3e50 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-transform: none !important;
  letter-spacing: 1px !important;
  
  /* VER2: Remove clickable behavior from main panel */
  cursor: default !important;
  
  /* VER2: Container positioning */
  position: relative !important;
  z-index: 3001 !important;
}

/* VER2: Remove hover effects from main panel */
.megoldasaink-panel:hover {
  background-color: transparent !important;
  color: #2c3e50 !important;
  text-decoration: none !important;
  border-radius: 0px !important;
}

.megoldasaink-panel:focus {
  background-color: transparent !important;
  color: #2c3e50 !important;
  text-decoration: none !important;
  outline: none !important;
  border-radius: 0px !important;
}

/* VER2: Container for the 4 separate tacho product images */
.tacho-products-container {
  display: flex !important;
  align-items: center !important; /* Changed from flex-start to center for vertical alignment */
  margin-left: 15px !important;
  position: relative !important;
  order: 2 !important;
}

/* VER2: AI product positioned next to the main products, like an index */
.ai-product {
  margin-left: 10px !important; /* Space between brackets and AI image */
  align-self: flex-start !important; /* Align to the top of the flex container */
  margin-top: -5px !important; /* Negative margin to raise it */
}

.ai-product img {
  width: auto !important;
  height: 30px !important;
}

/* VER2: Main products (1, 2, 3) side by side with square bracket border */
.main-products {
  display: flex !important;
  align-items: center !important;
  margin-left: 40px !important;
  margin-top: 20px !important;
  padding: 8px !important;
  border: none !important;
  border-radius: 0 !important;
  position: relative !important;
}

/* VER2: Left square bracket [ */
.main-products::before {
  content: "" !important;
  position: absolute !important;
  top: -4px !important;
  left: -4px !important;
  bottom: -4px !important;
  width: 20px !important;
  border: 2px solid #666666 !important;
  border-right: none !important;
}

/* VER2: Right square bracket ] */
.main-products::after {
  content: "" !important;
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  bottom: -4px !important;
  width: 20px !important;
  border: 2px solid #666666 !important;
  border-left: none !important;
}

.main-products img {
  width: auto !important;
  height: 60px !important;
  margin: 0 8px !important;
  flex-shrink: 0 !important;
}

.main-products img:first-child {
  margin-left: 0 !important;
}

.main-products img:last-child {
  margin-right: 0 !important;
}

/* VER2: Clickable product links with hover effects */
.main-products .product-link {
  display: inline-block !important;
  margin: 0 8px !important;
  transition: all 0.3s ease !important;
  border-radius: 5px !important;
  overflow: hidden !important;
}

.main-products .product-link:first-child {
  margin-left: 0 !important;
}

.main-products .product-link:last-child {
  margin-right: 0 !important;
}

.main-products .product-link:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.main-products .product-link img {
  margin: 0 !important;
  transition: all 0.3s ease !important;
}

.main-products .product-link:hover img {
  opacity: 0.9 !important;
}

/* VER2: AI product clickable link with hover effects */
.ai-product .ai-link {
  display: inline-block !important;
  transition: all 0.3s ease !important;
  border-radius: 0px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  line-height: 0 !important;
  vertical-align: top !important;
}

.ai-product .ai-link:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid #ffffff !important;
}

.ai-product .ai-link img {
  transition: all 0.3s ease !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ai-product .ai-link:hover img {
  opacity: 0.9 !important;
}

/* VER2: Override social icon constraints for product links */
.main-products .product-link,
.ai-product .ai-link {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  text-align: left !important;
  background-color: transparent !important;
}

/* VER2: Ensure images are not constrained by any parent sizing */
.main-products .product-link img,
.ai-product .ai-link img {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

/* VER2: Completely override social icon anchor constraints for our specific links */
.megoldasaink-panel .product-link,
.megoldasaink-panel .ai-link {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 8px !important;
  text-align: left !important;
  font-size: inherit !important;
  background-color: transparent !important;
  color: inherit !important;
}

/* VER2: Remove text selection for the panel but keep it clickable */
.megoldasaink-panel {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: rgba(239, 108, 0, 0.2) !important;
}

.megoldasaink-panel::-moz-selection {
  background: transparent !important;
}

.megoldasaink-panel::selection {
  background: transparent !important;
}

.megoldasaink-panel *::-moz-selection {
  background: transparent !important;
}

.megoldasaink-panel *::selection {
  background: transparent !important;
}

/* VER2: Error page corrections */
.error > .code {
  /*float: left; VER2 correction - moved to base_ver2.css */
  display: inline-block;
}

/* VER2: Contact footer styles - simple and targeted approach */
.nav-item.contact-footer a {
  color: #fff !important;
  background: #ff6f00 !important;
  padding: 6px 12px !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  font-size: 13px !important;
  display: inline-block !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
  border: 1px solid #fff !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s ease !important;
  line-height: 1.2 !important;
  /* VER2: Force the button to ignore inherited dimensions */
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: none !important;
  min-width: 220px !important;
  min-height: auto !important;
  margin-top: 12px;
}

.nav-item.contact-footer a:hover {
  background: #e65100 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  border-color: #ffd180 !important;
  transform: translateY(-1px) !important;
}

.nav-item.contact-footer i.fa-envelope {
  margin-right: 6px;
  font-size: 13px;
  vertical-align: middle;
}

/* VER2: Header no-scroll styles - hide/minimize Megoldásaink panel when header shrinks */
header.no-scroll .megoldasaink-panel {
  display: none !important;
}

/* VER2: Alternative approach - keep only text visible, hide images */
/*
header.no-scroll .megoldasaink-panel {
  height: auto !important;
  min-height: auto !important;
  padding: 5px 10px !important;
  margin: 0 !important;
}

header.no-scroll .megoldasaink-panel .tacho-products-container {
  display: none !important;
}
*/
