/* ── Shared header + footer styles ── */

/* Header */
header {
  background: rgba(7,8,9,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
[data-theme="light"] header { background: rgba(255,255,255,.82); }

.header-inner {
  max-width: 960px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent, #6c63ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  color: #fff; letter-spacing: -0.5px;
  box-shadow: 0 0 0 1px rgba(108,99,255,.4), 0 0 20px rgba(108,99,255,.2);
}
.logo-name { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text, #edeef0); }
.header-right { display: flex; align-items: center; gap: 8px; }

.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg4, #191c20); border: 1px solid var(--border, #1e2126);
  border-radius: 10px; padding: 7px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
@media (max-width: 580px) { .search-wrap { display: none; } }
.search-wrap:focus-within {
  border-color: var(--accent, #6c63ff);
  box-shadow: 0 0 0 3px rgba(108,99,255,.12);
}
.search-wrap svg { flex-shrink: 0; color: var(--text3, #3e4351); }
.search-wrap input {
  background: none; border: none; outline: none;
  color: var(--text, #edeef0);
  font-family: var(--font, 'DM Sans', sans-serif);
  font-size: 13px; width: 160px;
}
.search-wrap input::placeholder { color: var(--text3, #3e4351); }

.header-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg4, #191c20); border: 1px solid var(--border, #1e2126);
  color: var(--text2, #7e8494); font-size: 12px; font-weight: 600;
  font-family: var(--mono, 'DM Mono', monospace);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .18s ease, color .18s ease;
  letter-spacing: .3px;
}
.header-btn:hover { border-color: var(--border2, #2c3039); color: var(--text, #edeef0); }

/* Footer */
footer {
  border-top: 1px solid var(--border, #1e2126);
  padding: 28px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center;
  font-size: 13px; color: var(--text2, #7e8494);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text2, #7e8494); text-decoration: none; }
.footer-links a:hover { color: var(--text, #edeef0); }
.footer-note { font-size: 12px; color: var(--text3, #3e4351); }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent, #6c63ff); color: #fff;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: 0 0 8px 0; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
