@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=UnifrakturCook:wght@700&display=swap');

body {
  background: radial-gradient(ellipse at top left, #3a0a1b 0%, #18131d 80%);
  color: #f5e9e0;
  font-family: 'Cinzel', 'Georgia', serif;
  min-height: 100vh;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem 1rem;
  /* Reduced padding */
  background: linear-gradient(145deg, #2a0a18 60%, #18131d 100%);
  border-bottom: 2px solid #5a0a1b;
  box-shadow: 0 8px 32px rgba(90, 10, 27, 0.25);
  animation: fadeInDown 1.2s cubic-bezier(.77, 0, .18, 1) both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'UnifrakturCook', 'Cinzel', 'Georgia', serif;
  font-size: 2.2rem;
  /* Reduced font size */
  color: #ff003c;
  text-shadow: 0 2px 18px #000, 0 0 8px #ff003c, 0 0 2px #fff;
  letter-spacing: 0.12em;
  animation: glowRed 2.5s infinite alternate;
}

@keyframes glowRed {
  from {
    text-shadow: 0 2px 18px #000, 0 0 8px #ff003c, 0 0 2px #fff;
  }

  to {
    text-shadow: 0 4px 32px #ff003c, 0 0 16px #ff003c, 0 0 8px #fff;
  }
}

.hero p {
  color: #ffb3c6;
  font-size: 1.05rem;
  /* Reduced font size */
  font-family: 'Cinzel', 'Georgia', serif;
  animation: fadeIn 2s 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Remove all .tree and .mindmap related styles completely */

.footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #ffb3c6;
  font-size: 1rem;
  background: #18131d;
  border-top: 2px solid #5a0a1b;
  font-family: 'Cinzel', 'Georgia', serif;
  letter-spacing: 0.06em;
  animation: fadeIn 2s 1.2s both;
}

a {
  color: #ff003c;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

.construction-breadcrumb {
  background: none;
  padding: 0;
}

.construction-warning {
  display: block;
  background: linear-gradient(90deg, #ffe066 70%, #fff3cd 100%);
  color: #7c5700;
  font-weight: bold;
  border-radius: 0.7rem;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px #ffe06655;
  border: 2px solid #ffe066;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #fffbe6;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.dashboard {
  background: transparent;
  border-radius: 0.8rem;
  box-shadow: none;
  padding: 1.2rem 0 0.5rem 0;
  margin: 2rem auto 1.2rem auto;
  max-width: 900px;
  color: #ffb3c6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.dashboard h2 {
  color: #ff003c;
  font-family: 'UnifrakturCook', 'Cinzel', 'Georgia', serif;
  font-size: 1.2rem;
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.dashboard .stats {
  display: flex;
  gap: 2.2rem;
  margin: 0;
  flex-wrap: nowrap;
}

.dashboard .stat {
  background: none;
  border-radius: 0;
  padding: 0;
  min-width: 80px;
  text-align: center;
  color: #ffb3c6;
  box-shadow: none;
  font-size: 1rem;
  border-right: 1px solid #ff003c33;
}

.dashboard .stat:last-child {
  border-right: none;
}

.dashboard .stat div:first-child {
  font-weight: bold;
  color: #ff003c;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.dashboard .stat div:last-child {
  font-size: 1.1rem;
  color: #fff;
}

.new-topic-btn {
  background: #ff003c;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.98rem;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 0;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #ff003c33;
}

.new-topic-btn:hover {
  background: #fff;
  color: #ff003c;
}

.forum-section {
  background: #231a24;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #ff003c22;
  padding: 1.5rem 1.2rem;
  margin: 2rem auto 1.5rem auto;
  max-width: 900px;
  color: #ffb3c6;
  animation: fadeIn 1.2s both;
  border: none;
}

.forum-section h3 {
  color: #fff;
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.7rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-shadow: 0 2px 12px #ff003c66, 0 1px 2px #000;
  background: none;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  background: #2a0a18;
  border-radius: 0.7rem;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 2px 12px #ff003c22, 0 1.5px 6px #0004;
  transition: box-shadow 0.2s, background 0.2s, transform 0.18s;
  position: relative;
  animation: fadeInUp 1.1s both;
  border-left: 5px solid #ff003c;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.article-list li:hover {
  background: #31121d;
  box-shadow: 0 6px 24px #ff003c44, 0 2px 12px #0006;
  transform: translateY(-2px) scale(1.015);
  border-left: 5px solid #fff;
}

.article-title {
  color: #ff003c;
  font-size: 1.22rem;
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 0.1rem;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px #000, 0 0 2px #ff003c44;
  transition: color 0.2s;
}

.article-title:hover {
  color: #fff;
  text-decoration: underline;
}

.article-meta {
  font-size: 0.97rem;
  color: #ffb3c6;
  margin-bottom: 0.2rem;
  font-family: 'Cinzel', 'Georgia', serif;
  opacity: 0.85;
}

.article-excerpt {
  color: #f5e9e0;
  font-size: 1.07rem;
  font-family: 'Cinzel', 'Georgia', serif;
  margin-top: 0.1rem;
  text-shadow: 0 1px 4px #000;
  opacity: 0.96;
}

.tree-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* Pyramid Demo Styles (scoped) */
.pyramid-demo {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  aspect-ratio: 16/9;
  background: transparent;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px #ff003c22, 0 1.5px 6px #0004;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.pyramid-demo #glcanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent !important; /* Ensure transparency */
  border-radius: inherit;
}

.pyramid-demo #labelsContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.pyramid-demo .label {
  position: absolute;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #0008;
  font-family: 'Cinzel', 'Georgia', serif;
  letter-spacing: 0.03em;
}

.pyramid-demo .label:hover {
  background: #fff;
  color: #ff003c;
}

.pyramid-demo .rotate-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ff003c33;
  box-shadow: 0 2px 8px #ff003c22;
}

.pyramid-demo .rotate-btn:hover {
  background: #fff;
  color: #ff003c;
}

.pyramid-demo #rotateLeft {
  left: 1.2rem;
}

.pyramid-demo #rotateRight {
  right: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .pyramid-demo {
    aspect-ratio: 1/1;
    min-height: 220px;
    max-width: 98vw;
  }

  .pyramid-demo .label {
    font-size: 0.92rem;
    padding: 2px 6px;
  }

  .pyramid-demo .rotate-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    line-height: 36px;
  }

  .pyramid-demo #rotateLeft,
  .pyramid-demo #rotateRight {
    left: 0.5rem;
    right: 0.5rem;
  }
}

