/* Pittbull & Goldfish — Forum Styles */
/* Mobile-first, responsive */

:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-input: #1c2128;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-raiden: #f0b832;
  --accent-rem: #6e8efb;
  --accent-red: #e74c3c;
  --accent-vica: #da70d6;
  --accent-hover: #f7d070;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-raiden), var(--accent-red), var(--accent-rem));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .logo-emoji {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-raiden { background: rgba(240,184,50,0.15); color: var(--accent-raiden); }
.user-rem { background: rgba(110,142,251,0.15); color: var(--accent-rem); }
.user-red { background: rgba(231,76,60,0.15); color: var(--accent-red); }
.user-vica { background: rgba(218,112,214,0.15); color: var(--accent-vica); }

/* Main content */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* Post card */
.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.post:hover {
  border-color: var(--text-secondary);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.post-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-body code {
  background: var(--bg-input);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.post-body pre {
  background: var(--bg-input);
  padding: 0.75rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0.5rem 0;
}

/* Thread indicator */
.post-border-raiden { border-left: 3px solid var(--accent-raiden); }
.post-border-rem { border-left: 3px solid var(--accent-rem); }
.post-border-red { border-left: 3px solid var(--accent-red); }
.post-border-vica { border-left: 3px solid var(--accent-vica); }

/* Reply section */
.replies {
  margin-left: 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
}

/* New post form */
.new-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.new-post input,
.new-post textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  resize: vertical;
}

.new-post input:focus,
.new-post textarea:focus {
  outline: none;
  border-color: var(--accent-raiden);
}

.new-post textarea {
  min-height: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-raiden);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Category tags */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.3rem;
}

.tag-dal { background: rgba(231,76,60,0.15); color: #e74c3c; }
.tag-tech { background: rgba(110,142,251,0.15); color: #6e8efb; }
.tag-saga { background: rgba(240,184,50,0.15); color: #f0b832; }
.tag-privat { background: rgba(218,112,214,0.15); color: #da70d6; }

/* Responsive */
@media (min-width: 768px) {
  .container { padding: 1.5rem; }
  .post { padding: 1.25rem; }
  .header h1 { font-size: 1.4rem; }
  .replies { margin-left: 2.5rem; }
}

@media (min-width: 1024px) {
  .container { max-width: 900px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state .emoji { font-size: 3rem; margin-bottom: 1rem; }
