/** 
 * DNT Tooltip System - Styles 
 * Autorskie style tooltipów z obsługą zmiennych CSS 
 */

/* ⭐ Główny element tooltip */
.dnt-tooltip {
    display:inline-block;
    width:16px;
    height:16px;
    background:var(--grey-light);
    color:var(--white);
    border-radius:50%;
    text-align:center;
    font-size:12px;
    font-weight:bold;
    cursor:help;
    margin-left:6px;
    line-height:16px;
    transition:all 0.2s ease;
    vertical-align:middle;
}

/* ⭐ Hover na głównym elemencie */
.dnt-tooltip:hover {
    background:var(--mark);
    transform:scale(1.1);
}

/* ⭐ Kontener tooltipa - teraz bez pointer-events:none */
.dnt-tooltip-content {
    position:absolute;
    background:var(--grey-darker);
    color:var(--white);
    padding:8px 12px;
    border-radius:6px;
    font-size:13px;
    font-family:var(--font-family-text);
    font-weight:400;
    max-width:280px;
    z-index:9999;
    box-shadow:0 4px 12px rgba(0,0,0,0.3);
    opacity:0;
    transform:translateY(-5px);
    transition:all 0.2s ease;
    line-height:1.4;
    word-wrap:break-word;
    cursor:default;
}

/* ⭐ Stan widoczny tooltipa */
.dnt-tooltip-content.dnt-tooltip-show {
    opacity:1;
    transform:translateY(0);
}

/* ⭐ Strzałka w tooltipie - domyślnie skierowana w dół (tooltip nad elementem) */
.dnt-tooltip-content .dnt-tooltip-arrow {
    position:absolute;
    width:0;
    height:0;
    border-left:6px solid transparent;
    border-right:6px solid transparent;
    border-top:6px solid var(--grey-darker);
    bottom:-6px;
    left:50%;
    transform:translateX(-50%);
}

/* ⭐ Strzałka gdy tooltip jest pod elementem */
.dnt-tooltip-content.dnt-tooltip-bottom .dnt-tooltip-arrow {
    bottom:auto;
    top:-6px;
    border-top:none;
    border-bottom:6px solid var(--grey-darker);
}

/* ⭐ Stylowanie treści HTML w tooltipie */
.dnt-tooltip-content strong {
    font-weight:600;
    color:var(--white);
}

.dnt-tooltip-content em {
    font-style:italic;
    color:var(--grey-light);
}

.dnt-tooltip-content code {
    background:rgba(255,255,255,0.1);
    padding:2px 4px;
    border-radius:3px;
    font-family:monospace;
    font-size:12px;
}

.dnt-tooltip-content br {
    line-height:1.6;
}

.dnt-tooltip-content ul,
.dnt-tooltip-content ol {
    margin:4px 0;
    padding-left:16px;
}

.dnt-tooltip-content li {
    margin:2px 0;
}

.dnt-tooltip-content a {
    color:var(--mark-light);
    text-decoration:underline;
    cursor:pointer;
}

.dnt-tooltip-content a:hover {
    color:var(--white);
}

/* ⭐ Responsywność dla tabletów */
@media (max-width:768px) {
    .dnt-tooltip-content {
        max-width:250px;
        font-size:12px;
        padding:6px 10px;
    }
    
    .dnt-tooltip {
        width:18px;
        height:18px;
        line-height:18px;
        font-size:13px;
        margin-left:8px;
    }
}

/* ⭐ Responsywność dla telefonów */
@media (max-width:480px) {
    .dnt-tooltip-content {
        max-width:220px;
        font-size:11px;
        padding:5px 8px;
    }
    
    .dnt-tooltip-content .dnt-tooltip-arrow {
        border-left-width:5px;
        border-right-width:5px;
        border-top-width:5px;
        bottom:-5px;
    }
    
    .dnt-tooltip-content.dnt-tooltip-bottom .dnt-tooltip-arrow {
        top:-5px;
        border-bottom-width:5px;
    }
}