@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono&display=swap');

:root {
  --bg: #0f1115;
  --card: #16181d;
  --border: #23262d;
  --text: #e6e6e6;
  --subtext: #8b8f98;
  --accent: #4f8cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* CONTENEDOR */
.app {
  max-width: 780px;
  margin: auto;
  padding: 40px 20px;
}

/* HEADER */
.topbar {
  margin-bottom: 25px;
}

.topbar h1 {
  font-size: 2rem;
  font-weight: 600;
}

.tagline {
  color: var(--subtext);
  margin-top: 5px;
  font-size: 0.9rem;
}

/* DISCORD */
.discord-btn {
  display: block;
  text-align: center;
  margin: 20px 0 30px;
  padding: 10px;
  background: #5865F2;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.discord-btn:hover {
  opacity: 0.9;
}

/* EDITOR */
.editor {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 40px;
}

/* INPUTS */
input, select, textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}

input {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

select {
  margin-bottom: 10px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

textarea {
  font-family: 'JetBrains Mono', monospace;
  min-height: 140px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* BOTONES */
.acciones {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: scale(0.97);
}

/* FEED */
.feed h2 {
  margin-bottom: 15px;
  font-weight: 500;
}

/* POST */
.post {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.post h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.post span {
  font-size: 0.75rem;
  color: var(--subtext);
}

.post pre {
  background: #0b0d10;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 10px;
}

.post code {
  color: #9cdcfe;
}

.post small {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--subtext);
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: 0.3s;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
