/* styles.css - Complete Tailwind CSS with Mobile Margin Fixes */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Additional custom styles */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  min-height: 100vh;
}

.backdrop-blur-lg {
  backdrop-filter: blur(20px);
}

.transition {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg,#F59E0B 0%,#EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.payment-btn.active {
  border-color: #f59e0b;
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.buy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  transition: all 0.3s ease;
}

.buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.4);
}

.buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.input-field {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.input-field:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.wallet-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  transition: all 0.3s ease;
}

.wallet-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.notification {
  animation: slideIn 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border-radius: 3px;
}

/* Loading spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.loading { animation: spin 1s linear infinite; }

/* Notification styles */
.notification {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Wallet modal backdrop */
#walletModal {
  backdrop-filter: blur(8px);
}

/* Pulse gold effect */
@keyframes pulse-gold {
  0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0.7);}
  50%{box-shadow:0 0 0 10px rgba(245,158,11,0);}
}
.pulse-gold { animation: pulse-gold 2s infinite; }

/* ==================== RESPONSIVE FIXES ==================== */

/* Wallet address responsiveness */
.wallet-address {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}

.wallet-connect-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ==================== MOBILE MARGIN FIXES ==================== */

/* Main container margins */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Glass card margins for mobile */
.glass-card {
  margin-bottom: 1.5rem !important;
}

/* Specific margin fixes for problematic sections */
#solanaWalletContainer {
  margin-bottom: 1.5rem !important;
}

/* Token calculation section margins */
.glass-card.bg-gradient-to-r.from-yellow-500\\/20.to-orange-500\\/20 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Network info section margins */
.glass-card.bg-purple-500\\/20 {
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Buy button margins */
#buyButton {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

/* Instructions section margins */
.glass-card.rounded-2xl.p-6.mt-6 {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* Token information section margins */
.mt-12 {
  margin-top: 3rem !important;
}

/* Presale goals section specific fix */
.glass-card.bg-gradient-to-r.from-green-500\\/20.to-blue-500\\/20 {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wallet-address {
    max-width: 80px;
    font-size: 12px;
  }
  
  .wallet-connect-section {
    flex-direction: column;
    align-items: flex-end;
  }
  
  #walletStatus {
    order: -1;
    margin-bottom: 8px;
  }
  
  .payment-btn {
    padding: 12px 8px;
    font-size: 14px;
  }
  
  /* Enhanced mobile margins */
  .glass-card {
    margin: 0.75rem 0 !important;
    border-radius: 16px;
  }
  
  /* Specific mobile spacing for problematic sections */
  .glass-card.rounded-2xl.p-8 {
    margin: 1rem 0 !important;
    padding: 1.5rem !important;
  }
  
  /* Network info section mobile fix */
  .glass-card.bg-purple-500\\/20 {
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
  }
  
  /* Buy button mobile spacing */
  #buyButton {
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
  }
  
  /* Token calculation mobile spacing */
  .glass-card.bg-gradient-to-r.from-yellow-500\\/20.to-orange-500\\/20 {
    margin: 1.5rem 0 !important;
    padding: 1.5rem !important;
  }
  
  /* Instructions section mobile spacing */
  .glass-card.rounded-2xl.p-6.mt-6 {
    margin: 2rem 0 1rem 0 !important;
    padding: 1.5rem !important;
  }
  
  /* Presale goals mobile spacing */
  .glass-card.bg-gradient-to-r.from-green-500\\/20.to-blue-500\\/20 {
    margin: 1.5rem 0 !important;
    padding: 1.5rem !important;
  }
  
  /* Container padding for mobile */
  .container.mx-auto.px-4.py-8 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container fixes */
.container {
  width: 100%;
  max-width: 100%;
}

/* Improved Wallet Modal Styling */
#walletModal .glass-card > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#walletModal .space-y-4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#walletModal .space-y-4 button {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Specific wallet button styling */
#connectMetaMask {
    background: linear-gradient(135deg, #f6851b 0%, #e27625 100%);
    color: white;
    border-color: #e27625 !important;
}

#connectMetaMask:hover {
    background: linear-gradient(135deg, #e27625 0%, #d56615 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(230, 118, 37, 0.4);
}

#connectCoinbase {
    background: linear-gradient(135deg, #0052ff 0%, #0052ff 100%);
    color: white;
    border-color: #0052ff !important;
}

#connectCoinbase:hover {
    background: linear-gradient(135deg, #0045d6 0%, #0045d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 82, 255, 0.4);
}

#connectWalletConnect {
    background: linear-gradient(135deg, #3b99fc 0%, #3b99fc 100%);
    color: white;
    border-color: #3b99fc !important;
}

#connectWalletConnect:hover {
    background: linear-gradient(135deg, #2d7cd9 0%, #2d7cd9 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 153, 252, 0.4);
}

#connectPhantom {
    background: linear-gradient(135deg, #ab9ff2 0%, #7b61ff 100%);
    color: white;
    border-color: #7b61ff !important;
}

#connectPhantom:hover {
    background: linear-gradient(135deg, #7b61ff 0%, #5d45e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(123, 97, 255, 0.4);
}

/* Payment method button colors */
[data-method="ETH"] {
    background: linear-gradient(135deg, #627eea 0%, #627eea 100%) !important;
    color: white !important;
}

[data-method="BTC"] {
    background: linear-gradient(135deg, #f7931a 0%, #f7931a 100%) !important;
    color: white !important;
}

[data-method="BNB"] {
    background: linear-gradient(135deg, #f0b90b 0%, #f0b90b 100%) !important;
    color: #000000 !important;
}

[data-method="USDT"] {
    background: linear-gradient(135deg, #26a17b 0%, #26a17b 100%) !important;
    color: white !important;
}

/* Additional spacing utilities */
.mobile-mt-4 {
  margin-top: 1rem;
}

.mobile-mb-4 {
  margin-bottom: 1rem;
}

.mobile-my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
