/* public/styles.css v4 – shared site styles */

:root {
  --bg: #0d0d12;
  --fg: #fefefe;
  --muted: #aaa;
  --accent: #e63946;
  --accent2: #4cc9f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #222;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand {
  font-weight: bold;
  font-size: 1.1em;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  background-size: cover;
  background-position: center;
  display: inline-block;
  border: 2px solid var(--accent2);
}

.page {
  padding: 20px;
}

.section {
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

h2, h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: #1a1a24;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button, .pill {
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 0.95em;
  text-align: center;
  transition: background 0.2s;
}
button:hover, .pill:hover {
  background: #b52c38;
  text-decoration: none;
}
button:disabled {
  background: #444;
  cursor: not-allowed;
}

.pill {
  display: inline-block;
}

.pill.primary {
  background: var(--accent2);
  color: #000;
}
.pill.primary:hover {
  background: #36a9d9;
}

.dropdown-btn {
  background: #222;
  border: 1px solid #444;
  color: var(--fg);
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
}
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  display: none;
  background: #222;
  border: 1px solid #444;
  border-radius: var(--radius);
}
.dropdown-menu li {
  padding: 6px 12px;
  cursor: pointer;
}
.dropdown-menu li:hover {
  background: #333;
}

.site-footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #222;
  font-size: 0.85em;
  color: var(--muted);
}
.site-footer a {
  margin-left: 8px;
}
