* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #f0f0f0;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 780px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
}

header p {
  margin-top: 10px;
  color: #888;
  font-size: 1rem;
}

.input-section {
  margin-bottom: 28px;
}

.input-section label,
.platforms-section label,
.format-section label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

textarea {
  width: 100%;
  height: 200px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  color: #f0f0f0;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border 0.2s;
}

textarea:focus {
  border-color: #6c63ff;
}

.platforms-section {
  margin-bottom: 28px;
}

.platform-buttons,
.format-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-btn,
.format-btn {
  padding: 10px 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: #ccc;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-btn:hover,
.format-btn:hover {
  border-color: #6c63ff;
  color: #fff;
}

.platform-btn.active,
.format-btn.active {
  background: #6c63ff;
  border-color: #6c63ff;
  color: #fff;
}

.format-section {
  margin-bottom: 28px;
}

#repurposeBtn {
  width: 100%;
  padding: 16px;
  background: #6c63ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#repurposeBtn:hover {
  background: #574fd6;
}

#repurposeBtn:active {
  transform: scale(0.98);
}

#loading {
  text-align: center;
  margin-top: 24px;
  color: #888;
  font-size: 0.95rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#outputSection {
  margin-top: 40px;
}

#outputSection h2 {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.output-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.output-card h3 {
  font-size: 0.8rem;
  color: #6c63ff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.output-card p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-btn {
  margin-top: 14px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #aaa;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: #6c63ff;
  color: #fff;
}

.hidden {
  display: none;
}