/* ============================================================
   Test Guide Bubble - For prototype testing only
   This entire file/folder is excluded from production builds.
   ============================================================ */

/* ── Floating Bubble ── */
.tg-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff552e, #ff8a65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: grab;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(255, 85, 46, 0.4);
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tg-bubble:hover {
  box-shadow: 0 6px 24px rgba(255, 85, 46, 0.5);
  transform: scale(1.05);
}
.tg-bubble:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.tg-bubble__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  background: #ff3b30;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── Expanded Panel ── */
.tg-panel {
  position: fixed;
  bottom: 170px;
  right: 20px;
  width: 340px;
  max-height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s ease;
}
.tg-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tg-panel__header {
  padding: 16px;
  background: linear-gradient(135deg, #ff552e, #ff8a65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tg-panel__title {
  font-size: 15px;
  font-weight: 600;
}
.tg-panel__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
}
.tg-panel__close:hover {
  background: rgba(255,255,255,0.3);
}

.tg-panel__body {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

/* ── Step Content ── */
.tg-step {
  margin-bottom: 12px;
}
.tg-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff552e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}
.tg-step__number.done {
  background: #00b38a;
}
.tg-step__number.current {
  background: #ff552e;
  box-shadow: 0 0 0 4px rgba(255, 85, 46, 0.2);
}
.tg-step__number.pending {
  background: #e8e8e8;
  color: #999;
}
.tg-step__text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}
.tg-step__text.done {
  color: #999;
  text-decoration: line-through;
}
.tg-step__hint {
  margin-top: 4px;
  padding: 8px 12px;
  background: #fff8f6;
  border-left: 3px solid #ff552e;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.tg-step__action {
  margin-top: 6px;
  font-size: 12px;
  color: #ff552e;
  font-style: italic;
}

/* ── Step Navigation ── */
.tg-nav {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tg-nav__btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.tg-nav__btn--primary {
  background: #ff552e;
  color: #fff;
}
.tg-nav__btn--primary:hover { background: #e64a27; }
.tg-nav__btn--ghost {
  background: transparent;
  color: #666;
  border: 1px solid #e8e8e8;
}
.tg-nav__btn--ghost:hover { border-color: #ccc; color: #333; }
.tg-nav__progress {
  font-size: 12px;
  color: #999;
}

/* ── Guide Home (use case list) ── */
.tg-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tg-guide-list__item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tg-guide-list__item:hover {
  background: #fafafa;
}
.tg-guide-list__item:last-child {
  border-bottom: none;
}
.tg-guide-list__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tg-guide-list__content {
  flex: 1;
}
.tg-guide-list__title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.tg-guide-list__desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}
.tg-guide-list__arrow {
  color: #ccc;
  font-size: 14px;
  align-self: center;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .tg-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 130px;
    max-height: 50vh;
  }
  .tg-bubble {
    width: 48px;
    height: 48px;
    font-size: 20px;
    bottom: 70px;
  }
}
