/**
 * 🛞 TIRE Wallet Component Styles
 */

/* ========== Wallet Container ========== */
.tire-wallet {
  display: none; /* 默认隐藏，登录后显示 */
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tire-wallet.logged-in {
  display: flex; /* 登录后显示 */
}

.tire-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.tire-wallet::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ========== Wallet Icon ========== */
.wallet-icon {
  font-size: 13px;
  line-height: 1;
  animation: rotate-tire 4s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

@keyframes rotate-tire {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tire-wallet:hover .wallet-icon {
  animation: rotate-tire 1s linear infinite;
}

/* ========== Wallet Info ========== */
.wallet-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.balance-number {
  font-size: 12px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  font-family: 'Bebas Neue', Arial, sans-serif;
  letter-spacing: 1px;
}

.balance-label {
  font-size: 6px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 隐藏不需要的元素 */
.wallet-value {
  display: none;
}

/* ========== Add Button ========== */
.wallet-add-btn {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  max-width: 17px;
  max-height: 17px;
  border-radius: 50%;
  background: #FFD700;
  color: #000;
  border: none;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.wallet-add-btn:hover {
  background: #FFA500;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5);
}

.wallet-add-btn:active {
  transform: scale(0.95) rotate(90deg);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .tire-wallet {
    padding: 4px 7px;
    gap: 5px;
  }
  
  .wallet-icon {
    font-size: 12px;
  }
  
  .balance-number {
    font-size: 11px;
  }
  
  .balance-label {
    font-size: 5.5px;
  }
  
  .wallet-add-btn {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .tire-wallet {
    padding: 3px 6px;
    gap: 4px;
  }
  
  .wallet-icon {
    font-size: 11px;
  }
  
  .balance-number {
    font-size: 10px;
  }
  
  .balance-label {
    font-size: 5px;
  }
}

/* ========== Loading State ========== */
.tire-wallet.loading {
  opacity: 0.6;
  pointer-events: none;
}

.tire-wallet.loading .wallet-icon {
  animation: rotate-tire 0.5s linear infinite;
}

/* 移除警告状态 - 保持简洁统一的设计 */
