@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Start of reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* End of reset styles */

/* Start of theme colors */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --bg-table-row: #0e0e16;
  --border: #2a2a3a;
  --accent: #e040fb;
  --accent-dim: #b030d0;
  --accent-glow: rgba(224, 64, 251, 0.15);
  --accent-glow-strong: rgba(224, 64, 251, 0.3);
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --text-cmd: #ff80ff;
  /* tag colors */
  --tag-combat: #ff4444;
  --tag-social: #44aaff;
  --tag-guild: #ffaa00;
  --tag-party: #44ff88;
  --tag-emote: #ff80ff;
  --tag-corpse: #888899;
  --tag-appearance: #aa88ff;
  --tag-spells: #ff6644;
  --tag-utility: #66cccc;
  --tag-performance: #88cc44;
  --tag-world: #cc8844;
  --tag-reporting: #ff8888;
  --tag-pet: #66ddaa;
}
/* End of theme colors */

/* Start of body styles */
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
/* End of body styles */

/* Start of background gradient effect */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(224, 64, 251, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(100, 40, 200, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* End of background gradient effect */

/* Start of main container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}
/* End of main container */

/* Start of top navigation */
.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
}
/* End of top navigation */

.nav-changelog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(68, 255, 136, 0.15);
  border: 1px solid #44ff88;
  border-radius: 6px;
  color: #44ff88;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-changelog:hover {
  background: #44ff88;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(68, 255, 136, 0.3);
}

.nav-separator {
  color: var(--border);
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.discord-icon {
  margin-right: 0.4rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-link:hover .discord-icon {
  transform: scale(1.1);
}

/* header section */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, rgba(224, 64, 251, 0.08), rgba(100, 40, 200, 0.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff80ff, #e040fb, #aa44ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ─── Search Bar ─── */
.search-wrap {
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  color: var(--text-dim);
  font-size: 1.1rem;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

#searchInput::placeholder {
  color: var(--text-dim);
}

.search-count {
  color: var(--accent-dim);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

/* category navigation */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.cat-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* content sections */
.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.section-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.section-header h2 {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cmd-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* command cards */
.cmd-grid {
  display: grid;
  gap: 1.25rem;
}

.cmd-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: start;
  position: relative;
  overflow: hidden;
}

@media (min-width: 850px) {
  .cmd-row {
    grid-template-columns: 340px 1fr;
    gap: 2rem;
  }
}

.cmd-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-glow);
  transform: translateY(-2px);
}

.cmd-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.cmd-row:hover::before {
  opacity: 1;
}

.cmd-row.hidden {
  display: none;
}

/* command name */
.cmd-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-cmd);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s;
}

.cmd-name:hover {
  opacity: 0.85;
}

.cmd-name .slash {
  color: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.cmd-name .params {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: inline-block;
  line-height: 1.5;
  word-break: break-word;
  font-family: 'JetBrains Mono', monospace;
}

/* command description */
.cmd-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

/* badges */
.official-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-actions {
  background: rgba(224, 64, 251, 0.15);
  color: var(--accent);
}

.badge-commands {
  background: rgba(68, 170, 255, 0.15);
  color: var(--tag-social);
}

.badge-corpse {
  background: rgba(136, 136, 153, 0.15);
  color: var(--tag-corpse);
}

/* quick reference */
.qr-section { margin-bottom: 2rem; }
.qr-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.qr-header h3 { font-size: 1rem; font-weight: 600; color: #fff; }
.qr-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.15rem 0.5rem; border-radius: 4px; }
.qr-list { display: grid; gap: 0.35rem; }
.qr-item { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 0.75rem; padding: 0.5rem 0.85rem; background: var(--bg-table-row); border-radius: 8px; align-items: baseline; transition: background 0.15s; }
.qr-item:hover { background: var(--bg-card-hover); }
.qr-item.hidden { display: none; }
.qr-cmd { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--text-cmd); }
.qr-desc { font-size: 0.82rem; color: var(--text-dim); }

/* divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

.divider-label {
  text-align: center;
  margin-bottom: -1.5rem;
  position: relative;
  top: -0.7rem;
}

.divider-label span {
  background: var(--bg-dark);
  padding: 0 1rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* footer */
footer {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

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

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

.changelog-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent-glow-strong);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.changelog-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 64, 251, 0.3);
}

/* no results message */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-size: 1.1rem;
  display: none;
}

.no-results.show {
  display: block;
}

/* ─── Toast Notification ─── */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(224, 64, 251, 0.4);
  max-width: 90vw;
  text-align: center;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Command Builder Modal ─── */
.param-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.param-modal.show {
  display: flex;
}

.param-modal-content {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem;
  max-width: 540px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  margin-bottom: 1.5rem;
}

.param-modal-content h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

.modal-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ─── Parameter Form ─── */
.param-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.param-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.param-input-group label {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.param-input-group input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  transition: all 0.2s;
}

.param-input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.param-input-group input::placeholder {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ─── Option Buttons (Accessible Clickable Choices) ─── */
.option-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  text-align: center;
}

.option-btn:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
  color: #fff;
  transform: translateY(-1px);
}

.option-btn:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(224, 64, 251, 0.3);
}

