/* Minimal top-right widget for Walkthrough */

.wt-popover {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 280px;
    background: linear-gradient(145deg, #2b2b36, #1c1c24);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(138, 43, 226, 0.2);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s ease;
    transform: translateY(-20px);
}

.wt-popover.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.wt-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wt-body p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: #c4c4cc;
    line-height: 1.5;
}

.wt-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wt-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.wt-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.wt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.wt-btn-primary {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: #fff;
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.4);
}

.wt-btn-primary:hover {
    background: linear-gradient(135deg, #e0aaff, #c77dff);
    color: #240046;
    box-shadow: 0 6px 15px rgba(199, 125, 255, 0.6);
    transform: translateY(-1px);
}

/* On mobile, center at the bottom or top */
@media (max-width: 768px) {
    .wt-popover {
        top: auto;
        bottom: 80px; /* Above bottom nav */
        right: 50%;
        transform: translate(50%, 20px);
        width: 90%;
        max-width: 350px;
    }
    
    .wt-popover.active {
        transform: translate(50%, 0);
    }
}

/* Specific Element Highlights */
.wt-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6), 0 0 0 2px rgba(138, 43, 226, 0.8) !important;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.wt-hub-prompt {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fix for modals opening while tutorial is active */
.pl-modal-backdrop {
    z-index: 100000 !important;
}
