/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --surface-3: #2e2e2e;
  --border: #333;
  --text: #f0f0f0;
  --text-muted: #999;
  --text-dim: #666;
  --accent: #ff6b35;
  --accent-hover: #ff8555;
  --accent-dim: rgba(255, 107, 53, 0.15);
  --green: #4ecb71;
  --green-dim: rgba(78, 203, 113, 0.15);
  --blue: #5b9bf5;
  --purple: #b07aff;
  --yellow: #ffd43b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --max-width: 960px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  gap: 6px;
}
.logo-nola { color: var(--accent); }
.logo-weekly { color: var(--text); }
.tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); }
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.btn-submit {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  width: 100%;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ===== Day Navigation ===== */
.day-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.day-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.day-tab {
  flex: 1;
  min-width: 48px;
  padding: 10px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.day-tab:hover { background: var(--surface-2); color: var(--text); }
.day-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Tag Cloud ===== */
.tag-cloud-section { padding: 16px 0 8px; }
.tag-cloud {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.tag {
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tag:hover { background: var(--surface-2); color: var(--text); }
.tag.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Events ===== */
.events-section { padding: 24px 0 48px; }
.prototype-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.day-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.event-count { color: var(--text-muted); font-size: 0.85rem; }

.events-grid {
  display: grid;
  gap: 16px;
}

/* Event Card */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: border-color 0.15s;
}
.event-card:hover { border-color: var(--accent); }
.event-card-submitted {
  border-color: rgba(78, 203, 113, 0.5);
  box-shadow: inset 0 0 0 1px rgba(78, 203, 113, 0.15);
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 40px;
}
.vote-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}
.vote-btn:hover { color: var(--accent); background: var(--accent-dim); }
.vote-btn.voted-up { color: var(--accent); }
.vote-btn.voted-down { color: var(--blue); }
.vote-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.event-body { flex: 1; min-width: 0; }
.event-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.event-card-topline {
  margin-bottom: 8px;
}
.submission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.event-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.event-meta span { display: flex; align-items: center; gap: 4px; }
.event-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.event-tag {
  padding: 2px 10px;
  background: var(--surface-3);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Submit Section ===== */
.submit-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.submit-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.submit-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.submit-form { max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.tag-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ===== Detail Page ===== */
.detail-page {
  min-height: calc(100vh - 180px);
}
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 760px;
}
.detail-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 14px;
}
.detail-meta-list {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.detail-desc {
  margin: 20px 0;
  color: var(--text);
  font-size: 1rem;
}
.detail-vote-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-score {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-sub { color: var(--text-dim); font-size: 0.75rem; margin-top: 4px; }

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tagline { display: none; }
  .btn-submit { align-self: flex-end; position: absolute; right: 20px; top: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
  .vote-col { flex-direction: row; gap: 8px; }
  .day-title { font-size: 1.2rem; }
}
