/**
 * Super Sky App - Service Tooltip Styles
 * 
 * Styles for service name tooltips that provide detailed information
 * about each weather service when hovering over service names.
 */

/* Tooltip container - positioned relative to trigger element */
.service-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

/* Tooltip content - hidden by default */
.service-tooltip .tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  
  /* Styling */
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  text-align: left;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 300px;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  
  /* Smooth transition */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Tooltip arrow */
.service-tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Show tooltip on hover */
.service-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .service-tooltip .tooltip-content {
    max-width: 280px;
    min-width: 200px;
    font-size: 12px;
    padding: 10px 14px;
    
    /* Position above on mobile to avoid viewport issues */
    bottom: 130%;
  }
  
  /* Adjust positioning for mobile */
  .service-tooltip .tooltip-content {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .service-tooltip .tooltip-content {
    max-width: 250px;
    min-width: 180px;
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* Ensure tooltips don't interfere with other elements */
.service-tooltip .tooltip-content {
  pointer-events: none;
}

/* Special styling for service names in tooltips */
.service-tooltip .tooltip-content strong {
  color: #4CAF50;
  font-weight: 600;
}

/* Paragraph spacing in tooltip content */
.service-tooltip .tooltip-content p {
  margin: 0 0 8px 0;
}

.service-tooltip .tooltip-content p:last-child {
  margin-bottom: 0;
}