:root {
  --green: #4CAF50;
  --green-bright: #6ee86e;
  --blue-dark: #0d1b6e;
  --blue-mid: #1a3a9e;
  --blue-bg: #0c1660;
  --white: #ffffff;
  --gray-light: #c5d0f0;
  --card-border: rgba(100, 150, 255, 0.25);
  --post-bg: rgba(15, 30, 110, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #1e3fa8 0%, #0c1660 40%, #060e3a 100%);
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(72, 200, 100, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(40px, 30px);
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(6, 14, 58, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(100, 150, 255, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo .diamond {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4CAF50, #2ecc40);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 18px rgba(76, 175, 80, 0.7);
  animation: pulse-diamond 2.5s ease-in-out infinite;
}

@keyframes pulse-diamond {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(76, 175, 80, 0.7);
  }

  50% {
    box-shadow: 0 0 36px rgba(76, 175, 80, 1);
  }
}

.nav-logo span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  color: white;
}

.nav-logo span em {
  color: var(--green-bright);
  font-style: normal;
  font-size: 17px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  padding: 8px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
}

.nav-tab.active {
  background: var(--green);
  color: white;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.nav-tab.inactive {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.nav-tab.inactive:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-dots {
  display: flex;
  gap: 4px;
}

.nav-dots span {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

/* LAYOUT */
.page {
  padding: 88px 48px 60px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(197, 208, 240, 0.6);
  margin-bottom: 20px;
  grid-column: 1/-1;
}

.breadcrumb a {
  color: var(--green-bright);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  opacity: 0.4;
}

/* THREAD HEADER */
.thread-header {
  grid-column: 1/-1;
  background: var(--post-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 4px;
}

.thread-cover {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3a1e, #1a5c2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thread-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Replace placeholder: <img src="images/thread-cover.jpg" alt=""> */
.thread-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 58, 0.9) 0%, transparent 60%);
}

.thread-cover-emoji {
  font-size: 72px;
  opacity: 0.3;
  position: relative;
  z-index: 1;
}

.thread-header-body {
  padding: 24px 28px;
}

.thread-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.thread-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.thread-tag.release {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.thread-tag.pinned {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.4);
}

.thread-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1.0;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(197, 208, 240, 0.6);
  font-weight: 700;
}

.thread-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-bright);
}

.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.thread-stats {
  display: flex;
  gap: 16px;
}

.thread-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* MAIN COLUMN */
.thread-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* POSTS */
.post {
  background: var(--post-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 80px 1fr;
}

.post.op {
  border-color: rgba(76, 175, 80, 0.4);
}

.post-sidebar {
  background: rgba(10, 20, 80, 0.5);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--card-border);
  text-align: center;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-avatar.leuan {
  background: linear-gradient(135deg, #4CAF50, #2196F3);
  border-color: rgba(76, 175, 80, 0.6);
}

.post-avatar.user1 {
  background: linear-gradient(135deg, #9b59b6, #6c3483);
}

.post-avatar.user2 {
  background: linear-gradient(135deg, #e74c3c, #922b21);
}

.post-avatar.user3 {
  background: linear-gradient(135deg, #f39c12, #d35400);
}

.post-avatar.user4 {
  background: linear-gradient(135deg, #1abc9c, #0e6655);
}

.post-username {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  line-height: 1.2;
}

.post-role {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.post-role.dev {
  background: rgba(76, 175, 80, 0.3);
  color: var(--green-bright);
}

.post-role.mod {
  background: rgba(155, 89, 182, 0.3);
  color: #c39bd3;
}

.post-role.member {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.post-count {
  font-size: 9px;
  color: rgba(197, 208, 240, 0.4);
  font-weight: 700;
  margin-top: 4px;
}

.post-body {
  padding: 20px 24px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.post-date {
  font-size: 11px;
  color: rgba(197, 208, 240, 0.5);
  font-weight: 700;
}

.post-num {
  font-size: 11px;
  color: rgba(197, 208, 240, 0.3);
  font-weight: 700;
}

.post-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-light);
}

.post-content p {
  margin-bottom: 12px;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content strong {
  color: white;
  font-weight: 800;
}

.post-content code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(100, 150, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--green-bright);
}

.post-content pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(100, 150, 255, 0.3);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-family: monospace;
  font-size: 12px;
  color: var(--green-bright);
  overflow-x: auto;
  line-height: 1.6;
}

.post-content .tip-box {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-left: 4px solid var(--green);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 13px;
}

.post-content .warn-box {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-left: 4px solid #f39c12;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 13px;
}

.post-content h3 {
  font-size: 16px;
  color: white;
  font-weight: 900;
  margin: 16px 0 8px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  font-size: 20px;
}

.post-content ul {
  padding-left: 18px;
  margin: 8px 0;
}

.post-content ul li {
  margin-bottom: 5px;
  font-size: 13px;
}

/* Post footer - reactions */
.post-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 150, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reactions {
  display: flex;
  gap: 6px;
}

.reaction-btn {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.reaction-btn.active {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.5);
  color: var(--green-bright);
}

.post-actions {
  display: flex;
  gap: 8px;
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: rgba(197, 208, 240, 0.4);
  transition: color 0.2s;
  font-family: 'Nunito', sans-serif;
}

.post-action-btn:hover {
  color: rgba(197, 208, 240, 0.8);
}

/* Quote */
.quote-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 150, 255, 0.2);
  border-left: 3px solid rgba(100, 150, 255, 0.5);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(197, 208, 240, 0.6);
  font-style: italic;
}

.quote-author {
  font-weight: 800;
  color: rgba(197, 208, 240, 0.8);
  font-style: normal;
  margin-bottom: 4px;
  font-size: 11px;
}

/* Reply form */
.reply-form {
  background: var(--post-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 24px;
}

.reply-form h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.reply-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 10px;
  padding: 14px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.reply-textarea::placeholder {
  color: rgba(197, 208, 240, 0.3);
}

.reply-textarea:focus {
  border-color: rgba(76, 175, 80, 0.6);
}

.reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.reply-tools {
  display: flex;
  gap: 6px;
}

.tool-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(197, 208, 240, 0.6);
  font-size: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-reply {
  padding: 10px 28px;
  background: var(--green);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.4);
  transition: all 0.2s;
}

.btn-reply:hover {
  box-shadow: 0 0 26px rgba(76, 175, 80, 0.7);
  transform: translateY(-1px);
}

/* SIDEBAR */
.thread-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  background: var(--post-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
}

.sidebar-card h4 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(100, 150, 255, 0.2);
}

.related-thread {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(100, 150, 255, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.related-thread:last-child {
  border-bottom: none;
}

.related-thread:hover {
  opacity: 0.8;
}

.related-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a2a7a, #0d1b5e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.related-meta {
  font-size: 10px;
  color: rgba(197, 208, 240, 0.4);
  font-weight: 700;
  margin-top: 2px;
}

.participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.participant-avatar:hover {
  transform: scale(1.15);
}

/* Pagination in thread */
.thread-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.tp-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-btn.active {
  background: var(--green);
  color: white;
}

.tp-btn.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.tp-btn.inactive:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0;
  animation: pf linear infinite;
}

@keyframes pf {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-20vh) rotate(360deg);
    opacity: 0;
  }
}

.version-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 100;
  border-radius: 0 8px 0 0;
}