/* iTrade Theme — fixed header (cloned from wes_theme/css/header.css 2026-05-17) */
.itrade-page-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,28,28,0.12);
  padding: 0 32px;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.itrade-page-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--itrade-fg);
}
.itrade-page-logo img { height: 36px; width: auto; }
.itrade-page-logo-text {
  font-size: 13px; font-weight: 800;
  letter-spacing: 1px; color: var(--itrade-red);
}

.itrade-page-nav {
  display: flex; gap: 24px; justify-content: center;
}
.itrade-page-nav a {
  color: var(--itrade-fg); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: color 200ms;
}
.itrade-page-nav a:hover { color: var(--itrade-red); }

.itrade-page-header-actions {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
}

/* Connect button (anonymous) */
.itrade-page-connect-btn {
  background: linear-gradient(135deg, var(--itrade-red), var(--itrade-red-2));
  color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220,28,28,0.25);
  transition: transform 100ms, box-shadow 200ms;
}
.itrade-page-connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,28,28,0.35);
}

/* Profile chip (logged in) */
.itrade-page-profile-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--itrade-border);
  border-radius: 999px; padding: 4px 12px 4px 4px;
  text-decoration: none; color: var(--itrade-fg);
  font-size: 12px; font-weight: 700;
  transition: all 200ms;
}
.itrade-page-profile-chip:hover {
  border-color: var(--itrade-red); text-decoration: none;
}
.itrade-page-profile-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #DC1C1C, #8B0000);
  flex: 0 0 auto;
}
.itrade-page-profile-name {
  max-width: 100px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.itrade-page-logout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--itrade-fg-muted);
  font-size: 18px; text-decoration: none;
  transition: background 200ms, color 200ms;
}
.itrade-page-logout:hover {
  background: var(--itrade-red-soft); color: var(--itrade-red);
  text-decoration: none;
}

@media (max-width: 980px) {
  .itrade-page-header { padding: 0 16px; grid-template-columns: auto 1fr auto; }
  .itrade-page-nav { display: none; }
  .itrade-page-profile-name { max-width: 60px; }
}
