/*
  Flex Dashboard — modules.css
  Module-spezifische Styles, polished
*/

/* ================================================================
   ROLE PILLS / LISTS
   ================================================================ */
.role-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 500;
  background: var(--bg-overlay);
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.role-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-overlay);
  transition: all 0.25s var(--ease-smooth);
  animation: slideInLeft 0.3s var(--ease-snappy) backwards;
}
.role-list li:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateX(2px);
}
.role-list li:nth-child(2) { animation-delay: 0.05s; }
.role-list li:nth-child(3) { animation-delay: 0.1s; }
.role-list li:nth-child(4) { animation-delay: 0.15s; }

/* ================================================================
   MUSIC PLAYER CARD
   ================================================================ */
.player-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(192,132,252,0.04));
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(124,92,255,0.1),
    transparent);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}
.player-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.player-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.player-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-author {
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.player-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================================================
   SUGGESTIONS
   ================================================================ */
.suggestion {
  padding: 18px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg-overlay);
  transition: all 0.25s var(--ease-smooth);
}
.suggestion:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.suggestion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.suggestion-header img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
}
.suggestion-body {
  white-space: pre-wrap;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}
.suggestion-meta {
  display: flex;
  gap: 8px;
}

/* ================================================================
   PERMISSIONS MODULE — Special UI
   ================================================================ */
.perm-entries { display: flex; flex-direction: column; gap: 10px; }

.perm-entry {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  background: var(--bg-overlay);
  overflow: hidden;
  transition: all 0.25s var(--ease-smooth);
}
.perm-entry:hover { border-color: var(--border-strong); }
.perm-entry[open] {
  border-color: var(--border-accent);
  background: rgba(124,92,255,0.04);
}

.perm-entry summary {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  user-select: none;
  transition: background 0.2s var(--ease-smooth);
  list-style: none;
  position: relative;
}
.perm-entry summary::-webkit-details-marker { display: none; }
.perm-entry summary::after {
  content: '⌄';
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: transform 0.3s var(--ease-snappy);
  font-weight: 300;
}
.perm-entry[open] summary::after { transform: rotate(180deg); }
.perm-entry summary:hover { background: var(--bg-hover); }

.perm-grid { padding: 18px; border-top: 1px solid var(--border-glass); }

.perm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.perm-table th,
.perm-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}
.perm-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.perm-table th:nth-child(2),
.perm-table th:nth-child(3),
.perm-table td:nth-child(2),
.perm-table td:nth-child(3) {
  text-align: center;
  width: 80px;
}
.perm-table th small {
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}
.perm-table tr:last-child td { border-bottom: none; }
.perm-table tbody tr {
  transition: background 0.15s var(--ease-smooth);
}
.perm-table tbody tr:hover { background: var(--bg-hover); }
.perm-table tbody tr td:first-child {
  font-weight: 500;
  text-transform: capitalize;
  color: var(--text-soft);
}

/* ================================================================
   AUTOMOD RULE LIST
   ================================================================ */
.cards-row .panel.coming-soon {
  background: linear-gradient(135deg, rgba(124,92,255,0.06), rgba(192,132,252,0.04));
}

/* AutoMod rule keywords preview - prevent overflow */
.data-table td .muted {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ================================================================
   LICENSE ERROR PAGE
   ================================================================ */
.error-page .kv {
  margin: 28px auto 0;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 8px 18px;
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
}

/* ================================================================
   BOT-NOT-IN-GUILD PAGE
   ================================================================ */
.container.bot-not-in-guild-page,
.container.bot-not-in-guild {
  text-align: center;
  padding-top: 60px;
}
