/* A Discord message as the homepage and the dashboard's post preview draw it
   (app/raids/discord-preview.js): channel bar, avatar, author line and embed footer.
   The homepage's own post (fields, buttons, the spec picker) is in
   home/discord-section.css. */

@layer layout {
  .discord-preview {
    border-radius: 10px;
    background: #292b30;
    color: #e9eaed;
    padding: 24px;
    box-shadow: var(--frame-shadow);
    border: 1px solid var(--border);
  }

  .discord-channel {
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 20px;
    border-bottom: 1px solid #414348;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .discord-channel > span:first-child {
    color: #93969f;
    font-size: 23px;
    font-weight: 400;
  }

  .discord-channel .tiny-label {
    margin-left: auto;
    color: #9fa6a6;
  }

  .discord-message {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 23px;
  }

  .discord-message > img {
    flex-shrink: 0;
  }

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

  .discord-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-wrap: wrap;
  }

  .discord-author > span {
    font-size: 7px;
    background: #5964d4;
    padding: 1px 4px;
    border-radius: 3px;
  }

  .discord-author small {
    color: #9ea0aa;
    font-size: 8px;
    font-weight: 400;
    margin-left: 4px;
  }

  .discord-embed-footer {
    border-top: 1px solid #373a3b;
    padding-top: 14px;
    margin-top: 18px;
    color: #b7beb0;
    font-size: 9px;
  }
}

@layer responsive {
  @media (max-width: 800px) {
    .discord-preview {
      max-width: 550px;
      width: calc(100% - 10px);
    }
  }

  @media (max-width: 520px) {
    .discord-preview {
      padding: 16px;
    }

    .discord-message {
      gap: 9px;
    }

    .discord-message > img {
      width: 28px;
      height: 28px;
    }

    .discord-author small {
      font-size: 7px;
    }
  }
}
