/* ============================================
   WOLF WIDGET FLUTUANTE
   Mascote do canto inferior direito com animação de piscar
   ============================================ */
.wolf-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(255, 42, 109, 0.4));
    user-select: none;
}

.wolf-widget:hover {
    transform: translateY(-4px) scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(255, 42, 109, 0.6));
}

.wolf-widget__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent, #ff2a6d);
    background: var(--bg-secondary, #1a1a2e);
}

/* Animação de piscar: troca imagem de olhos abertos para fechados */
@keyframes wolf-blink {
    0%, 92%, 100% {
        opacity: 1;
    }
    94%, 98% {
        opacity: 0;
    }
}

.wolf-widget__blink {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent, #ff2a6d);
    opacity: 0;
    animation: wolf-blink 6s infinite;
    pointer-events: none;
}

/* Balão de fala opcional (aparece no hover) */
.wolf-widget__bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--accent, #ff2a6d);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 240px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
}

.wolf-widget__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 30px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent, #ff2a6d) transparent transparent transparent;
}

.wolf-widget:hover .wolf-widget__bubble {
    opacity: 1;
    transform: translateY(0);
}

/* Badge pulsante (opcional, pra chamar atenção quando tem algo novo) */
.wolf-widget__pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent, #ff2a6d);
    border-radius: 50%;
    border: 2px solid var(--bg-primary, #0f172a);
    animation: wolf-pulse 2s infinite;
    pointer-events: none;
}

@keyframes wolf-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 42, 109, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 42, 109, 0);
    }
}

/* Mobile: menor */
@media (max-width: 768px) {
    .wolf-widget {
        width: 70px;
        height: 70px;
        bottom: 16px;
        right: 16px;
    }

    .wolf-widget__bubble {
        display: none;
    }
}

/* Não aparecer em telas muito pequenas pra não atrapalhar */
@media (max-width: 400px) {
    .wolf-widget {
        width: 56px;
        height: 56px;
    }
}


/* ─── Feedback Modal (migrated from wolf-mascot) ─── */
.wolf-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wolf-modal-overlay.show { display: flex; }
.wolf-modal {
    background: #1a1a22;
    border: 2px solid var(--accent, #ff2a6d);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(255, 42, 109, 0.4);
}
.wolf-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a35;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wolf-modal-header h3 {
    margin: 0;
    color: var(--accent, #ff2a6d);
    display: flex;
    align-items: center;
    gap: 10px;
}
.wolf-modal-close {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.wolf-modal-close:hover { background: #2a2a35; color: #fff; }
.wolf-modal-body { padding: 24px; }
.wolf-modal-body .form-group { margin-bottom: 20px; }
.wolf-modal-body label {
    display: block; color: #fff; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem;
}
.wolf-modal-body select,
.wolf-modal-body input[type="text"],
.wolf-modal-body textarea {
    width: 100%; padding: 12px 14px;
    background: #0a0a0c; border: 1px solid #2a2a35; border-radius: 8px;
    color: #fff; font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s;
}
.wolf-modal-body select:focus,
.wolf-modal-body input[type="text"]:focus,
.wolf-modal-body textarea:focus { outline: none; border-color: var(--accent, #ff2a6d); }
.wolf-modal-body textarea { min-height: 120px; resize: vertical; }
.wolf-modal-footer {
    padding: 16px 24px; border-top: 1px solid #2a2a35;
    display: flex; gap: 12px; justify-content: flex-end;
}
.wolf-modal-footer button {
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: none; font-size: 0.95rem;
}
.wolf-btn-cancel { background: #2a2a35; color: #a0a0b0; }
.wolf-btn-cancel:hover { background: #3a3a45; color: #fff; }
.wolf-btn-submit {
    background: linear-gradient(135deg, var(--accent, #ff2a6d), #cc0022);
    color: #fff; font-weight: 700;
}
.wolf-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255, 42, 109, 0.6); }
.wolf-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.wolf-success-message { text-align: center; padding: 40px 20px; }
.wolf-success-message .icon { font-size: 3rem; margin-bottom: 16px; }
.wolf-success-message h4 { color: var(--accent, #ff2a6d); font-size: 1.3rem; margin-bottom: 12px; }
.wolf-success-message p { color: #a0a0b0; line-height: 1.6; }