/* ─── Preview Box ─── */
.param-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.param-preview-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.param-preview-cmd {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
  min-height: 1.5em;
}

/* ─── Modal Action Buttons ─── */
.param-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.param-btn {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.param-btn-copy {
  background: var(--accent);
  color: #fff;
}

.param-btn-copy:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(224, 64, 251, 0.4);
}

.param-btn-cancel {
  background: var(--bg-dark);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.param-btn-cancel:hover {
  background: var(--bg-table-row);
  color: var(--text);
}

/* ─── Has-Params Call-to-Action Badge ─── */
.has-params {
  position: relative;
}

.build-badge {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-glow-strong);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.build-badge:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(224, 64, 251, 0.3);
}

/* ─── Changelog Section ─── */
.changelog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}

.changelog-back:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.changelog-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.changelog-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.changelog-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.changelog-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.changelog-entry:first-child {
  padding-top: 0;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.entry-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding-top: 0.2rem;
  white-space: nowrap;
}

.entry-content {
  position: relative;
}

.entry-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.badge-new {
  background: rgba(68, 255, 136, 0.15);
  color: #44ff88;
}

.badge-fix {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
}

.badge-update {
  background: rgba(68, 170, 255, 0.15);
  color: #44aaff;
}

.entry-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.entry-body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.entry-body p {
  margin-bottom: 0.75rem;
}

.entry-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.entry-body li strong {
  color: #fff;
}

.entry-body a {
  color: var(--accent);
  text-decoration: none;
}

.entry-body a:hover {
  text-decoration: underline;
}

.entry-image {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.entry-image img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-images {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.image-grid-features {
  margin-top: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.image-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 2px solid var(--border);
  min-height: 200px;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05);
}

.image-item:hover img {
  filter: brightness(1.2) contrast(1.1);
}

.image-caption {
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.entry-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.entry-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.entry-toggle.collapsed {
  transform: rotate(0deg);
}

.entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.action-heart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-heart:hover,
.action-heart.liked {
  color: #ff4466;
  border-color: #ff4466;
  background: rgba(255, 68, 102, 0.1);
}

.action-share-group {
  display: flex;
  gap: 0.5rem;
}

.action-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.action-share:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(224, 64, 251, 0.05);
}

.entry-collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.entry-collapsible.hidden {
  max-height: 0;
  opacity: 0;
}

/* Changelog Responsive */
@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-grid-features {
    grid-template-columns: 1fr;
  }
  
  .image-item img {
    min-height: 250px;
  }
}

@media (max-width: 700px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .entry-date {
    font-size: 0.82rem;
  }

  .entry-title {
    font-size: 1.2rem;
  }

  .changelog-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .entry-images {
    gap: 1.5rem;
  }
  
  .image-grid {
    gap: 1.25rem;
  }
  
  .image-item img {
    min-height: 200px;
  }
  
  .image-caption {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
}

/* ─── Image Modal Popup ─── */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  filter: brightness(1.1) contrast(1.05);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.image-modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── Responsive ─── */

/* Large Desktop & TV (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }

  header h1 {
    font-size: 2.8rem;
  }

  .cmd-row {
    padding: 2rem 1.75rem;
  }

  .cmd-name {
    font-size: 1.15rem;
  }

  .cmd-desc {
    font-size: 1.05rem;
  }
}

/* Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .container {
    max-width: 1200px;
  }
}

/* Laptop (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
  .container {
    max-width: 95%;
    padding: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .cmd-row {
    grid-template-columns: 300px 1fr;
  }
}

/* Tablet Landscape (701px - 899px) */
@media (min-width: 701px) and (max-width: 899px) {
  .container {
    padding: 1.25rem;
  }

  .top-nav {
    font-size: 0.85rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .cmd-row {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }

  .cat-nav {
    gap: 0.4rem;
  }

  .cat-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Mobile & Tablet Portrait (max-width: 700px) */
@media (max-width: 700px) {
  .container {
    padding: 1rem;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .nav-changelog {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-separator {
    display: none;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.85rem;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .cat-nav {
    gap: 0.35rem;
  }

  .cat-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  .cmd-row,
  .qr-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }

  .cmd-name,
  .qr-cmd {
    font-size: 0.85rem;
  }

  .cmd-desc {
    font-size: 0.88rem;
  }

  .option-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    min-width: 60px;
  }

  .param-modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .param-modal-content h3 {
    font-size: 1.2rem;
  }

  .build-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-changelog,
  .nav-link {
    text-align: center;
    width: 100%;
  }

  header {
    padding: 1.5rem 0.75rem;
  }

  header h1 {
    font-size: 1.3rem;
  }

  header p {
    font-size: 0.8rem;
  }

  .search-box {
    padding: 0 0.75rem;
  }

  .search-box input {
    font-size: 0.85rem;
    padding: 0.75rem 0;
  }

  .cat-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  .cmd-row {
    padding: 1rem 0.75rem;
  }

  .cmd-name {
    font-size: 0.8rem;
  }

  .cmd-desc {
    font-size: 0.85rem;
  }

  .param-modal-content {
    padding: 1.25rem;
  }

  .option-btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
  }
}
