/* Presale Page Styles */

/* Hero Section */
.presale-hero {
  background: var(--green-dark);
  min-height: clamp(400px, 8vh, 600px);
  padding: clamp(120px, 20vh, 140px) clamp(15px, 4vw, 40px) clamp(60px, 10vh, 80px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.presale-hero-content {
  z-index: 10;
  max-width: 800px;
}

.presale-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 clamp(16px, 4vw, 24px) 0;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.presale-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: clamp(32px, 8vw, 48px);
  color: var(--white);
  font-weight: 500;
}

.presale-frog {
  position: absolute;
  bottom: -10%;
  right: -5%;
  opacity: 0.3;
  z-index: 1;
}

.presale-frog img {
  width: clamp(200px, 40vw, 400px);
  height: auto;
}

/* Timer */
.presale-timer-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.presale-timer {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 24px);
  min-width: clamp(60px, 15vw, 80px);
  display: inline-block;
  text-align: center;
}

.timer-label {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--white);
  margin-top: 8px;
}

.timer-info {
  margin-top: clamp(16px, 4vw, 24px);
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  opacity: 0.8;
}

/* Presale Details */
.presale-details {
  background: var(--green-main);
  padding: clamp(60px, 15vw, 80px) clamp(15px, 4vw, 20px);
}

.presale-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.presale-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 250px), 1fr));
  gap: clamp(16px, 4vw, 24px);
  margin-bottom: clamp(40px, 10vw, 60px);
}

.presale-info-card {
  background: var(--green-box);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px) clamp(16px, 4vw, 24px);
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(12px, 3vw, 16px);
}

.presale-info-card h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  margin: 0 0 clamp(8px, 2vw, 12px) 0;
  color: var(--white);
}

.info-value {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  color: var(--yellow);
  margin: 0;
}

/* Progress Bar */
.presale-progress-container {
  background: var(--green-box);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: clamp(40px, 10vw, 60px);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 4vw, 24px);
}

.progress-header h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0;
  color: var(--white);
}

.progress-percentage {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  color: var(--yellow);
  margin: 0;
}

.progress-bar {
  height: clamp(16px, 4vw, 24px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: clamp(16px, 4vw, 24px);
}

.progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.progress-stats p {
  margin: 0;
}

/* Purchase Form */
.presale-purchase-container {
  background: var(--green-box);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: clamp(40px, 10vw, 60px);
}

.wallet-connection {
  margin-bottom: clamp(24px, 6vw, 32px);
  text-align: center;
}

.connect-wallet-btn {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
}

.wallet-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: clamp(16px, 4vw, 24px);
  margin-top: clamp(16px, 4vw, 24px);
  text-align: left;
}

.wallet-info p {
  margin: clamp(4px, 1vw, 8px) 0;
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.wallet-info span {
  color: var(--yellow);
  font-weight: 700;
}

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 24px);
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 12px);
}

.input-container label {
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  font-weight: 500;
}

.input-with-max {
  display: flex;
  gap: clamp(8px, 2vw, 12px);
}

.bnb-input {
  flex: 1;
  padding: clamp(12px, 3vw, 16px);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
}

.bnb-input:focus {
  outline: none;
  border-color: var(--yellow);
}

.max-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  padding: 0 clamp(12px, 3vw, 16px);
  transition: background 0.2s ease;
}

.max-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.token-estimate {
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.token-estimate span {
  color: var(--yellow);
  font-weight: 700;
}

.buy-tokens-btn {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
  width: 100%;
}

/* Purchase info styles */
.purchase-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.purchase-info .token-amount {
  color: var(--yellow);
  font-weight: 700;
}

/* Presale Referral */
.presale-referral {
  background: var(--green-box);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.presale-referral h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0 0 clamp(8px, 2vw, 12px) 0;
  color: var(--white);
}

.presale-referral p {
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  margin-bottom: clamp(16px, 4vw, 24px);
}

/* How to Participate */
.how-to-participate {
  background: var(--green-dark);
  padding: clamp(60px, 15vw, 80px) clamp(15px, 4vw, 20px);
  text-align: center;
}

.how-to-participate h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: clamp(40px, 10vw, 60px);
  color: var(--yellow);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 30vw, 250px), 1fr));
  gap: clamp(24px, 6vw, 32px);
}

.step-card {
  background: var(--green-box);
  border-radius: var(--rounded);
  padding: clamp(24px, 6vw, 32px) clamp(16px, 4vw, 24px);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  text-align: center;
}

.step-number {
  background: var(--yellow);
  color: #232e00;
  width: clamp(40px, 10vw, 50px);
  height: clamp(40px, 10vw, 50px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  margin: 0 auto clamp(16px, 4vw, 24px);
}

.step-card h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  margin: 0 0 clamp(8px, 2vw, 12px) 0;
  color: var(--white);
}

.step-card p {
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  margin: 0;
  opacity: 0.8;
}

/* FAQ Section */
.presale-faq {
  background: var(--green-main);
  padding: clamp(60px, 15vw, 80px) clamp(15px, 4vw, 20px);
  text-align: center;
}

.presale-faq h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: clamp(40px, 10vw, 60px);
  color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--green-box);
  border-radius: 12px;
  margin-bottom: clamp(16px, 4vw, 24px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: clamp(16px, 4vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0;
  color: var(--white);
  text-align: left;
}

.faq-toggle {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--yellow);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 clamp(16px, 4vw, 24px) clamp(16px, 4vw, 24px);
  display: none;
  text-align: left;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--white);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  margin: 0;
  opacity: 0.8;
}

/* Footer */
.presale-footer {
  background: var(--green-dark);
  padding: clamp(40px, 10vw, 60px) clamp(15px, 4vw, 20px) clamp(20px, 5vw, 30px);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 6vw, 32px);
  margin-bottom: clamp(24px, 6vw, 32px);
}

.footer-logo {
  width: clamp(60px, 15vw, 80px);
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 24px);
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  gap: clamp(16px, 4vw, 24px);
}

.social-icon {
  color: var(--white);
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(16px, 4vw, 24px);
}

.footer-bottom p {
  color: var(--white);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin: 0;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .presale-timer {
    flex-wrap: wrap;
  }

  .progress-stats {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .timer-value {
    font-size: 1.5rem;
    padding: 8px 12px;
    min-width: 50px;
  }

  .presale-info-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.5s ease;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.4;
}

.notification.success {
  background: #388e3c;
  color: white;
}

.notification.error {
  background: #d32f2f;
  color: white;
}

.notification.info {
  background: #2196f3;
  color: white;
}

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

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

/* Add styles for the error log */
.error-log {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #d32f2f;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  font-size: 14px;
  line-height: 1.4;
  animation: slideIn 0.5s ease;
}

.error-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 16px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.close-btn:hover {
  opacity: 0.8;
}

.error-log p {
  margin: 5px 0;
}
