/**
 * DevBrothers Content Tooltips - Frontend Styles
 */

.dbct-tooltip-wrapper {
    position: absolute;
    z-index: 999999;
    display: none;
    pointer-events: none;
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.5;
}

.dbct-tooltip-wrapper.show {
    display: block;
}

.dbct-tooltip-content {
    background-color: #333333;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.dbct-tooltip-content::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.dbct-tooltip-wrapper.position-top .dbct-tooltip-content::before {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-color: #333333 transparent transparent transparent;
}

.dbct-tooltip-wrapper.position-bottom .dbct-tooltip-content::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #333333 transparent;
}

.dbct-tooltip-wrapper.position-left .dbct-tooltip-content::before {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #333333;
}

.dbct-tooltip-wrapper.position-right .dbct-tooltip-content::before {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-color: transparent #333333 transparent transparent;
}

.dbct-tooltip-wrapper.no-arrow .dbct-tooltip-content::before {
    display: none;
}

.dbct-tooltip-trigger {
    position: relative;
}

/* Fade */
.dbct-tooltip-wrapper.animation-fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dbct-tooltip-wrapper.animation-fade.show {
    opacity: 1;
}

/* Slide */
.dbct-tooltip-wrapper.animation-slide {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dbct-tooltip-wrapper.animation-slide.position-bottom {
    transform: translateY(10px);
}

.dbct-tooltip-wrapper.animation-slide.position-left {
    transform: translateX(-10px);
}

.dbct-tooltip-wrapper.animation-slide.position-right {
    transform: translateX(10px);
}

.dbct-tooltip-wrapper.animation-slide.show {
    opacity: 1;
    transform: translate(0, 0);
}

/* Scale */
.dbct-tooltip-wrapper.animation-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dbct-tooltip-wrapper.animation-scale.show {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .dbct-tooltip-wrapper {
        max-width: 250px;
        font-size: 13px;
    }
}
