/* nav.css — slice of the former style.css (see also: sibling css/ files) */
/* --- Login hero (large rocket + title) --- */
.brand-hero {
  text-align: center;
  margin: 40px auto 18px;
  max-width: 460px;
}
.brand-hero-mark {
  width: 92px;
  height: 92px;
  display: inline-block;
  filter: drop-shadow(0 8px 22px rgba(255, 157, 39, 0.35));
  animation: brand-hero-float 4.5s ease-in-out infinite;
}
.brand-hero-title {
  margin: 14px 0 4px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-hero-sub { margin: 0; font-size: 0.95rem; }
@keyframes brand-hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero-mark { animation: none; }
}

.primary-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(121,192,255,0.08);
}
.primary-nav a .icon { color: var(--muted); transition: color 0.12s; }
.primary-nav a:hover .icon { color: var(--accent); }

/* Notification bell */
.notif-menu { position: relative; }
.notif-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text);
}
.notif-menu summary::-webkit-details-marker { display: none; }
.notif-menu summary:hover { background: rgba(121,192,255,0.08); color: var(--accent); }
.notif-menu[open] summary { background: rgba(121,192,255,0.12); color: var(--accent); }
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--neg);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(13,17,23,0.9);
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 340px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 30;
  overflow: hidden;
}
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.notif-empty { padding: 16px; text-align: center; font-size: 0.88rem; }

.notif-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.notif-row { border-bottom: 1px solid var(--border); }
.notif-row:last-child { border-bottom: none; }
.notif-row.notif-unread { background: rgba(121,192,255,0.04); }
.notif-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.notif-link:hover { background: var(--panel-2); text-decoration: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 0.88rem; line-height: 1.4; }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* User menu (HTML <details>) */
.user-menu {
  position: relative;
}
.user-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 3px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  user-select: none;
}
.user-menu summary .avatar { margin-right: 2px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { border-color: var(--accent); }
.user-menu[open] summary { border-color: var(--accent); }
.user-menu .caret {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 4px;
  transition: transform 0.15s;
}
.user-menu[open] .caret { transform: rotate(180deg); }
.user-name { font-weight: 600; }

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.user-menu-panel a,
.user-menu-panel button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
}
.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: var(--panel-2);
  color: var(--accent);
  text-decoration: none;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.user-menu-name { font-weight: 600; font-size: 0.95rem; }
.user-menu-email { font-size: 0.78rem; color: var(--muted); }

.admin-pill { font-size: 0.7rem; padding: 2px 8px; }

/* Initials avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) inset;
}
.avatar-img {
  object-fit: cover;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* Account settings panel */
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.account-row:last-child { border-bottom: none; }
.account-row-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 130px;
}
.account-row-content { flex: 1; }

.provider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.provider-name { flex: 1; font-weight: 500; }
.provider-status.linked { color: var(--pos); font-size: 0.85rem; }
.provider-status.not-linked { color: var(--muted); font-size: 0.85rem; }

details.collapse-form {
  margin-top: 4px;
}
details.collapse-form summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.88rem;
  user-select: none;
}
details.collapse-form summary::-webkit-details-marker { display: none; }
details.collapse-form summary:hover { text-decoration: underline; }
details.collapse-form > div {
  margin-top: 10px;
  padding: 12px;
  background: var(--panel-2);
  border-radius: 8px;
}

/* My comments */
.my-comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.my-comment:last-child { border-bottom: none; }
.my-comment-context { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.my-comment-body {
  background: var(--panel-2);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.my-comment-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Floating action button — log a trade */
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f15;
  box-shadow: 0 6px 20px rgba(121,192,255,0.35), 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 100;
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(121,192,255,0.45), 0 4px 10px rgba(0,0,0,0.5);
  text-decoration: none;
  color: #0b0f15;
}
.fab:active { transform: translateY(0); }

/* --- FAB picker (details menu wrapping the .fab) --- */
.fab-picker {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100;
}
.fab-picker > summary { list-style: none; cursor: pointer; }
.fab-picker > summary::-webkit-details-marker { display: none; }
.fab-picker > summary.fab {
  position: static;          /* wrapper holds the fixed position */
  right: auto;
  bottom: auto;
}
.fab-picker > summary.fab svg { transition: transform 0.15s; }
.fab-picker[open] > summary.fab svg { transform: rotate(45deg); }

.fab-picker-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fab-picker-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.fab-picker-panel a:hover { background: var(--panel-2); }
.fab-picker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
  flex-shrink: 0;
}
.fab-picker-title { display: block; font-weight: 600; font-size: 0.95rem; }
.fab-picker-sub { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Nested club submenu inside the FAB picker. */
.fab-picker-sub-menu { display: block; }
.fab-picker-sub-menu > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.fab-picker-sub-menu > summary::-webkit-details-marker { display: none; }
.fab-picker-sub-menu > summary:hover { background: var(--panel-2); }
.fab-picker-caret {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.15s;
}
.fab-picker-sub-menu[open] > summary > .fab-picker-caret { transform: rotate(90deg); }
.fab-picker-clubs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 6px 4px 50px;     /* indent matches the 32px icon tile + gaps */
}
.fab-picker-clubs a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.fab-picker-clubs a:hover { background: var(--panel-2); }
