/* forum.css - Premium Standalone Forum Styles */

:root {
  --forum-bg: #0b0f19;
  --forum-panel-bg: rgba(18, 25, 41, 0.7);
  --forum-border: rgba(184, 151, 90, 0.2);
  --forum-gold: #b8975a;
  --forum-gold-hover: #d4b572;
  --forum-text-main: #e2e8f0;
  --forum-text-muted: #94a3b8;
  --forum-accent: #3b82f6;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--forum-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(184, 151, 90, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--forum-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Navigation Bar --- */
.forum-navbar {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--forum-border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.forum-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.forum-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(184,151,90,0.5));
}

.forum-title {
  font-family: var(--font-serif);
  color: var(--forum-gold);
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.forum-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.forum-nav-link {
  color: var(--forum-text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.forum-nav-link:hover {
  color: var(--forum-gold);
}

.forum-nav-btn {
  background: rgba(184, 151, 90, 0.1);
  border: 1px solid var(--forum-gold);
  color: var(--forum-gold);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.forum-nav-btn:hover {
  background: var(--forum-gold);
  color: #000;
}

/* --- Main Layout --- */
.forum-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
  flex: 1;
}

.forum-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.forum-header-row h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Search & Filters --- */
.forum-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--forum-panel-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
}

.forum-search {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-family: var(--font-main);
}

/* --- Node/Category List --- */
.forum-category-block {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--forum-border);
  background: var(--forum-panel-bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.forum-category-header {
  background: rgba(184, 151, 90, 0.15);
  padding: 1rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--forum-gold);
  border-bottom: 1px solid var(--forum-border);
}

.forum-thread-list {
  display: flex;
  flex-direction: column;
}

.forum-thread-row {
  display: flex;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer;
  align-items: center;
  gap: 1.5rem;
}

.forum-thread-row:last-child {
  border-bottom: none;
}

.forum-thread-row:hover {
  background: rgba(255,255,255,0.03);
}

.thread-icon {
  width: 48px;
  height: 48px;
  background: rgba(184, 151, 90, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--forum-gold);
  flex-shrink: 0;
}

.thread-main {
  flex: 1;
}

.thread-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

.thread-meta {
  font-size: 0.85rem;
  color: var(--forum-text-muted);
  display: flex;
  gap: 1rem;
}

/* --- Thread View --- */
.post-view-header {
  background: var(--forum-panel-bg);
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.post-view-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--forum-gold);
  margin-bottom: 1rem;
}

.post-content-card {
  background: var(--forum-panel-bg);
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  display: flex;
  margin-bottom: 1rem;
  overflow: hidden;
}

.post-author-sidebar {
  width: 200px;
  background: rgba(0,0,0,0.2);
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  background: rgba(184, 151, 90, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--forum-gold);
}

.author-name {
  font-weight: bold;
  color: var(--forum-gold);
  margin-bottom: 0.5rem;
}

.post-body {
  flex: 1;
  padding: 2rem;
}

.post-text {
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #fff;
}

/* --- Forms & Buttons --- */
.forum-form-group {
  margin-bottom: 1.5rem;
}

.forum-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--forum-gold);
}

.forum-textarea, .forum-input, .forum-select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
}
.forum-select { padding: 0.75rem; }

.forum-textarea:focus, .forum-input:focus {
  outline: none;
  border-color: var(--forum-gold);
}

.forum-btn-primary {
  background: var(--forum-gold);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}
.forum-btn-primary:hover { background: var(--forum-gold-hover); }

.forum-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.forum-btn-secondary:hover { background: rgba(255,255,255,0.15); }

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--forum-text-muted);
}
