/* Custom Font Declarations */
@font-face {
  font-family: "gg sans";
  src: url("../fonts/gg sans Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "gg sans";
  src: url("../fonts/gg sans Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "gg sans";
  src: url("../fonts/gg sans Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "gg sans";
  src: url("../fonts/gg sans Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

:root {
  --background-color: #1e1f22;
  --card-background: #2b2d31;
  --text-color: #ffffff;
  --secondary-text: #b5bac1;
  --accent-color: #5865f2;
  --tag-background: #383a40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "gg sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow: auto;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox, Safari 18.2+, Chromium 121+ */
}

body::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-discord-icon {
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-wrap: nowrap;
}

header h1 {
  margin-bottom: 0;
}

.discussions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 20px;
  flex-grow: 1;
}

.discussion-card {
  background-color: var(--card-background);
  border-radius: 8px;
  transition: transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.discussion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
  padding: 12px 15px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  overflow: hidden;
  height: 27px;
}

.tag {
  background-color: var(--tag-background);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag-icon {
  width: 14px;
  height: 14px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  -webkit-line-clamp: 1;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}

.title a {
  color: var(--text-color);
  text-decoration: none;
}

.title a:hover {
  text-decoration: underline;
}

.card-body {
  flex-grow: 1;
  padding: 0 15px 10px 15px;
}

.content {
  color: var(--secondary-text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta {
  display: flex;
  gap: 15px;
}

.messages,
.reactions {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-text);
  font-size: 13px;
}

.time {
  color: var(--secondary-text);
  font-size: 13px;
  text-wrap: nowrap;
  margin-left: 10px;
}

/* Support both class styles for backwards compatibility */
.card-content {
  flex-grow: 1;
  padding: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  color: var(--secondary-text);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.interactions {
  display: flex;
  gap: 15px;
}

.interaction {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-text);
  font-size: 13px;
}

.time-ago {
  color: var(--secondary-text);
  font-size: 13px;
}

@media (max-width: 450px) {
  .discussions-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 18px;
    text-wrap: wrap;
  }

  .card-body {
    display: none;
    overflow-x: hidden;
  }

  .discussions-grid {
    margin-bottom: 15px;
  }

  .title {
    -webkit-line-clamp: none;
  }
}

.title:hover {
  -webkit-line-clamp: none;
  /* overflow: visible; */
  display: block;
  /* background-color: var(--card-background); */
  /* height: 28.8px; */
}

html,
body {
  min-height: 100%;
}
