/* Mobile Touch Fix CSS for iPhone and iOS devices */

/* Remove iOS tap highlights and improve touch behavior */
*, *:before, *:after {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure clickable elements are properly styled for touch */
[onclick], 
button, 
.btn, 
.tablinks, 
.tab-link, 
.accordion, 
[role="button"],
.copy-address-btn,
.StakeTablinks,
.faq_tab_links,
.project_v2_tab_links,
.V3_project_tab_links,
.V3_our_partnars_tab_links {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
  /* Ensure minimum touch target size for iOS */
  min-height: 54px;
  min-width: 44px;
  /* Better touch feedback */
  transition: opacity 0.2s ease;
}

/* Hover and active states for better feedback */
[onclick]:hover,
[onclick]:active,
button:hover,
button:active,
.btn:hover,
.btn:active {
  opacity: 0.8;
}

/* Specific fixes for tab elements */
.tablinks,
.StakeTablinks,
.faq_tab_links,
.project_v2_tab_links,
.V3_project_tab_links,
.V3_our_partnars_tab_links {
  position: relative;
  display: inline-block;
  /* Ensure tabs are large enough for touch */
  padding: 12px 16px;
}

/* Accordion fixes */
.accordion {
  position: relative;
  /* Ensure accordion headers are touch-friendly */
  padding: 15px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

/* Copy button specific fixes */
.copy-address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-address-btn:hover,
.copy-address-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.copy-address-btn.copied {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specific styles */
  [onclick] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  
  /* Ensure buttons work properly on iOS */
  button,
  [onclick],
  .btn {
    cursor: pointer;
  }
  
  /* Fix for iOS double-tap zoom on buttons */
  button,
  input[type="button"],
  input[type="submit"],
  [onclick] {
    touch-action: manipulation;
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  /* Increase touch targets on mobile */
  [onclick],
  button,
  .btn,
  .tablinks,
  .accordion {
    min-height: 58px;
    padding: 12px 16px;
  }
  
  /* Better spacing for touch targets */
  .tablinks + .tablinks,
  .faq_tab_links + .faq_tab_links {
    margin-left: 4px;
  }
}

/* Fix for carousel navigation buttons */
.prev,
.next,
.project_clasic_prev,
.project_clasic_next {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Prevent text selection on interactive elements */
.tablinks,
.accordion,
.btn,
[onclick] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
} 