/* header.css
   Styles for the injected site header + nav.
   Kept scoped (no global body/header selectors) so it doesn't fight page styles.
*/

.site-header {
  position: relative;
  padding: 20px;
  text-align: center;
  background: #34495e;
  color: white;
}

.site-title {
  margin: 0;
  font-size: 3rem;
}

.profile-wrap {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 160px;

  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 6px;

  display: none;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu.open {
  display: block;
}

.profile-item {
  box-sizing: border-box;
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;

  padding: 10px 10px;
  border-radius: 8px;

  background: transparent;
  border: 0;
  cursor: pointer;

  font-size: 14px;
  color: #222;
  text-decoration: none;
}

.profile-item:hover {
  background: #f3f6fb;
}

.profile-item.danger {
  color: #b00020;
}

.profile-item:hover,
.profile-item:focus,
.profile-item:active,
.profile-item:link,
.profile-item:visited {
  text-decoration: none;
}

.site-nav {
  background: #34495e;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.site-nav a:hover {
  background-color: #4a6278;
}
