/* SkyRelay Portal — Base layout
   Logo & header match marketing site (skyrelay.us). */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  height: 48px;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrap svg { height: 24px; width: auto; }

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--text-bright);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.header-right a:hover {
  color: var(--accent);
}

.user-email {
  color: var(--dim);
  font-size: 13px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--accent); }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .nav-link { display: none; }
  .header-right { display: none; }
  .hamburger { display: flex; }
}

/* Content wrapper */
.content {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

a { color: var(--accent); }

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  margin-top: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}
.app-version {
  font-family: var(--mono);
  color: var(--dim);
}