.logo-billboard {
  transition: left 0.1s, top 0.1s;
  z-index: 10;
}

.wisdom-section {
  background: linear-gradient(120deg, #2a0a18 80%, #ff003c22 100%);
  border-radius: 1.2rem;
  box-shadow: 0 6px 32px #ff003c33, 0 2px 12px #0007;
  padding: 2.2rem 1.5rem 1.7rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1.5px solid #ff003c55;
  animation: fadeIn 1.2s both;
  position: relative;
  overflow: hidden;
}

.wisdom-title {
  font-size: 2rem;
  font-family: 'UnifrakturCook', 'Cinzel', 'Georgia', serif;
  background: linear-gradient(90deg, #ff003c 40%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px #ff003c44, 0 1px 2px;
  color:white;
  margin-bottom: 1.3rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.wisdom-icon {
  font-size: 1.7rem;
  filter: drop-shadow(0 2px 8px #ff003c88 #000);
  color: #000;
}

.wisdom-excerpt {
  background: rgba(24, 19, 29, 0.82);
  border-radius: 0.8rem;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  border: 1.5px solid #ff003c33;
  box-shadow: 0 2px 12px #ff003c22, 0 1.5px 6px #0004;
  font-size: 1.13rem;
  color: #ffe6f0;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  transition: box-shadow 0.2s;
}

.wisdom-excerpt h5 {
  color: #ffb3c6;
  font-size: 1.15rem;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', 'Georgia', serif;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px #ff003c33;
}

.wisdom-excerpt ul {
  padding-left: 1.2rem;
  margin-bottom: 1.1rem;
}

.wisdom-excerpt li {
  margin-bottom: 0.45rem;
  padding-left: 0.1rem;
  position: relative;
  line-height: 1.6;
  font-size: 1.07rem;
}

.wisdom-excerpt li::before {
  content: "⟡";
  color: #ff003c;
  font-size: 1.1em;
  margin-right: 0.7em;
  position: relative;
  top: 0.1em;
  opacity: 0.8;
}

.wisdom-excerpt blockquote {
  background: linear-gradient(90deg, #ff003c22 60%, #fff3cd33 100%);
  border-left: 4px solid #ff003c;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.09rem;
  margin: 1.3rem 0 0.5rem 0;
  padding: 1rem 1.2rem 1rem 1.3rem;
  box-shadow: 0 2px 12px #ff003c22;
  font-style: italic;
  text-shadow: 0 1px 4px #0008;
}

@media (max-width: 700px) {
  .wisdom-section {
    padding: 1.1rem 0.4rem 0.8rem 0.4rem;
  }

  .wisdom-title {
    font-size: 1.2rem;
    gap: 0.4rem;
  }

  .wisdom-excerpt {
    font-size: 1.01rem;
    padding: 0.8rem 0.5rem 0.7rem 0.5rem;
  }
}
