/* Header */
header {
  padding: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  transition: transform 0.3s ease;
}
header.header-hidden {
  transform: translateY(-100%);
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.85; }
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
nav .btn {
  margin-left: 4px;
  padding: 7px 14px;
  font-size: 13px;
}
nav .btn:hover {
  background: var(--accent-hover);
}

/* Footer */
footer {
  padding: 40px 0;
  margin-top: 40px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.2;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
footer .footer-brand {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.2px;
}
footer .footer-links {
  display: flex;
  gap: 8px;
}
footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
footer .footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 600px) {
  header .container { height: 48px; }
  .logo img { width: 26px; height: 26px; }
  .logo { font-size: 14px; }
  nav a:not(.btn) { display: none; }
  nav .btn { font-size: 12px; padding: 6px 12px; }
  footer .container { flex-direction: column; gap: 16px; }
}
