/* Tutorial Tooltip Styles */

.tutorial-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: 280px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tutorial-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Speech bubble arrow - above target */
.tutorial-tooltip.above::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #333;
    border-bottom: none;
}

.tutorial-tooltip.above::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
    border-bottom: none;
    z-index: 1;
}

/* Speech bubble arrow - below target */
.tutorial-tooltip.below::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: #333;
    border-top: none;
}

.tutorial-tooltip.below::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
    border-top: none;
    z-index: 1;
}

.tutorial-content {
    margin-bottom: 8px;
    color: #333;
}

.tutorial-quit {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #888;
    text-decoration: none;
}

.tutorial-quit:hover {
    color: #555;
    text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tutorial-tooltip {
        background: #2a2a2a;
        border-color: #555;
        color: #eee;
    }

    .tutorial-tooltip.above::before {
        border-top-color: #2a2a2a;
    }

    .tutorial-tooltip.below::before {
        border-bottom-color: #2a2a2a;
    }

    .tutorial-content {
        color: #eee;
    }

    .tutorial-quit {
        color: #888;
    }

    .tutorial-quit:hover {
        color: #aaa;
    }
}
