/* ===================================================
  LaymenStage Forum Styles
  Aligned with main site aesthetic: glassmorphism,
  radial glows, tight typography, soft lifts.
  =================================================== */

.forum-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }
}

/* Base Glass Card */
.forum-glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

/* Hero Banner */
.forum-hero-banner {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.forum-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%; right: 40%; bottom: -50%;
  background: radial-gradient(circle, rgba(123,44,191,.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.forum-hero-banner::after {
  content: '';
  position: absolute;
  top: 0; right: -10%; bottom: 0; width: 50%;
  background: radial-gradient(circle at right, rgba(45,125,255,.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.forum-hero-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}

.forum-hero-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 16px;
}

.forum-hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.forum-hero-illustration {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.forum-hero-illustration svg {
  width: 64px;
  height: 64px;
  fill: var(--accent-h);
  filter: drop-shadow(0 4px 12px rgba(168, 200, 255, 0.4));
}

/* Section Titles */
.forum-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-section-title svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

/* List Container */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Row (Category / Topic) */
.forum-row {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  text-decoration: none;
  gap: 20px;
}

.forum-row:hover {
  border-color: rgba(142, 182, 255, .3);
  background: rgba(142, 182, 255, .04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.forum-row:focus-visible {
  outline: 2px solid rgba(91, 141, 239, .7);
  outline-offset: 2px;
}

.forum-row-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.forum-row-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Tag Gradients */
.bg-general { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bg-feature { background: linear-gradient(135deg, #059669, #10b981); }
.bg-bug     { background: linear-gradient(135deg, #dc2626, #ef4444); }
.bg-design  { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

.forum-row-content {
  flex: 1;
  min-width: 0;
}

.forum-row-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.forum-row:hover .forum-row-title {
  color: var(--accent-h);
}

.forum-row-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.forum-row-stats {
  display: flex;
  gap: 32px;
  text-align: right;
  flex-shrink: 0;
}

.forum-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.forum-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.forum-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Sidebar Widgets */
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.forum-widget {
  padding: 24px;
}

.forum-widget-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-widget-title svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.forum-widget-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-widget-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.forum-widget-item:hover {
  background: rgba(255,255,255,0.04);
}

.forum-widget-item:hover .forum-widget-item-title {
  color: var(--accent-h);
}

.forum-widget-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-widget-item-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Topic View - Floating Cards */
.forum-thread-post {
  display: flex;
  margin-bottom: 24px;
}

.forum-thread-user {
  width: 220px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.01);
  border-right: 1px solid var(--line);
}

.forum-thread-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 4px;
  word-break: break-word;
}

.forum-thread-user-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(91,141,239,.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

.forum-thread-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.forum-thread-header {
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.forum-thread-content {
  padding: 32px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  flex: 1;
}

.forum-thread-media {
  padding: 0 32px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-thread-media img {
  max-height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.forum-thread-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255,255,255,0.01);
}

@media (max-width: 600px) {
  .forum-thread-post {
    flex-direction: column;
  }
  .forum-thread-user {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    padding: 16px 24px;
    text-align: left;
    gap: 16px;
  }
  .forum-thread-user-name {
    margin: 0;
  }
  .forum-thread-user-role {
    margin-top: 0;
  }
}
/* Professional forum refresh */
:root{--forum-ink:#f5f7fb;--forum-muted:#9aa7bd;--forum-subtle:#6f7c92;--forum-border:rgba(160,178,211,.14);--forum-accent:#7c9cff;--forum-shadow:0 24px 70px rgba(2,6,23,.32)}
.community-page{background:radial-gradient(circle at 8% 0%,rgba(74,104,205,.14),transparent 28rem),radial-gradient(circle at 92% 10%,rgba(34,197,167,.08),transparent 24rem),#0b1020;color:var(--forum-ink)}
.community-main{padding:112px 0 76px}.community-container{max-width:1240px}
.forum-layout{max-width:none;grid-template-columns:minmax(0,1fr) 304px;gap:28px}
.forum-hero-banner{min-height:238px;margin-bottom:34px;padding:42px 48px;border:1px solid var(--forum-border);border-radius:24px;background:linear-gradient(120deg,rgba(23,34,55,.98),rgba(16,26,45,.88));box-shadow:var(--forum-shadow);overflow:hidden}
.forum-hero-banner::before{background:radial-gradient(circle,rgba(124,156,255,.2) 0%,transparent 64%)}.forum-hero-banner::after{background:radial-gradient(circle at right,rgba(45,125,255,.18) 0%,transparent 66%)}
.forum-hero-content{max-width:640px}.forum-hero-title{max-width:600px;font-size:clamp(32px,4vw,46px);line-height:1.05;letter-spacing:-.045em}.forum-hero-desc{max-width:520px;color:#aebbd0;font-size:16px;line-height:1.7}.forum-hero-illustration{width:156px;height:156px;border-color:rgba(160,178,211,.2);background:rgba(255,255,255,.04)}
.forum-section-title{margin:0 0 16px;color:var(--forum-ink);font-size:18px;letter-spacing:-.02em}.forum-section-title svg,.forum-widget-title svg{fill:var(--forum-accent)}
.forum-list,.forum-widget{border:1px solid var(--forum-border);background:rgba(18,26,43,.88);box-shadow:0 14px 36px rgba(2,6,23,.16)}.forum-list{gap:0;overflow:hidden;border-radius:18px}
.forum-row{min-height:104px;padding:22px 24px;gap:18px;border-bottom:1px solid var(--forum-border);transition:background .18s ease}.forum-row:last-child{border-bottom:0}.forum-row:hover{transform:none;background:rgba(124,156,255,.08);border-color:var(--forum-border);box-shadow:none}
.forum-row-icon{width:44px;height:44px;border-radius:13px;box-shadow:none}.forum-row-icon svg{width:20px;height:20px}.bg-general{background:#3157b8}.bg-feature{background:#167f75}.bg-bug{background:#a44654}.bg-design{background:#744cba}
.forum-row-title{margin-bottom:5px;font-size:16px;font-weight:700}.forum-row-desc{color:var(--forum-muted);line-height:1.45}.forum-row-stats{gap:24px}.forum-stat-val{font-size:16px}.forum-stat-label{color:var(--forum-subtle);font-size:10px}
.forum-sidebar{gap:18px}.forum-widget{padding:22px;border-radius:18px}.forum-widget-title{margin-bottom:16px;font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:#dce5f5}.forum-widget-list{gap:10px}.forum-widget-item{padding:11px 10px;margin:-1px -10px;border-radius:10px}.forum-widget-item:hover{background:rgba(124,156,255,.08)}.forum-widget-item-title{font-size:13px;line-height:1.45}.forum-widget-item-meta{color:var(--forum-subtle);font-size:11px}
.community-footer{border-top-color:var(--forum-border);background:rgba(9,14,28,.62)}
@media (max-width:900px){.community-main{padding-top:96px}.forum-layout{grid-template-columns:1fr}.forum-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media (max-width:600px){.community-main{padding:88px 0 48px}.forum-hero-banner{min-height:0;padding:30px 24px;border-radius:18px}.forum-hero-title{font-size:32px}.forum-hero-illustration{display:none}.forum-row{min-height:0;padding:18px 16px;gap:13px;align-items:flex-start}.forum-row-icon{width:38px;height:38px;border-radius:11px}.forum-row-title{font-size:15px;white-space:normal}.forum-row-desc{font-size:12px}.forum-row-stats{display:none}.forum-sidebar{display:flex}}
/* Focused forum homepage refinement */
.community-page{background:#0b1220}.community-main{padding-top:104px}.forum-hero-banner{display:flex;align-items:center;justify-content:space-between;min-height:0;padding:34px 40px;margin-bottom:30px;border-radius:20px;background:#111c30;border:1px solid rgba(166,184,219,.16);box-shadow:0 18px 48px rgba(0,0,0,.18)}.forum-hero-title{font-size:clamp(30px,3.6vw,42px);letter-spacing:-.04em;margin-bottom:12px}.forum-hero-desc{font-size:15px;color:#aebbd0;margin-bottom:20px}.forum-hero-illustration{width:118px;height:118px;opacity:.82}.forum-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.forum-main{min-width:0}.forum-section-title{font-size:15px;text-transform:uppercase;letter-spacing:.1em;color:#afbdd3;margin-bottom:12px}.forum-list{border-radius:14px;background:#111a2b;border-color:rgba(166,184,219,.14)}.forum-row{min-height:94px;padding:20px 22px;background:transparent}.forum-row-icon{width:40px;height:40px;border-radius:10px}.forum-row-title{font-size:15px;color:#edf2fa}.forum-row-desc{font-size:13px;color:#8f9db4}.forum-row-stats{gap:20px}.forum-stat-val{font-size:15px;color:#dbe5f4}.forum-sidebar{gap:14px}.forum-widget{padding:20px;border-radius:14px;background:#111a2b;border-color:rgba(166,184,219,.14);box-shadow:none}.forum-widget-title{font-size:12px;letter-spacing:.1em;margin-bottom:12px}.forum-widget-item{padding:9px 8px}.forum-widget-item-title{font-size:12px}.community-footer{margin-top:24px}@media(max-width:900px){.forum-layout{grid-template-columns:1fr}.forum-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.community-main{padding-top:84px}.forum-hero-banner{padding:28px 22px}.forum-hero-title{font-size:30px}.forum-hero-illustration{display:none}.forum-row{padding:16px}.forum-row-icon{width:36px;height:36px}.forum-row-desc{font-size:12px}.forum-row-stats{display:none}.forum-sidebar{display:flex}}
