/* Global dark theme */
:root {
  --bg: #0b0c10;
  --bg-alt: #1f2833;
  --accent: #66fcf1;
  --accent-soft: #45a29e;
  --text: #c5c6c7;
  --text-strong: #ffffff;
  --danger: #ff6b6b;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #141b2b 0, #050608 55%);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* Layout */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header & nav */
header {
  border-bottom: 1px solid #222;
  margin-bottom: 1.5rem;
}

.site-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title h1 {
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title p {
  font-size: 0.9rem;
  color: var(--accent-soft);
}

nav {
  margin-top: 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(102, 252, 241, 0.12);
  color: var(--text-strong);
  border-color: var(--accent-soft);
}

/* Main content */
main h2 {
  font-size: 1.4rem;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}

main p {
  margin-bottom: 0.75rem;
}

.section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #222;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #11141f;
  border: 1px solid #222;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
}

/* Forum-style list */
.forum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forum-item {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #11141f;
  border: 1px solid #222;
}

.forum-item h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.forum-meta {
  font-size: 0.8rem;
  color: #888;
}

/* Forms */
form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

label {
  font-size: 0.85rem;
  color: var(--accent-soft);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #333;
  background: #050608;
  color: var(--text);
  font-size: 0.9rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
input[type="submit"] {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(102, 252, 241, 0.12);
  color: var(--text-strong);
  font-size: 0.9rem;
  cursor: pointer;
  justify-self: flex-start;
  transition: background 0.2s, transform 0.1s;
}

button:hover,
input[type="submit"]:hover {
  background: rgba(102, 252, 241, 0.25);
  transform: translateY(-1px);
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .site-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
