/* ==========================================================================
   WizMoto Forum Stylesheet — Pixel-Perfect React Prototype Match
   Theme Tokens:
     Primary:    #5464FF
     Secondary:  #788CFD
     Light:      #9BB0FF
     Pale:       #C1D8FF
     Cyan:       #E4FCFF
     Navy:       #050B20
     Background: #f8faff
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --wz-primary: #5464ff;
  --wz-primary-hover: #4052e6;
  --wz-secondary: #788cfd;
  --wz-light: #9bb0ff;
  --wz-pale: #c1d8ff;
  --wz-cyan: #e4fcff;
  --wz-navy: #050b20;
  --wz-bg: #f8faff;
  --wz-card-bg: #ffffff;
  --wz-text-dark: #050b20;
  --wz-text-muted: #6b7280;
  --wz-border-subtle: #f0f4ff;
}

/* --------------------------------------------------------------------------
   Scoped Container & Reset
   -------------------------------------------------------------------------- */
.wizmoto-forum {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  color: var(--wz-text-dark);
  background-color: var(--wz-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wizmoto-forum *,
.wizmoto-forum *::before,
.wizmoto-forum *::after {
  box-sizing: border-box;
}

.wizmoto-forum h1,
.wizmoto-forum h2,
.wizmoto-forum h3,
.wizmoto-forum h4,
.wizmoto-forum h5,
.wizmoto-forum h6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
  color: var(--wz-text-dark);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.wizmoto-forum a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.wizmoto-forum a:hover {
  text-decoration: none !important;
}

.wizmoto-forum button {
  font-family: inherit;
}

.wizmoto-forum svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.wz-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .wz-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .wz-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.wz-container-detail {
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .wz-container-detail {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Forum Hero Section
   -------------------------------------------------------------------------- */
.wz-hero-section {
  background: #ffffff;
  border-bottom: 1px solid var(--wz-pale);
  padding: 2rem 0;
  position: relative;
}

.wz-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .wz-hero-inner {
    flex-direction: row;
    align-items: center;
  }
}

.wz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: var(--wz-cyan);
  border: 1px solid var(--wz-pale);
  color: var(--wz-primary);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wz-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--wz-navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.wz-hero-subtitle {
  color: rgba(84, 100, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-weight: 400;
}

.wz-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .wz-hero-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.wz-search-box {
  position: relative;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .wz-search-box {
    width: 20rem;
  }
}

.wz-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(84, 100, 255, 0.5);
  pointer-events: none;
}

.wz-search-input {
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.25rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  background: #ffffff;
  border: 1px solid var(--wz-pale);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--wz-navy);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.wz-search-input:focus {
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 2px rgba(84, 100, 255, 0.2);
}

.wz-search-input::placeholder {
  color: #9ca3af;
}

.wz-search-clear {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wz-search-clear:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.wz-btn-primary {
  background: var(--wz-primary);
  color: #ffffff !important;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(84, 100, 255, 0.25);
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.wz-btn-primary:hover {
  background: var(--wz-primary-hover);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.wz-btn-primary:active {
  transform: scale(0.98);
}

/* Active Filter Notice */
.wz-filter-active-box {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: rgba(228, 252, 255, 0.4);
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(193, 216, 255, 0.6);
}

.wz-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 11px;
  font-weight: 600;
}

.wz-filter-pill-category {
  background: var(--wz-cyan);
  border: 1px solid var(--wz-pale);
  color: var(--wz-primary);
}

.wz-filter-pill-text {
  background: #ffffff;
  border: 1px solid var(--wz-pale);
  color: var(--wz-navy);
}

/* --------------------------------------------------------------------------
   Category Cards Grid
   -------------------------------------------------------------------------- */
.wz-categories-section {
  padding: 2rem 0;
  background: transparent;
}

.wz-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.wz-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-navy);
  letter-spacing: -0.01em;
  margin: 0;
}

.wz-section-subtitle {
  font-size: 0.8125rem;
  color: rgba(84, 100, 255, 0.7);
  margin-top: 0.125rem;
  margin-bottom: 0;
  font-weight: 400;
}

.wz-grid-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .wz-grid-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wz-grid-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wz-category-card {
  position: relative;
  padding: 1.125rem;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--wz-pale);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wz-category-card:hover {
  border-color: var(--wz-primary);
  background: rgba(228, 252, 255, 0.15);
  box-shadow: 0 4px 12px rgba(84, 100, 255, 0.08);
  transform: translateY(-1px);
}

.wz-category-card.active {
  border-color: var(--wz-primary);
  box-shadow:
    0 0 0 2px rgba(84, 100, 255, 0.2),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background: rgba(228, 252, 255, 0.4);
}

.wz-cat-top {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.wz-cat-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  background: var(--wz-cyan);
  border: 1px solid var(--wz-pale);
  color: var(--wz-primary);
}

.wz-cat-icon-container.active {
  background: var(--wz-primary);
  color: #ffffff;
  border-color: var(--wz-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wz-category-card:hover .wz-cat-icon-container:not(.active) {
  background: rgba(193, 216, 255, 0.5);
}

.wz-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wz-navy);
  margin: 0;
  transition: color 0.15s ease;
}

.wz-category-card:hover .wz-cat-title {
  color: var(--wz-primary);
}

.wz-category-card.active .wz-cat-title {
  color: var(--wz-primary);
}

.wz-cat-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

.wz-cat-footer {
  margin-top: 0.875rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--wz-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
}

.wz-cat-metrics {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wz-cat-metrics strong {
  color: var(--wz-navy);
  font-weight: 700;
}

.wz-cat-filtra {
  color: var(--wz-primary);
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wz-category-card:hover .wz-cat-filtra {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Discussions Feed Layout (8 col / 4 col)
   -------------------------------------------------------------------------- */
.wz-feed-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.wz-grid-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .wz-grid-feed {
    grid-template-columns: 8fr 4fr;
  }
}

.wz-feed-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(193, 216, 255, 0.6);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .wz-feed-header {
    flex-direction: row;
    align-items: center;
  }
}

.wz-sort-container {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--wz-pale);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
}

.wz-sort-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  color: rgba(5, 11, 32, 0.7);
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-block;
}

.wz-sort-pill:hover {
  color: var(--wz-primary);
  background: rgba(228, 252, 255, 0.3);
}

.wz-sort-pill.active {
  background: var(--wz-primary);
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(84, 100, 255, 0.25);
}

/* Discussion Row Card */
.wz-disc-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--wz-pale);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  cursor: pointer;
  display: block;
  position: relative;
  margin-bottom: 0.75rem;
}

