/**
 * Term Hint Popup Styles
 * 
 * @package ProStoneManager
 * @since 2.5.0
 */

/* ===== Hint Icon ===== */
.psm-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.psm-hint-icon:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.psm-hint-icon i,
.psm-hint-icon svg {
    transition: all 0.3s ease;
}

/* ===== Hint Button ===== */
.psm-hint-button {
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.psm-hint-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.psm-hint-button:active {
    transform: translateY(0);
}

/* ===== Hint Link ===== */
.psm-hint-link {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.psm-hint-link:hover {
    text-decoration: none;
}

/* ===== Wrapper ===== */
.psm-hint-wrapper {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* ===== Animation ===== */
@keyframes psmHintPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.psm-hint-trigger.psm-pulse {
    animation: psmHintPulse 2s infinite;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .psm-hint-icon {
        font-size: 20px;
    }
    
    .psm-hint-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .psm-hint-icon {
        font-size: 18px;
    }
    
    .psm-hint-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===== Accessibility ===== */
.psm-hint-trigger:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.psm-hint-trigger:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Inline Hint Icon (for ProductInfoWidget labels) ===== */
.psm-hint-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    font-size: 0.85em;
    color: #0073aa;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    vertical-align: middle;
}

.psm-hint-inline:hover {
    opacity: 1;
    color: #005a87;
    transform: scale(1.15);
    text-decoration: none;
}

.psm-hint-inline i {
    transition: inherit;
}

/* RTL Support for inline hint */
[dir="rtl"] .psm-hint-inline {
    margin-left: 0;
    margin-right: 5px;
}

/* ===== RTL Support ===== */
[dir="rtl"] .psm-hint-wrapper {
    direction: rtl;
}
