/* MemeLaunch Tycoon - Professional Dark Theme */
/* Modern crypto platform design inspired by Coinbase & Pump.fun */

:root {
  /* Primary Brand Colors */
  --primary-blue: #0052FF;
  --primary-green: #55d292;
  --accent-orange: #FF6B35;
  --accent-purple: #9D4EDD;
  
  /* Background Colors */
  --bg-primary: #0A0B0D;
  --bg-secondary: #1A1B1F;
  --bg-tertiary: #25262B;
  --bg-input: #2C2D32;
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #6C6C6C;
  
  /* Border & Divider */
  --border-color: #2C2D32;
  --border-hover: #404145;
  
  /* Status Colors */
  --success: #55d292;
  --error: #FF4444;
  --warning: #FFB020;
  --info: #0052FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Remove old gradient background */
.gradient-bg {
  background: var(--bg-primary) !important;
}

/* Navigation */
nav {
  background-color: rgba(26, 27, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--primary-blue);
}

/* Glass Effect - Updated for better visibility */
.glass-effect {
  background: rgba(26, 27, 31, 0.8) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

/* Form Inputs - High contrast */
input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  transition: all 0.2s !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

/* Labels */
label {
  color: var(--text-secondary) !important;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Buttons - Consistent styling */
button, .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cta-button,
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
  color: white;
}

.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--primary-green) 0%, #20BF55 100%);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue) !important;
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* Cards - Improved visibility */
.card, .stat-card, .coin-card {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
}

.card:hover, .coin-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
}

/* Text Colors - Ensure visibility */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

p, span, div {
  color: var(--text-primary);
}

.text-gray-400, .text-gray-500 {
  color: var(--text-secondary) !important;
}

.text-gray-600 {
  color: var(--text-muted) !important;
}

/* Auth Pages - Centered with proper contrast */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-center;
  padding: 20px;
  background: var(--bg-primary);
}

.auth-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Form Messages */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.form-message.success {
  background-color: rgba(85, 210, 146, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  display: block;
}

.form-message.error {
  background-color: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email Signup Form */
.email-signup-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.email-signup-form input {
  flex: 1;
}

.email-signup-form button {
  white-space: nowrap;
}

/* Button Loading State */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Active Nav Link */
.active-nav-link {
  color: var(--primary-blue) !important;
  position: relative;
}

.active-nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    padding: 8px;
  }
  
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }
  
  .mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
  
  .mobile-menu a {
    display: block;
    padding: 12px;
    border-radius: 8px;
  }
  
  .mobile-menu a:hover {
    background-color: var(--bg-tertiary);
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--error);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green) 0%, #20BF55 100%);
  transition: width 0.3s;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  background-color: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-strength-fill {
  height: 100%;
  transition: all 0.3s;
}

.password-strength-fill.weak {
  width: 33%;
  background-color: var(--error);
}

.password-strength-fill.medium {
  width: 66%;
  background-color: var(--warning);
}

.password-strength-fill.strong {
  width: 100%;
  background-color: var(--success);
}

.password-strength-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 24px;
  }
  
  .email-signup-form {
    flex-direction: column;
  }
  
  .email-signup-form button {
    width: 100%;
  }
  
  .toast {
    left: 16px;
    right: 16px;
    top: 16px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
