/* ── Hero ────────────────────────────────────────────────────────────────── */
.mods-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 24px;
  min-height: 130px;
  display: flex;
  align-items: center;
}

.mods-hero-bg {
  position: absolute;
  inset: 0;
  background: #14171d;
}

.mods-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
}

.mods-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mods-hero-title i {
  color: var(--primary);
}

.mods-hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.mods-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Catégories */
.mods-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mods-cat-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.mods-cat-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.mods-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Tri + Recherche */
.mods-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mods-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mods-sort-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

.mods-sort-btn {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.mods-sort-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.mods-sort-btn.active {
  background: rgba(230,0,126,0.15);
  border-color: rgba(230,0,126,0.4);
  color: var(--primary);
}

/* Recherche */
.mods-search-form {
  display: flex;
  align-items: center;
}

.mods-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mods-search-wrap i.ti-search {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.mods-search-wrap input[type="text"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 36px 7px 34px;
  font-size: 13px;
  color: var(--text);
  width: 220px;
  outline: none;
  transition: border-color .15s, background .15s;
}

.mods-search-wrap input[type="text"]::placeholder {
  color: var(--text-muted);
}

.mods-search-wrap input[type="text"]:focus {
  border-color: rgba(230,0,126,0.4);
  background: rgba(255,255,255,0.06);
}

.mods-search-clear {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mods-search-clear:hover {
  color: var(--text);
}

/* ── Liste de mods ───────────────────────────────────────────────────────── */
.mods-container {
  width: 100%;
}

.mods-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

/* Ligne de mod */
.mod-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .12s;
}

.mod-row:last-child {
  border-bottom: none;
}

.mod-row:hover {
  background: rgba(255,255,255,0.03);
}

/* Thumbnail */
.mod-row-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.mod-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mod-row-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
}

/* Contenu */
.mod-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mod-row-author {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 2px;
}

.mod-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-row:hover .mod-row-title {
  color: var(--primary);
}

.mod-row-badge {
  flex-shrink: 0;
  background: rgba(230,0,126,0.12);
  color: var(--primary);
  border: 1px solid rgba(230,0,126,0.25);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mod-row-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.mod-row-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.mod-row-meta i {
  margin-right: 4px;
  color: #e6007e;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.mods-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.mods-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
}

.mods-page-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.mods-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mods-page-dots {
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 4px;
}

/* Formulaire "Aller à la page" */
.mods-goto-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.mods-goto-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mods-goto-input {
  width: 56px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.mods-goto-input::-webkit-outer-spin-button,
.mods-goto-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.mods-goto-input:focus {
  border-color: rgba(230,0,126,0.4);
}

.mods-goto-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(230,0,126,0.15);
  border: 1px solid rgba(230,0,126,0.3);
  color: var(--primary);
  cursor: pointer;
  transition: background .15s;
}

.mods-goto-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── État vide ───────────────────────────────────────────────────────────── */
.mods-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mods-empty i {
  font-size: 42px;
  opacity: .4;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mods-hero-content { padding: 20px; }
  .mods-hero-title { font-size: 20px; }
  .mods-controls { flex-direction: column; align-items: flex-start; }
  .mods-search-wrap input[type="text"] { width: 100%; }
  .mods-search-form { width: 100%; }
  .mods-search-wrap { width: 100%; }
}

@media (max-width: 480px) {
  .mod-row { padding: 12px; gap: 10px; }
  .mod-row-thumb { width: 56px; height: 56px; }
  .mod-row-title { font-size: 14px; }
  .mod-row-summary { -webkit-line-clamp: 1; }
  .mod-row-badge { display: none; }
}
