/* ═══════════════════════════════════════════════════════════
   MDW 2026 — Planner page styles
   Reuses :root vars from app.css
   ═══════════════════════════════════════════════════════════ */

body {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  padding-bottom: 60px;
}

/* ─── Top bar ─── */

.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar h1 { font-size: 16px; font-weight: 600; }
.top-bar h1 span { color: var(--accent); }
.top-bar a {
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
}
.top-bar a:hover { color: var(--text); }

/* ─── Summary cards ─── */

.summary-bar {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat-card {
  padding: 12px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  min-width: 100px;
}
.stat-card .num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.stat-card .label {
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-like .num     { color: var(--c-like); }
.stat-bookmark .num { color: var(--c-bookmark); }
.stat-planned .num  { color: var(--c-planned); }
.stat-visited .num  { color: var(--c-visited); }

/* ─── Tabs ─── */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  margin-top: -1px;
  background: var(--surface);
}
.tab {
  padding: 10px 20px;
  font-family: inherit;
  font-size: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text2);
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Content ─── */

.content { padding: 24px; max-width: 1100px; margin: 0 auto; }

.section { margin-bottom: 32px; }
.section h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section h2 .count { color: var(--text2); font-weight: normal; }

/* ─── Timeline (day view) ─── */

.day-section { margin-bottom: 24px; }
.day-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-planned);
}

.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.timeline-item:hover { border-color: var(--text2); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-planned);
  border: 2px solid var(--bg);
}
.timeline-item.is-visited::before { background: var(--c-visited); }
.tl-time  { font-size: 11px; color: var(--accent); font-weight: 600; }
.tl-title { font-size: 12px; margin-top: 2px; }
.tl-venue { font-size: 10px; color: var(--text2); }
.tl-notes { font-size: 10px; color: var(--text2); margin-top: 4px; font-style: italic; }

/* ─── List items (Liked/Bookmarked/Visited) ─── */

.ev-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.ev-list-item:hover { background: var(--surface2); }
.ev-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ev-list-dot-like     { background: var(--c-like); }
.ev-list-dot-bookmark { background: var(--c-bookmark); }
.ev-list-dot-visited  { background: var(--c-visited); }
.ev-list-title { font-size: 12px; flex: 1; }
.ev-list-venue { font-size: 10px; color: var(--text2); }
.ev-list-remove {
  font-size: 10px;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  font-family: inherit;
}
.ev-list-remove:hover { border-color: var(--c-like); color: var(--c-like); }

.star-display { color: var(--c-bookmark); font-size: 11px; }

/* ─── Team cards ─── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.team-card:hover { border-color: var(--accent); }
.team-card .tc-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-card .tc-role {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  display: inline-block;
  text-transform: uppercase;
  margin-left: 6px;
}
.team-card .tc-role.owner  { background: var(--accent); color: var(--bg); }
.team-card .tc-role.member { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.team-card .tc-desc {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 8px;
  line-height: 1.4;
}
.team-card .tc-meta {
  font-size: 10px;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
}
.team-card .tc-code {
  font-family: 'SF Mono', monospace;
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--accent);
}

.create-team-card {
  border: 1px dashed var(--border);
  text-align: center;
  padding: 20px;
  background: transparent;
}
.create-team-card:hover { border-color: var(--accent); }

/* ─── Connections list ─── */

.connection-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.conn-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.conn-info { flex: 1; }
.conn-name { font-size: 12px; }
.conn-meta { font-size: 10px; color: var(--text2); }

/* ─── Modals ─── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
}
.modal-box h3 { font-size: 14px; margin-bottom: 12px; }
.modal-box input, .modal-box textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  margin-bottom: 10px;
}
.modal-box input:focus, .modal-box textarea:focus { border-color: var(--accent); }
.modal-box textarea { height: 60px; resize: vertical; }
.modal-box label {
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.modal-btn-primary {
  flex: 1;
  padding: 10px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.modal-btn-secondary {
  padding: 10px 16px;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.modal-invite-code {
  font-family: 'SF Mono', monospace;
  font-size: 20px;
  color: var(--accent);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 2px;
  margin: 12px 0;
  cursor: pointer;
}
.modal-invite-code:hover { border-color: var(--accent); }

/* Bulk add connections */
.tc-conn-header {
  font-size: 11px;
  color: var(--text2);
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tc-conn-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface2);
}
.tc-conn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.tc-conn-item:last-child { border-bottom: none; }
.tc-conn-item:hover { background: var(--surface); }
.tc-conn-item input { accent-color: var(--accent); cursor: pointer; }
.tc-conn-item .conn-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.tc-conn-item .tc-conn-meta {
  color: var(--text2);
  font-size: 10px;
  margin-left: auto;
}
.modal-msg {
  font-size: 11px;
  margin-top: 8px;
  padding: 6px;
  border-radius: 3px;
  display: none;
}
.modal-msg.show { display: block; }
.modal-msg.error   { background: #ff6b6b22; color: var(--c-like); }
.modal-msg.success { background: #4ecdc422; color: var(--c-planned); }

/* ─── Export bar (fixed bottom) ─── */

.export-bar {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
.export-btn {
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.export-btn:hover { border-color: var(--accent); }
.export-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

/* ─── Empty / login states ─── */

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text2);
  font-size: 12px;
}
.empty-state a { color: var(--accent); }

.login-prompt {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
  font-size: 12px;
}
.login-prompt a { color: var(--accent); cursor: pointer; }
