﻿/* Etichetta di aiuto verticale */
.help-label {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-right: env(safe-area-inset-right, 0px);
}

@media (max-width: 768px) {
    .help-label {
        /* Aggiunge un ulteriore spazio di 5px oltre la safe area */
        padding-right: calc(5px + env(safe-area-inset-right, 0px));
    }
}

    /* Tab principale verticale */
    /*  writing-mode: vertical-rl; */
    /*  writing-mode: sideways-lr; */
    .help-tab {
        background: linear-gradient(135deg, #0e4e20 0%, #4fbfb4 100%);
        color: white;
        padding: 15px 8px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        border-radius: 8px 0 0 8px;
        font-weight: bold;
        font-size: 14px;
        letter-spacing: 1px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        border-right: none;
    }

    /* Contenuto espandibile */
    .help-content {
        position: absolute;
        right: 100%;
        top: 0;
        background: white;
        color: #333;
        padding: 20px 20px 17px 20px;
        border-radius: 8px 0 0 8px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transform: translateX(20px);
        transition: all 0.3s ease;
        border: 2px solid #ee8741;
        font-size: 14px;
        min-width: 200px;
    }

        .help-content::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -10px;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid #ee8741;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
        }

    /* Effetto hover */
    .help-label:hover .help-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .help-label:hover .help-tab {
        background: linear-gradient(135deg, #4fbfb4 0%, #0e4e20 100%);
        transform: scale(1.05);
    }

    /* Link cliccabile */
    .help-link {
        color: #ee8741;
        text-decoration: none;
        font-weight: bold;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s ease;
    }

        .help-link:hover {
            border-bottom-color: #ee8741;
        }

    /* Responsive */
    @media (max-width: 768px) {
        .help-tab {
            padding: 12px 6px;
            font-size: 12px;
        }

        .help-content {
            padding: 15px;
            font-size: 12px;
            min-width: 180px;
        }
    }
