/**
 * AI Pass UI Components v1.0.0
 *
 * Ready-to-use UI components for AI Pass authentication and balance display
 *
 * @license MIT
 * @author AI Pass Team
 * @see https://aipass.one
 */

/* ============================================================================
   AI PASS LOGO BUTTON
   ============================================================================ */

/* Base container */
.logo-container {
  display: inline-flex;
  align-items: center;
  background-color: white;
  padding: 4px 8px;
  border-radius: 8px 0 8px 8px; /* 3 rounded, 1 square corner */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logo-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* AI box (purple box with "AI" text) */
.ai-box {
  background-color: #8A4FFF;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 4px 6px;
  border-radius: 5px 0 5px 5px;
  margin-right: 6px;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 1;
}

/* "Pass" text */
.pass-text {
  color: #8A4FFF;
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 1;
}

/* "CONNECT" text (shown when disconnected) */
.connect-text {
  color: #8A4FFF;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.5px;
  align-self: center;
}

/* Balance box (shown when connected) */
.balance-box {
  background-color: #f0f0f0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ============================================================================
   DARK VARIANT (Disconnected State)
   ============================================================================ */

.logo-container.dark {
  background-color: #222222;
}

.logo-container.dark .pass-text {
  color: white;
}

.logo-container.dark .connect-text {
  color: white;
}

/* ============================================================================
   CONNECTED VARIANT (With Ripple Animation)
   ============================================================================ */

.logo-container.connected {
  overflow: hidden;
}

/* Ripple effect */
.ripple {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: rgba(138, 79, 255, 0.3);
  border-radius: 50%;
  z-index: 0;
  animation: ripple 3s linear infinite;
}

.ripple:nth-child(2) {
  animation-delay: 1s;
}

.ripple:nth-child(3) {
  animation-delay: 2s;
}

@keyframes ripple {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.8;
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

/* Connected background pulse */
.logo-container.connected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 79, 255, 0.05);
  border-radius: 8px 0 8px 8px;
  animation: pulse 2s infinite;
  z-index: 0;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.1; }
  100% { opacity: 0.3; }
}

/* ============================================================================
   SIZE VARIANTS (Optional)
   ============================================================================ */

/* Small variant */
.logo-container.small .ai-box {
  font-size: 14px;
  padding: 3px 5px;
}

.logo-container.small .pass-text {
  font-size: 14px;
}

.logo-container.small .connect-text {
  font-size: 8px;
}

.logo-container.small .balance-box {
  font-size: 10px;
  padding: 2px 4px;
}

/* Large variant */
.logo-container.large .ai-box {
  font-size: 24px;
  padding: 6px 8px;
}

.logo-container.large .pass-text {
  font-size: 24px;
}

.logo-container.large .connect-text {
  font-size: 12px;
}

.logo-container.large .balance-box {
  font-size: 14px;
  padding: 4px 8px;
}
