/* Top bar shared by every page (see topbar.js) */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #0A0A0A;
  border-bottom: 1px solid rgba(200, 168, 75, 0.12);
  padding: 12px 48px;
  min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}
.topbar [hidden] { display: none !important; }

.topbar-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  color: #C8A84B; text-decoration: none;
}
.topbar-logo img { width: 26px; height: 26px; flex-shrink: 0; }

/* Home and About links */
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; margin-left: 28px; }
.topbar-link {
  padding: 6px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 600; color: #B5B0A5; text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.topbar-link:hover { color: #C8A84B; }
.topbar-link.active { color: #EDE8DC; background: rgba(255, 255, 255, 0.06); }

.topbar-right { display: flex; align-items: center; gap: 20px; }

.topbar-cta {
  display: inline-block; padding: 9px 18px; border-radius: 4px;
  background: #C8A84B; color: #0A0A0A; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.topbar-cta:hover { opacity: 0.88; }
.topbar-cta.active { background: transparent; color: #C8A84B; box-shadow: inset 0 0 0 1px rgba(200, 168, 75, 0.6); }

.topbar-signin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 4px;
  background: #5865F2; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; transition: background 0.15s;
}
.topbar-signin:hover { background: #4752C4; }
.topbar-signin svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }

/* Signed-in user and their menu */
.topbar-user { position: relative; }
.topbar-user-btn {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer; padding: 4px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #EDE8DC;
  border-radius: 6px;
}
.topbar-user-btn:hover, .topbar-user-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
.topbar-user-btn:focus-visible { outline: 2px solid #C8A84B; outline-offset: 2px; }
.topbar-user-btn img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.4); background: #1A1A1A;
}
.topbar-caret { width: 10px; height: 10px; fill: #888; }

/* Dropdown panels (notifications and the user menu) */
.topbar-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 170px; padding: 6px;
  background: #141414; border: 1px solid rgba(200, 168, 75, 0.15);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.topbar-menu-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: 5px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #EDE8DC;
  text-decoration: none;
}
.topbar-menu-item:hover, .topbar-menu-item:focus-visible { background: rgba(200, 168, 75, 0.1); color: #C8A84B; outline: none; }

/* Notifications bell */
.topbar-bell { position: relative; }
.topbar-bell-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
}
.topbar-bell-btn svg { width: 20px; height: 20px; fill: #B5B0A5; transition: fill 0.15s; }
.topbar-bell-btn:hover svg, .topbar-bell-btn[aria-expanded="true"] svg { fill: #C8A84B; }
.topbar-bell-btn:hover, .topbar-bell-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
.topbar-bell-btn:focus-visible { outline: 2px solid #C8A84B; outline-offset: 2px; }
.topbar-bell-dot {
  position: absolute; top: 6px; right: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #E05555; box-shadow: 0 0 0 2px #0A0A0A;
}
.topbar-notes { width: 300px; padding: 8px; }
.topbar-panel-title {
  padding: 6px 10px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #888;
}
.topbar-note {
  display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none;
  border-left: 3px solid transparent;
}
.topbar-note:hover { background: rgba(200, 168, 75, 0.08); }
.topbar-note-accepted { border-left-color: #57F287; }
.topbar-note-denied   { border-left-color: #E05555; }
.topbar-note-info     { border-left-color: #C8A84B; }
.topbar-note strong { display: block; font-size: 13px; color: #EDE8DC; margin-bottom: 2px; }
.topbar-note span   { display: block; font-size: 12.5px; color: #B5B0A5; line-height: 1.5; }
.topbar-note small  { display: block; font-size: 11px; color: #777; margin-top: 4px; }
.topbar-note-empty  { padding: 4px 10px 8px; font-size: 12.5px; color: #888; line-height: 1.55; }

/* Phones: just the picture, and a shorter apply button */
.topbar-short { display: none; }
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .topbar-right { gap: 12px; }
  .topbar-nav { margin-left: 8px; gap: 0; }
  .topbar-link { padding: 6px 8px; }
  .topbar-user-name, .topbar-long { display: none; }
  .topbar-short { display: inline; }
  .topbar-cta, .topbar-signin { padding: 8px 12px; }
  .topbar-notes { width: min(300px, calc(100vw - 32px)); right: -60px; }
}
/* Small phones: signed in with the Status button, the bell and your picture is a lot for one row,
   so the bar gets tighter (the shield stays, the TFAT text next to it hides) */
@media (max-width: 420px) {
  .topbar { padding: 10px 12px; }
  .topbar-logo-text, .topbar-caret { display: none; }
  .topbar-nav { margin-left: 4px; }
  .topbar-link { padding: 6px 6px; }
  .topbar-right { gap: 6px; }
  .topbar-cta { padding: 7px 10px; }
}
