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

body {
  background: linear-gradient(135deg, #1a0033, #330022);
  color: #fff;
  font-family: 'Press Start 2P', system-ui;
  min-height: 100vh;
  padding: 15px;
}

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

header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
}

header h1 {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #ff00cc, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
}

header p {
  color: #ff99cc;
  font-size: 0.9rem;
}

.preview {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 20px;
  border: 4px solid #ff00cc;
  box-shadow: 0 0 30px rgba(255, 0, 204, 0.4);
}

.harley-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.harley-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.harley-card:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 25px 15px 15px;
  text-align: center;
}

.overlay h2 {
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff;
  font-size: 1.3rem;
}

.prompt-box {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #00ffff;
}

.prompt-box h3 {
  color: #ff00cc;
  margin-bottom: 10px;
  font-size: 1rem;
}

#promptText {
  width: 100%;
  height: 140px;
  background: #111;
  color: #fff;
  border: 2px solid #ff00cc;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
  resize: none;
  font-family: monospace;
}

.generate-btn {
  width: 100%;
  padding: 20px;
  font-size: 1.3rem;
  font-family: 'Press Start 2P';
  background: linear-gradient(45deg, #ff00cc, #00ffff);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(255, 0, 204, 0.4);
  transition: all 0.2s;
}

.generate-btn:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(255, 0, 204, 0.6);
}

.copy-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  background: #00ffff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.history h3 {
  color: #ff99cc;
  margin-bottom: 10px;
  font-size: 1rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.history-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ff00cc;
  cursor: pointer;
}

.history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