.wz-disc-card:hover {
  box-shadow: 0 6px 16px rgba(84, 100, 255, 0.08);
  border-color: var(--wz-primary);
  transform: translateY(-1px);
}

.wz-disc-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .wz-disc-card-body {
    flex-direction: row;
    align-items: flex-start;
  }
}

.wz-disc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wz-badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 700;
  background: var(--wz-navy);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wz-badge-category {
  background: var(--wz-cyan);
  color: var(--wz-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
}

.wz-badge-vehicle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 10px;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
}

.wz-meta-author {
  font-size: 0.75rem;
  color: rgba(84, 100, 255, 0.6);
  font-weight: 500;
}

.wz-disc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wz-navy);
  line-height: 1.35;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.wz-disc-card:hover .wz-disc-title {
  color: var(--wz-primary);
}

.wz-disc-excerpt {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

.wz-counter-stack {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  align-self: center;
  padding-top: 0.25rem;
}

@media (min-width: 640px) {
  .wz-counter-stack {
    align-self: flex-start;
    padding-top: 0;
  }
}

.wz-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wz-counter-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wz-navy);
  line-height: 1;
}

.wz-counter-lbl {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wz-light);
  margin-top: 0.25rem;
}

.wz-disc-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wz-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.wz-disc-read {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wz-primary);
  opacity: 0;
  transition: opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.wz-disc-card:hover .wz-disc-read {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Sidebar Components
   -------------------------------------------------------------------------- */
.wz-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wz-sidebar-growth {
  background: var(--wz-navy);
  color: #ffffff;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(193, 216, 255, 0.2);
}

.wz-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wz-sidebar-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.wz-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.wz-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@keyframes wzPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

.wz-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: wzPulse 2s infinite ease-in-out;
  box-shadow: 0 0 6px #34d399;
}

.wz-pop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  margin-bottom: 0.75rem;
}

.wz-pop-heading h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(84, 100, 255, 0.7);
  margin: 0;
}

.wz-pop-item {
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--wz-pale);
  border-radius: 0.75rem;
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  display: block;
  margin-bottom: 0.625rem;
}

.wz-pop-item:hover {
  background: rgba(228, 252, 255, 0.25);
  border-color: var(--wz-primary);
  transform: translateY(-1px);
}

.wz-pop-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wz-navy);
  line-height: 1.35;
  margin: 0.25rem 0 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.wz-pop-item:hover .wz-pop-title {
  color: var(--wz-primary);
}

.wz-sidebar-market {
  background: var(--wz-navy);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(193, 216, 255, 0.2);
}

.wz-sidebar-rules {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--wz-pale);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* --------------------------------------------------------------------------
   Double Marketplace Banner (Blue & Navy)
   -------------------------------------------------------------------------- */
.wz-market-section {
  padding: 3rem 0;
}

