/* =========================================================
   頁首 / 頁尾
   ========================================================= */

.elvis-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: rgba(14, 12, 36, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.elvis-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.elvis-header__logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(123,92,255,0.6));
}
.elvis-header__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.elvis-header__brandtext strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.elvis-header__brandtext small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.elvis-header__nav {
  display: flex;
  gap: var(--space-5);
  font-weight: 600;
  font-size: 0.95rem;
}
.elvis-header__nav a {
  position: relative;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}
.elvis-header__nav a:hover { color: var(--text-primary); }
.elvis-header__nav a.is-active { color: var(--neon-cyan); }
.elvis-header__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
}

.elvis-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.elvis-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border-soft);
}
.elvis-pill--coin { background: rgba(255,209,102,0.12); color: var(--neon-gold); }
.elvis-pill--xp { background: rgba(123,92,255,0.15); color: #C4B5FF; }

.elvis-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.elvis-icon-btn svg { width: 20px; height: 20px; }
.elvis-icon-btn:hover { color: var(--neon-cyan); transform: rotate(25deg) scale(1.08); }

.elvis-footer {
  padding: var(--space-6) var(--space-5) var(--space-7);
  text-align: center;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.8rem;
  background: rgba(0,0,0,0.15);
}
.elvis-footer__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.elvis-footer__dot { opacity: 0.5; }
.elvis-footer__status { gap: var(--space-2); }
.elvis-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: elvis-pulse 2s ease-in-out infinite;
}
@keyframes elvis-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.elvis-footer__copyright { margin-top: var(--space-3); opacity: 0.7; }

@media (max-width: 860px) {
  .elvis-header__nav { order: 3; width: 100%; justify-content: center; gap: var(--space-4); }
  .elvis-header { padding: var(--space-3) var(--space-4); }
}
@media (max-width: 480px) {
  .elvis-header__brandtext small { display: none; }
  .elvis-pill span:last-child { font-size: 0.8rem; }
}
