/* VETRINO ASSISTANT STYLES */

/* Triggers */
.vetrino-trigger-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: visible;
}

.vetrino-trigger-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(50, 78, 138, 0.15);
    border-color: #324e8a;
}

.vetrino-trigger-card .trigger-avatar {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0;
    position: relative;
    margin-top: -30px; /* Faz a cabeça sair pra fora */
    z-index: 100 !important;
}

.vetrino-trigger-card .trigger-avatar img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
}

.vetrino-trigger-card .trigger-content {
    flex: 1;
}

.vetrino-trigger-card h6 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #324e8a;
    line-height: 1.2 !important;
}

.vetrino-trigger-card p {
    margin: 2px 0 0 !important;
    font-size: 11px !important;
    color: #64748b;
    font-weight: 500;
}

.vetrino-trigger-card .trigger-arrow {
    color: #cbd5e1;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.vetrino-trigger-card:hover .trigger-arrow {
    transform: translateX(3px);
    color: #324e8a;
}

/* Account Inline Trigger */
.vetrino-trigger-inline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #324e8a;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vetrino-trigger-inline:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.vetrino-trigger-inline .inline-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.vetrino-trigger-inline .inline-avatar img {
    width: 100%;
}

.vetrino-trigger-inline .inline-content span {
    font-size: 14px;
    color: #475569;
}

/* Character Container */
#vetrino-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    transition: left 0.5s ease, top 0.5s ease;
}

#vetrino-container * {
    pointer-events: auto; /* Mas os botões do Vetrino funcionam */
}

/* Ajuste para barra do Admin do WordPress */
body.admin-bar #vetrino-container {
    margin-top: 32px;
}

.vetrino-character {
    width: 120px;
    /* Animação float removida a pedido do usuário */
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vetrino-character img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease-in-out;
}

.vetrino-character.flipped img {
    transform: scaleX(-1);
}

/* Star Trek Teleport Effect */
.vetrino-teleport {
    animation: beamIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.vetrino-teleport::before {
    content: '';
    position: absolute;
    top: -500px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1000px;
    background: linear-gradient(to bottom, transparent, #324e8a, #fff, #324e8a, transparent);
    box-shadow: 0 0 20px #324e8a;
    opacity: 0;
    animation: beamLight 0.8s ease-out both;
    z-index: -1;
}

@keyframes beamIn {
    0% {
        transform: scaleY(3) translateY(-100px);
        opacity: 0;
        filter: brightness(5) blur(10px);
    }
    60% {
        transform: scaleY(1.5) translateY(0);
        opacity: 1;
        filter: brightness(2) blur(2px);
    }
    100% {
        transform: scaleY(1) translateY(0);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

@keyframes beamLight {
    0% { opacity: 0; transform: translateX(-50%) scaleX(1); }
    30% { opacity: 1; transform: translateX(-50%) scaleX(20); }
    100% { opacity: 0; transform: translateX(-50%) scaleX(1); }
}

.vetrino-character img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease-in-out;
}

/* Speech Balloon */
.vetrino-balloon {
    position: absolute;
    bottom: 130px;
    right: -100px; /* Mantém o balão perto da borda da tela enquanto o robô se afasta */
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 78, 138, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform-origin: bottom right;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.3s ease;
}

.vetrino-balloon.is-talking {
    animation: pulseTalk 0.3s ease-in-out infinite;
}

@keyframes pulseTalk {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.vetrino-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px; /* Cauda agora aponta para a esquerda, onde o robô está */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.vetrino-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.vetrino-footer button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.vetrino-next {
    background: #324e8a;
    color: #fff;
}

.vetrino-close {
    background: #f1f5f9;
    color: #64748b;
}

/* Animations */
@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
