/* === Mascot - FAQ === */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.faq-mascot {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mascot-img {
  width: 180px;
  height: 180px;
  animation: mascotFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 122, 204, 0.2));
}

.mascot-bubble {
  background: var(--product-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 200px;
  text-align: center;
  position: relative;
  line-height: 1.5;
}

.mascot-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-subtle);
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--product-card-bg);
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== MASCOT - FLOATING WIDGET ========== */
.mascot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.widget-tooltip {
  background: var(--product-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 8px 32px var(--shadow-hover);
  max-width: 220px;
  opacity: 0;
  transform: translateY(8px);
  animation: tooltipIn 0.5s ease 3s forwards;
  position: relative;
  line-height: 1.4;
}

.widget-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--product-card-bg);
}

.widget-tooltip .close-tooltip {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px;
  line-height: 1;
}

@keyframes tooltipIn {
  to { opacity: 1; transform: translateY(0); }
}

.widget-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 122, 204, 0.4);
  transition: all 0.3s ease;
  animation: widgetPulse 3s ease-in-out infinite;
  overflow: hidden;
  padding: 0;
}

.widget-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(0, 122, 204, 0.5);
}

.widget-btn .widget-mascot-icon {
  width: 44px;
  height: 44px;
}

@keyframes widgetPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 122, 204, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(0, 122, 204, 0.6), 0 0 0 8px rgba(0, 122, 204, 0.1); }
}
