/**
 * Enhanced styling for tooltips in RevoltXData
 * Makes tooltips more visible and interactive
 */

/* Make info icons more prominent */
.info-icon {
    position: relative;
    display: inline-block !important;
    margin-left: 5px;
    cursor: help;
    color: #0d6efd;
    font-size: 1.25em;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 999;
    padding: 2px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.4);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Enhance tooltip text styling */
.tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 15px;
    position: absolute;
    z-index: 1001;
    bottom: 150%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translateY(10px);
    line-height: 1.4;
    display: block !important;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #0d6efd transparent transparent transparent;
}

.info-icon:hover .tooltiptext {
    visibility: visible !important;
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

/* Different tooltip styles for subcategories */
.subcategory-name .info-icon .tooltiptext {
    background-color: #6c757d;
    width: 200px;
    margin-left: -100px;
}

.subcategory-name .info-icon .tooltiptext::after {
    border-color: #6c757d transparent transparent transparent;
}

/* Highlight protection mode panels */
.privacy-protection-mode {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Make protection mode options more obvious */
.privacy-protection-mode .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.privacy-protection-mode .btn-group label {
    transition: transform 0.2s, box-shadow 0.2s;
}

.privacy-protection-mode .btn-group label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add pulsing animation to draw attention to tooltips */
@keyframes pulse-subtle {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Apply animation only on initial page load to guide users */
.category-name .info-icon {
    animation: pulse-subtle 2s ease-in-out 3;
}