/* ============================================================================
   Zunko Delivery Platform - Guided Tour & Interactive Tutorial Engine
   Estilo Premium iFood: Botão Discreto de Ajuda + Spotlight Focalizador + Popover
   ============================================================================ */

/* 1. Botão Flutuante Discreto de Ajuda / Ativação do Tutorial */
.zunko-tutorial-btn {
    position: fixed;
    bottom: 78px;
    right: 18px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .zunko-tutorial-btn {
        bottom: 26px;
        right: 26px;
    }
}

.zunko-tutorial-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: #ffffff;
    color: #EA1D2C;
    border-color: rgba(234, 29, 44, 0.35);
    box-shadow: 0 8px 24px rgba(234, 29, 44, 0.2);
}

.zunko-tutorial-btn i {
    font-size: 15px;
    color: #EA1D2C;
    transition: transform 0.25s ease;
}

.zunko-tutorial-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.zunko-tutorial-btn .zunko-tutorial-btn-label {
    letter-spacing: -0.2px;
}

/* 2. Spotlight Escurecedor e Destaque da Área */
.zunko-tutorial-spotlight {
    position: fixed;
    z-index: 100001;
    pointer-events: none;
    border-radius: 14px;
    box-shadow: 0 0 0 3px #EA1D2C, 0 0 0 9999px rgba(15, 23, 42, 0.72), 0 0 35px rgba(234, 29, 44, 0.5);
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.3s ease;
}

/* 3. Popover Interativo com Informações do Passo */
.zunko-tutorial-popover {
    position: fixed;
    z-index: 100003;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    color: #1f2937;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    animation: zunkoPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zunkoPopIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zunko-tutorial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.zunko-tutorial-badge {
    background: #FEE2E2;
    color: #EA1D2C;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zunko-tutorial-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zunko-tutorial-close:hover {
    color: #111827;
    background: #f3f4f6;
}

.zunko-tutorial-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zunko-tutorial-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 16px 0;
}

.zunko-tutorial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.zunko-tutorial-skip {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.zunko-tutorial-skip:hover {
    color: #4b5563;
    text-decoration: underline;
}

.zunko-tutorial-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zunko-tutorial-btn-prev {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.zunko-tutorial-btn-prev:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.zunko-tutorial-btn-next {
    background: #EA1D2C;
    border: 1px solid #EA1D2C;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(234, 29, 44, 0.35);
}

.zunko-tutorial-btn-next:hover {
    background: #c81824;
    border-color: #c81824;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.45);
}