.wz-grid-market {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .wz-grid-market {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wz-banner-card {
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 280px;
}

.wz-banner-blue {
  background: var(--wz-primary);
}

.wz-banner-navy {
  background: var(--wz-navy);
}

.wz-banner-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  margin-bottom: 1rem;
}

.wz-banner-blue .wz-banner-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.wz-banner-navy .wz-banner-icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.wz-banner-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.wz-banner-text {
  font-size: 0.875rem;
  max-width: 28rem;
  line-height: 1.6;
  margin: 0;
}

.wz-banner-blue .wz-banner-text {
  color: rgba(255, 255, 255, 0.85);
}

.wz-banner-navy .wz-banner-text {
  color: #d1d5db;
}

.wz-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  transition: all 0.2s ease;
  cursor: pointer;
  width: fit-content;
}

.wz-banner-blue .wz-banner-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wz-banner-blue .wz-banner-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wz-banner-navy .wz-banner-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wz-banner-navy .wz-banner-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wz-banner-glow {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.wz-banner-blue .wz-banner-glow {
  background: rgba(255, 255, 255, 0.12);
}

.wz-banner-navy .wz-banner-glow {
  background: rgba(84, 100, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Floating Widgets (Support Chat & Accessibility)
   -------------------------------------------------------------------------- */
.wz-floating-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.wz-floating-chat-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wz-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(84, 100, 255, 0.4);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.wz-floating-chat-btn:hover {
  background: var(--wz-secondary);
  transform: scale(1.05);
}

.wz-chat-dialog {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 20rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 35px rgba(5, 11, 32, 0.15);
  border: 1px solid var(--wz-pale);
  padding: 1rem;
  font-size: 0.75rem;
  display: none;
}

.wz-chat-dialog.open {
  display: block;
  animation: wzSlideUp 0.15s ease-out;
}

@keyframes wzSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wz-floating-a11y {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: none;
}

@media (min-width: 640px) {
  .wz-floating-a11y {
    display: block;
  }
}

.wz-floating-a11y-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--wz-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(84, 100, 255, 0.3);
  border: none;
  cursor: pointer;
  outline: 4px solid rgba(255, 255, 255, 0.6);
  transition: opacity 0.15s ease;
}

.wz-floating-a11y-btn:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Discussion Detail View (Clean Centered 896px Single Column)
   -------------------------------------------------------------------------- */
.wz-detail-page {
  padding: 2rem 0 4rem;
}

.wz-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wz-breadcrumbs a {
  color: #4b5563;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wz-breadcrumbs a:hover {
  color: var(--wz-primary);
}

.wz-post-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--wz-pale);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.wz-post-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--wz-border-subtle);
}

.wz-author-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--wz-bg);
  border: 1px solid var(--wz-pale);
  margin-bottom: 1.5rem;
}

.wz-author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(84, 100, 255, 0.2);
}

.wz-post-content {
  color: var(--wz-navy);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}

.wz-tag-pill {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--wz-bg);
  border: 1px solid var(--wz-pale);
  color: var(--wz-navy);
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  display: inline-block;
}

/* Solved Answer Banner */
.wz-solution-card {
  background: rgba(228, 252, 255, 0.4);
  border: 2px solid var(--wz-primary) !important;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wz-solution-banner-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wz-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wz-reply-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--wz-pale);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem;
  transition: all 0.15s ease;
}

.wz-btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--wz-pale);
  background: var(--wz-bg);
  color: var(--wz-navy);
}

.wz-btn-like:hover {
  background: rgba(228, 252, 255, 0.4);
  border-color: var(--wz-primary);
}

.wz-btn-like.liked {
  background: var(--wz-primary);
  color: #ffffff;
  border-color: var(--wz-primary);
}

.wz-btn-like.liked svg {
  fill: #ffffff;
}

.wz-composer {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--wz-pale);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.wz-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--wz-navy);
  background: var(--wz-bg);
  border: 1px solid var(--wz-pale);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
}

.wz-textarea:focus {
  background: #ffffff;
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 2px rgba(84, 100, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Modal Window
   -------------------------------------------------------------------------- */
.wz-modal-backdrop {
  background-color: rgba(5, 11, 32, 0.7) !important;
  backdrop-filter: blur(4px);
}

.wz-modal-content {
  border-radius: 1rem !important;
  border: 1px solid var(--wz-pale) !important;
  box-shadow: 0 25px 50px -12px rgba(5, 11, 32, 0.25) !important;
  overflow: hidden;
}

.wz-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--wz-pale);
  background: var(--wz-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wz-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 0.25rem;
}

.wz-form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  background: var(--wz-bg);
  border: 1px solid var(--wz-pale);
  color: var(--wz-navy);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s ease;
}

.wz-form-control:focus {
  background: #ffffff;
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 2px rgba(84, 100, 255, 0.2);
}
