/* =============================================
   wallhaven.online — Shared Stylesheet
   Dark search-engine theme
   ============================================= */

:root {
  --bg:           #0d0f14;
  --surface:      #161921;
  --surface2:     #1e2330;
  --border:       #252a36;
  --border-hover: #3a4255;
  --accent:       #5b8af5;
  --accent-dim:   #3a5bbf;
  --accent-glow:  rgba(91,138,245,0.15);
  --text:         #e2e6f0;
  --muted:        #7a8399;
  --light-muted:  #9aa0b0;
  --header-bg:    #111420;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

/* ---- HEADER ---- */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 28px; width: auto; display: block; }
nav { display: flex; gap: 2px; }
nav a {
  font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 7px 13px; border-radius: 7px;
  transition: color .15s, background .15s;
}
nav a:hover { color: var(--text); background: var(--surface2); }
nav a.active { color: var(--accent); background: var(--accent-glow); }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 72px 24px 56px;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-glow); border: 1px solid rgba(91,138,245,.2);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; letter-spacing: -.025em;
  line-height: 1.15; color: #fff; margin-bottom: 14px;
}
h1 em { font-style: normal; color: var(--accent); }
.page-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 520px; margin: 0 auto 36px;
}

/* ---- SEARCH BOX ---- */
.search-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.search-input {
  width: 100%; padding: 15px 56px 15px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; font-size: 1rem; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; border-radius: 8px;
  width: 40px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search-btn:hover { background: var(--accent-dim); }
.search-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- QUICK TAGS ---- */
.quick-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 16px;
}
.tag-pill {
  padding: 6px 14px; border-radius: 100px; font-size: 13px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
  transition: all .15s;
}
.tag-pill:hover {
  background: var(--surface); color: var(--text);
  border-color: var(--accent);
}

/* ---- SECTION ---- */
.section {
  max-width: 1200px; margin: 0 auto 64px;
  padding: 0 24px;
}
.section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block;
  width: 3px; height: 16px;
  background: var(--accent); border-radius: 2px;
}
.see-all {
  font-size: 13px; color: var(--accent); text-decoration: none;
}
.see-all:hover { text-decoration: underline; }

/* ---- FILTER SECTION ---- */
.filter-section {
  max-width: 900px; margin: 0 auto 56px; padding: 0 24px;
}
.filter-title {
  font-size: 13px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.filter-title::before {
  content: ''; display: block;
  width: 3px; height: 14px;
  background: var(--accent); border-radius: 2px;
}
.filter-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
  transition: all .15s;
}
.filter-chip:hover {
  color: var(--text); border-color: var(--accent);
  background: var(--surface2);
}
.filter-chip strong { color: var(--text); }

/* ---- WALLPAPER GRID ---- */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.wp-card {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; display: block;
  transition: transform .15s, border-color .15s;
}
.wp-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.wp-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--border) 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { 0%,100%{opacity:.7} 50%{opacity:1} }

/* ---- CONTENT PROSE ---- */
.content {
  max-width: 780px; margin: 0 auto 64px; padding: 0 24px;
}
.content h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em;
  color: #fff; margin: 40px 0 12px;
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.content p { color: var(--muted); margin-bottom: 14px; }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content ul, .content ol { margin: 0 0 14px 24px; color: var(--muted); }
.content li { margin-bottom: 6px; }

/* ---- STEPS ---- */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.step {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px;
}
.step-num { font-size: 1.3rem; font-weight: 800; color: var(--accent); min-width: 28px; line-height: 1.4; }
.step h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.step p { font-size: .875rem; color: var(--muted); margin: 0; }

/* ---- INFO BOX ---- */
.info-box {
  background: var(--accent-glow); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 18px;
  margin: 20px 0; font-size: .9rem; color: var(--light-muted);
}
.info-box strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto 64px; padding: 0 24px; }
.faq h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em;
  color: #fff; margin-bottom: 20px;
}
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px; overflow: hidden;
}
summary {
  padding: 15px 20px; cursor: pointer;
  font-weight: 500; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 300; }
details[open] summary::after { content: '−'; }
.faq-body { padding: 0 20px 16px; font-size: .9rem; color: var(--muted); }
.faq-body a { color: var(--accent); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px; text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 14px; }
.footer-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 4px 10px; border-radius: 6px; transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-copy a { color: var(--muted); text-decoration: none; }
.footer-copy a:hover { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { display: none; }
  .wp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  h1 { font-size: 1.7rem; }
  .page-hero { padding: 48px 16px 40px; }
}
