/* My Lucky Coin - Red Theme with Lexend Font */

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

:root {
  --primary-red: #dc2626;
  --primary-red-dark: #b91c1c;
  --primary-red-light: #fca5a5;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #fef2f2;
  --bg-white: #ffffff;
  --border-light: #fecaca;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  padding: 1rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.card {
  background: var(--bg-white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}

.wisdom {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary-red);
  line-height: 1.7;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.number {
  background: var(--primary-red);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.number:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn:not(.outline) {
  background: var(--primary-red);
  color: white;
  box-shadow: var(--shadow);
}

.btn:not(.outline):hover {
  background: var(--primary-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn.outline:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-1px);
}

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

.meta {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 300;
}

.loading {
  opacity: 0.7;
}

.error {
  color: var(--primary-red);
  background: #fef2f2;
  border: 1px solid var(--primary-red-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  .container {
    padding: 1rem 0;
  }
  
  .card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .wisdom {
    font-size: 1.125rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .numbers {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .number {
    width: 50px;
    height: 50px;
    font-size: 1.125rem;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Homepage Styles */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.coin-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.purchase-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
  color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.purchase-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shipping {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.purchase-btn {
  background: white;
  color: var(--primary-red);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.guarantee {
  font-size: 0.9rem;
  opacity: 0.8;
}

.instructions {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
}

.instructions h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 1rem;
  text-align: center;
}

.instructions ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.instructions li {
  counter-increment: step-counter;
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
  line-height: 1.6;
}

.instructions li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-red);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.nfc-indicator {
  text-align: center;
  margin-top: 1.5rem;
}

.nfc-badge {
  background: var(--primary-red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
}

/* Animation for new content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
