/* generator-enhancements.css - Additional styles for the token generator page */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #86efac;
  --primary-hover: #66cf8c;
  --secondary-color: #73C2D4;
  --text-light: #ffffff;
  --text-dark: #1b1d28;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-effect: 0 0 15px rgba(134, 239, 172, 0.6);
}

/* ===== GLASS CARD DESIGN ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--card-shadow), var(--glow-effect);
  border-color: rgba(134, 239, 172, 0.3);
}

/* Retain original header styling */
.generator-page h1 {
  font-size: var(--heading-size);
  margin-bottom: 0; /* Remove standard margin */
  margin-top: 0; /* Ensure no top margin */
  text-align: center;
  color: #ffffff;
}

/* Add this to your generator-enhancements.css file */
.container > .glass-card:first-of-type {
  margin-top: -2.5rem; /* Pull content upward with negative margin */
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  flex-wrap: wrap;
}

.step {
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s ease;
}

.step.active {
  color: var(--primary-color);
  font-weight: 600;
}

.step-divider {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

/* ===== ENHANCED SELECT ===== */
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  padding-right: 2.5rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(134, 239, 172, 0.4);
}

.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #000000;
  pointer-events: none;
}

.select-wrapper:hover select {
  border-color: var(--primary-color);
}

/* ===== TOOLTIP STYLES ===== */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===== BUTTON STYLING ===== */
.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  max-width: 220px;
  font-size: 1rem;
}

.primary-button {
  background-color: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 4px 6px rgba(134, 239, 172, 0.25);
}

.secondary-button {
  background-color: rgba(115, 194, 212, 0.2);
  color: var(--text-light);
  border: 1px solid var(--secondary-color);
}

.primary-button:hover {
  box-shadow: 0 6px 12px rgba(134, 239, 172, 0.4);
  transform: translateY(-2px);
  background-color: var(--primary-hover);
}

.secondary-button:hover {
  background-color: rgba(115, 194, 212, 0.3);
  transform: translateY(-2px);
}

.primary-button:active, .secondary-button:active {
  transform: translateY(1px);
}

.secondary-button.active {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== ENHANCED RESULT DISPLAY ===== */
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 220px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-top: 1.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.token-name-display {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  width: 100%;
  word-break: break-word;
  transition: all 0.15s ease; /* Faster animation */
}

.ticker-display {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 2rem;
  letter-spacing: 1px;
}

.copy-toast {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(100%);
}

/* ===== HISTORY PANEL STYLING ===== */
.history-panel {
  margin-top: 2rem;
  padding: 0;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.history-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h3 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

.clear-history-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.clear-history-btn:hover {
  color: #ff6b6b;
  background: rgba(255, 255, 255, 0.1);
}

.name-history-content {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

/* Category guide box removed */

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .step-indicator {
    font-size: 0.8rem;
  }
  
  .step-divider {
    width: 20px;
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .token-name-display {
    font-size: 1.3rem; /* Smaller font size on mobile */
  }
  
  .history-header h3 {
    font-size: 1rem; /* Smaller font for Previously Generated Names */
  }
  
  .name-history-content {
    font-size: 0.9rem; /* Smaller font for history items */
  }
}

@media (max-width: 480px) {
  
  .step {
    font-size: 0.75rem;
  }
  
  .result {
    min-height: 180px;
    padding: 1rem;
  }
  
  .token-name-display {
    font-size: 1.3rem;
  }
  
  .ticker-display {
    font-size: 1.2rem;
  }
}