@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Zen+Maru+Gothic&family=Bungee&display=swap');

:root {
  --bg: #1a1a1a;
  --text: #39ff14;
  --accent: #39ff14;
  --border: #39ff14;
  --input-bg: #2a2a2a;
  --progress-bg: #111;
  --font: 'Share Tech Mono', monospace;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  max-width: 640px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent);
  position: relative;
  transition: all 0.3s ease;
}

/* Brand name */
#brandName {
  font-family: 'Bungee', cursive;
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  user-select: none;
  cursor: default;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-theme="cyberpunk"] #brandName {
  color: #39ff14;
  text-shadow: 0 0 6px #39ff14, 0 0 12px #39ff14;
  font-family: 'Share Tech Mono', monospace;
}

body[data-theme="anime"] #brandName {
  color: #ff4081;
  text-shadow: 0 0 8px #ff4081, 0 0 15px #ff80ab;
  font-family: 'Zen Maru Gothic', sans-serif;
}

body[data-theme="bauhaus"] #brandName {
  color: #000;
  text-shadow: none;
  font-family: 'Bungee', cursive;
}

h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: var(--input-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

input:focus {
  border-color: var(--accent);
  outline: none;
}

button {
  margin-top: 28px;
  width: 100%;
  padding: 14px;
  background-color: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.2);
}

#status {
  margin-top: 16px;
  font-size: 14px;
  font-style: italic;
  min-height: 20px;
}

#progressContainer {
  margin-top: 20px;
  background: var(--progress-bg);
  border-radius: 6px;
  overflow: hidden;
  height: 14px;
  border: 1px solid var(--border);
}

progress {
  width: 100%;
  height: 14px;
  appearance: none;
}

progress::-webkit-progress-bar {
  background-color: var(--progress-bg);
}

progress::-webkit-progress-value {
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.result {
  margin-top: 32px;
  padding: 16px;
  background-color: var(--input-bg);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 16px;
  white-space: pre-wrap;
}

.disclaimer {
  margin-top: 40px;
  font-size: 12px;
  font-style: italic;
  text-align: center;
}

/* Theme Buttons */
.theme-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.theme-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-btn:hover {
  transform: scale(1.2);
}

.cyberpunk { background-color: #39ff14; }
.anime     { background-color: #ff69b4; }
.bauhaus   { background-color: #000; border-color: #000; }

/* Themes */
body[data-theme="cyberpunk"] {
  --bg: #1a1a1a;
  --text: #39ff14;
  --accent: #39ff14;
  --border: #39ff14;
  --input-bg: #2a2a2a;
  --progress-bg: #111;
  --font: 'Share Tech Mono', monospace;
}

body[data-theme="anime"] {
  --bg: #fef6f8;
  --text: #4a4a4a;
  --accent: #ff69b4;
  --border: #ffa7c4;
  --input-bg: #fff0f5;
  --progress-bg: #ffd9ec;
  --font: 'Zen Maru Gothic', sans-serif;
}

body[data-theme="bauhaus"] {
  --bg: #ffffff;
  --text: #000000;
  --accent: #000000;
  --border: #000000;
  --input-bg: #f2f2f2;
  --progress-bg: #ddd;
  --font: 'Bungee', cursive;
}
