/* ==========================================================================
   DISCORD-PREVIEW.CSS — Pixel-Perfect Discord Dark Embed Components
   ========================================================================== */

.discord-preview-card {
  background: #313338;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: var(--r-xl, 16px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-preview-header {
  background: #1e1f22;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

.discord-channel-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dbdee1;
  font-weight: 600;
  font-size: 0.85rem;
}
.discord-channel-hash {
  color: #80848e;
  font-size: 1rem;
}

.discord-live-tag {
  background: rgba(35,165,90,0.12);
  color: #23a55a;
  border: 1px solid rgba(35,165,90,0.25);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.discord-message-container {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.discord-bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.discord-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-message-content {
  flex: 1;
  min-width: 0;
}

.discord-author-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  line-height: 1.3;
}

.discord-author-name {
  font-weight: 600;
  color: #f2f3f5;
  font-size: 0.88rem;
  cursor: pointer;
}
.discord-author-name:hover {
  text-decoration: underline;
}

.discord-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.discord-timestamp {
  font-size: 0.65rem;
  color: #949ba4;
  margin-left: 3px;
}

/* ── Embed ── */
.discord-embed {
  background: #2b2d31;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 5px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-left-color 0.2s ease;
}

.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}
.discord-embed-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.discord-embed-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.discord-embed-description {
  font-size: 0.82rem;
  color: #dbdee1;
  line-height: 1.4;
  white-space: pre-line;
  word-break: break-word;
}

.discord-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 3px;
}

.discord-field-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.discord-field-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}
.discord-field-value {
  font-size: 0.78rem;
  color: #dbdee1;
}

/* ── Banner Image inside Embed ── */
.discord-embed-banner-wrap {
  margin-top: 4px;
  border-radius: 4px;
  overflow: hidden;
  max-height: 260px;
}
.discord-embed-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #949ba4;
  margin-top: 3px;
}
.discord-embed-footer img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* ── Discord Buttons & Components ── */
.discord-components-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-width: 520px;
}

.discord-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
  line-height: 1.2;
  border: none;
}

.discord-btn-primary {
  background: #5865f2;
  color: #ffffff;
}
.discord-btn-primary:hover { background: #4752c4; }

.discord-btn-secondary {
  background: #4e5058;
  color: #ffffff;
}
.discord-btn-secondary:hover { background: #6d6f78; }

.discord-btn-success {
  background: #23a55a;
  color: #ffffff;
}
.discord-btn-success:hover { background: #1f944f; }

.discord-btn-danger {
  background: #da373c;
  color: #ffffff;
}
.discord-btn-danger:hover { background: #be2f34; }

/* ── Select Menu ── */
.discord-select-menu-wrap {
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  position: relative;
}
.discord-select-button {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  padding: 8px 12px;
  color: #dbdee1;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.discord-select-button:hover { border-color: #3f4147; }
