/* AstrogunaShared Banner Styles — namespaced agbd- to avoid conflicts */

:root {
  --agbd-nav-h: 44px;
}

/* ─── Site Navbar (narrow strip) ─────────────────────────────────── */
.agbd-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--agbd-nav-h);
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-family: inherit;
}

.agbd-navbar-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.agbd-navbar-logo {
  color: #D4AF37;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.agbd-navbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.agbd-navbar-links a {
  color: #9D8EC7;
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
}

.agbd-navbar-links a:hover {
  color: #D4AF37;
}

.agbd-navbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.agbd-nav-welcome {
  color: #9D8EC7;
  font-size: 12px;
  white-space: nowrap;
}

.agbd-nav-login,
.agbd-nav-logout {
  background: #6B4EA0;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.agbd-nav-login:hover,
.agbd-nav-logout:hover {
  background: #7c5bb5;
}

.agbd-navbar-book {
  background: #6B4EA0;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.agbd-navbar-book:hover {
  background: #7c5bb5;
}

.agbd-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #9D8EC7;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.agbd-navbar-mobile {
  display: none;
  position: fixed;
  top: var(--agbd-nav-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  flex-direction: column;
  padding: 8px 16px;
}

.agbd-navbar-mobile a {
  color: #9D8EC7;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.agbd-navbar-mobile a:first-child {
  border-top: none;
}

.agbd-navbar-mobile-open {
  display: flex;
}

@media (max-width: 780px) {
  .agbd-navbar-links,
  .agbd-navbar-auth,
  .agbd-navbar-book {
    display: none;
  }
  .agbd-navbar-toggle {
    display: block;
    margin-left: auto;
  }
}

body.agbd-has-navbar {
  padding-top: var(--agbd-nav-h) !important;
}

.agbd-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* Header row: label left, "Enter New" right */
.agbd-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agbd-banner-header strong {
  color: #D4AF37;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Each saved-person row */
.agbd-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.agbd-banner-row:first-of-type {
  border-top: none;
}

.agbd-banner-text {
  color: #e0d6c2;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.agbd-btn {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.agbd-btn-use {
  background: linear-gradient(135deg, #D4AF37, #c9a227);
  color: #1a1a2e;
}

.agbd-btn-use:hover {
  background: linear-gradient(135deg, #e0c050, #D4AF37);
  transform: translateY(-1px);
}

.agbd-btn-clear {
  background: transparent;
  color: #9D8EC7;
  border: 1px solid #9D8EC7;
}

.agbd-btn-clear:hover {
  background: rgba(157, 142, 199, 0.1);
  color: #b8a8e0;
  border-color: #b8a8e0;
}

@media (max-width: 500px) {
  .agbd-banner-row {
    flex-wrap: wrap;
  }
  .agbd-banner-row .agbd-btn-use {
    margin-left: auto;
  }
}
