body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.frontend-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #3a4ba0 0%, #7b3fa0 50%, #a03a5e 100%);
  display: flex;
  flex-direction: column;
}
header {
  text-align: center;
  padding: 2.5em 1em 1.2em 1em;
}
h1 {
  font-size: 2.5em;
  color: #e0e6ff;
  margin-bottom: 0.2em;
}
.subtitle {
  color: #ffe066;
  font-size: 1.2em;
  margin-top: 0;
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: center;
  margin: 0 0 2em 0;
}
#search {
  padding: 0.7em 1em;
  border-radius: 8px;
  border: none;
  font-size: 1.1em;
  width: 320px;
  background: #2d2d4d;
  color: #fff;
}
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  max-width: 600px;
}
.tag-chip {
  background: linear-gradient(90deg, #3a4ba0, #7b3fa0);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0.4em 1.1em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.2em;
}
.tag-chip.selected, .tag-chip:hover {
  background: #ffe066;
  color: #3a4ba0;
}
.btn {
  background: linear-gradient(90deg, #3a4ba0, #7b3fa0);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.3em;
  font-size: 1em;
  cursor: pointer;
  margin-left: 1em;
  transition: background 0.2s;
}
.btn:hover {
  background: linear-gradient(90deg, #7b3fa0, #a03a5e);
}
.wisdom-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto 3em auto;
  padding: 0 1em;
}
.wisdom-card {
  background: rgba(30, 30, 60, 0.97);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(60, 30, 90, 0.18);
  padding: 2em 1.5em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  position: relative;
  min-height: 180px;
  transition: box-shadow 0.2s;
}
.wisdom-card:hover {
  box-shadow: 0 8px 32px rgba(60, 30, 90, 0.28);
}
.wisdom-text {
  font-size: 1.25em;
  color: #e0e6ff;
  margin-bottom: 0.5em;
  font-style: italic;
}
.wisdom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  font-size: 1em;
  color: #ffe066;
  align-items: center;
}
.wisdom-tags {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  align-self: flex-end;
}
.wisdom-tag {
  background: #a03a5e;
  color: #fff;
  border-radius: 12px;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  margin-bottom: 0.1em;
}
.copy-btn {
  background: #a0ffb3;
  color: #3a4ba0;
  border: none;
  border-radius: 8px;
  padding: 0.3em 0.9em;
  font-size: 0.95em;
  cursor: pointer;
  margin-left: 0.5em;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover {
  background: #ffe066;
  color: #a03a5e;
}
footer {
  text-align: center;
  color: #b3e6ff;
  margin-bottom: 1.5em;
  margin-top: auto;
  font-size: 1em;
}
@media (max-width: 600px) {
  .wisdom-list {
    gap: 1.2em;
  }
  .frontend-bg {
    padding: 0;
  }
  header {
    padding: 1.5em 0.5em 0.7em 0.5em;
  }
}
.wisdom-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2em;
  padding: 0.7em 0;
  border-bottom: 1px solid #3a4ba0;
}
.wisdom-link {
  flex: 1;
  text-decoration: none;
  color: #e0e6ff;
  font-size: 1.1em;
  line-height: 1.4;
}
.wisdom-author {
  display: block;
  margin-top: 0.25em;
  color: #ffe066;
}
.wisdom-empty {
  color: #ffe066;
  text-align: center;
  font-size: 1.2em;
  margin-top: 2em;
}
.wisdom-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
} 