/* Discord Changelog – Public & Admin styles (no background grid) */

:root {
  --bg: #1a1b26;
  --bg-gradient-start: #161720;
  --bg-gradient-end: #0f1018;
  --surface: #24283b;
  --surface-elevated: #2a2e42;
  --text: #c0caf5;
  --muted: #565f89;
  --accent: #7aa2f7;
  --accent-hover: #89b4fa;
  --success: #9ece6a;
  --warning: #e0af68;
  --danger: #f7768e;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg) 50%, var(--bg-gradient-end) 100%);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
body::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.changelog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
}

.changelog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface);
}

.changelog-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.changelog-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.changelog-actions a,
.changelog-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
}

.changelog-actions a:hover,
.changelog-actions button:hover {
  background: var(--accent);
  color: var(--bg);
}

.changelog-actions-sep {
  color: var(--muted);
  margin: 0 0.25rem;
  user-select: none;
}

.changelog-server-picker {
  margin-bottom: 1.5rem;
}

.changelog-server-picker label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.changelog-server-picker select {
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.changelog-server-picker select:focus {
  outline: none;
  border-color: var(--accent);
}

.changelog-share {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.changelog-share label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.changelog-share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.changelog-share-row input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.changelog-share-row button {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.changelog-share-row button:hover {
  background: var(--accent);
  color: var(--bg);
}

.changelog-share-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.admin-wrap .changelog-share {
  margin-top: 0;
  margin-bottom: 1rem;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-entry {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.changelog-entry-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.changelog-entry-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.changelog-entry-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.changelog-entry-body {
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.changelog-entry-body:empty {
  display: none;
}

.changelog-kind {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
}

.changelog-kind--change { background: var(--muted); color: var(--text); }
.changelog-kind--fix { background: rgba(247,118,142,0.2); color: var(--danger); }
.changelog-kind--feature { background: rgba(154,206,106,0.2); color: var(--success); }
.changelog-kind--improvement { background: rgba(122,162,247,0.2); color: var(--accent); }
.changelog-kind--other { background: var(--surface); color: var(--muted); }

.changelog-landing {
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.changelog-landing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(122, 162, 247, 0.12);
}

.changelog-landing-lead {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.changelog-landing p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.changelog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.changelog-btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

.changelog-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.changelog-footer a {
  color: var(--accent);
  text-decoration: none;
}

.changelog-footer a:hover {
  text-decoration: underline;
}

.changelog-empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.changelog-error {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(247,118,142,0.15);
  color: var(--danger);
  margin-bottom: 1rem;
}

.changelog-loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

/* Admin panel – uplift */
.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--surface);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(122, 162, 247, 0.1);
}

.admin-hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.admin-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.admin-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-form-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

.admin-form-actions button[type="submit"] {
  background: var(--accent);
  color: var(--bg);
}

.admin-form-actions button[type="button"].btn-danger {
  background: rgba(247,118,142,0.3);
  color: var(--danger);
}

.admin-form-actions button:hover {
  opacity: 0.9;
}

.admin-entry-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-entry-actions button {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.admin-entry-actions button:hover {
  background: var(--accent);
  color: var(--bg);
}

.admin-entry-actions button.delete:hover {
  background: var(--danger);
}

.admin-server-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.admin-server-list a {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface-elevated);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  border: 1px solid transparent;
}

.admin-server-list a:hover {
  background: rgba(122, 162, 247, 0.15);
  border-color: rgba(122, 162, 247, 0.3);
  color: var(--accent);
  transform: translateX(4px);
}

.admin-denied {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  border: 1px solid var(--surface);
}

.admin-denied a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .changelog-header {
    flex-direction: column;
    align-items: stretch;
  }
  .changelog-actions { margin-left: 0; }
}

/* ---- Discord Bot Landing Page (animated, feature showcase) ---- */
.landing {
  min-height: 100vh;
  overflow-x: hidden;
}

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

@keyframes landingShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes landingPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 23, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 162, 247, 0.1);
  animation: landingFadeInUp 0.6s ease-out;
}

.landing-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.landing-nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.landing-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.landing-nav-links a:hover {
  color: var(--accent);
  background: rgba(122, 162, 247, 0.1);
}

.landing-nav-links .landing-cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 500;
}

.landing-nav-links .landing-cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.landing-hero {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  position: relative;
  animation: landingFadeInUp 0.8s ease-out 0.1s both;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(122, 162, 247, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 80% 50%, rgba(122, 162, 247, 0.08), transparent),
              radial-gradient(ellipse 60% 40% at 20% 60%, rgba(122, 162, 247, 0.06), transparent);
  pointer-events: none;
}

.landing-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
}

.landing-hero-tagline {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

.landing-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  animation: landingFadeInUp 0.6s ease-out 0.4s both;
}

.landing-hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.landing-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.landing-features {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.landing-feature {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(122, 162, 247, 0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: landingFadeInUp 0.6s ease-out both;
}

.landing-feature:nth-child(1) { animation-delay: 0.05s; }
.landing-feature:nth-child(2) { animation-delay: 0.1s; }
.landing-feature:nth-child(3) { animation-delay: 0.15s; }
.landing-feature:nth-child(4) { animation-delay: 0.2s; }
.landing-feature:nth-child(5) { animation-delay: 0.25s; }
.landing-feature:nth-child(6) { animation-delay: 0.3s; }
.landing-feature:nth-child(7) { animation-delay: 0.35s; }
.landing-feature:nth-child(8) { animation-delay: 0.4s; }
.landing-feature:nth-child(9) { animation-delay: 0.45s; }
.landing-feature:nth-child(10) { animation-delay: 0.5s; }
.landing-feature:nth-child(11) { animation-delay: 0.55s; }
.landing-feature:nth-child(12) { animation-delay: 0.6s; }

.landing-feature:hover {
  border-color: rgba(122, 162, 247, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.landing-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: rgba(122, 162, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.landing-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.landing-feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.landing-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.landing-footer a {
  color: var(--accent);
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

.landing-changelog-section {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  animation: landingFadeInUp 0.6s ease-out;
}
