@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --success: #22c55e;
  --success-hover: #16a34a;
}

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  color: white;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 400px;
}

.generator-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 1rem;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: #f3f4f6;
}

.step-indicator {
  font-size: 0.875rem;
  color: #e5e7eb;
}

.step {
  animation: fadeIn 0.3s ease;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

input, select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
}

select {
  padding-left: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), #818cf8);
  color: white;
}

.btn-success {
  background: linear-gradient(to right, var(--success), #34d399);
  color: white;
}

.platform-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-btn:hover {
  transform: translateY(-2px);
}

.platform-btn i {
  font-size: 2rem;
}

.ios {
  background: linear-gradient(rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
  border-color: rgba(59, 130, 246, 0.2);
}

.android {
  background: linear-gradient(rgba(34, 197, 94, 0.1), rgba(21, 128, 61, 0.1));
  border-color: rgba(34, 197, 94, 0.2);
}

.resource-selection {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.resource-type {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.resource-btn i {
  font-size: 1.5rem;
  width: 1.5rem;
  text-align: center;
}

.coins {
  background: linear-gradient(rgba(234, 179, 8, 0.1), rgba(202, 138, 4, 0.1));
  border-color: rgba(234, 179, 8, 0.2);
}

.coins i {
  color: #fbbf24;
}

.gems {
  background: linear-gradient(rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
  border-color: rgba(168, 85, 247, 0.2);
}

.gems i {
  color: #a855f7;
}

.amount-selector {
  animation: slideDown 0.3s ease;
}

.generation-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.generation-step.active {
  opacity: 1;
  transform: translateY(0);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 1rem;
  animation: fadeIn 0.3s ease;
}

.spinner {
  font-size: 2rem;
  color: var(--primary);
}

.hidden {
  display: none !important;
}

.claim-info {
  text-align: center;
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

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

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