/* styles.css — master stylesheet for all pages */

/* ====== GLOBALS ====== */
html, body { height:100%; width:100%; overflow-x:hidden; }
*,
*::before,
*::after { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:#000; color:#ccc; margin:0; padding:0; min-height:100vh;
  display:flex; flex-direction:column; font-size:15px; line-height:1.5; font-weight:400;
}

/* Utility (was used in your research page) */
.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ====== HEADER / NAV ====== */
header { background:none; border:none; box-shadow:none; padding:2.5rem 0 1.5rem; width:100%; }
.nav-container {
  width:100%; max-width:100%; margin:0 auto; display:flex; justify-content:space-between; align-items:center;
  padding:0 2rem; box-sizing:border-box;
}
.logo { display:block; color:#fff; font-size:1.1rem; font-weight:600; letter-spacing:.01em; text-decoration:none; margin-right:1.5rem; }
.nav-links { display:flex; gap:.5rem; }
.nav-links a {
  color:#fff; background:#222; text-decoration:none; font-size:15px; font-weight:500;
  padding:.35rem 1.1rem; border-radius:6px; margin-left:.5rem; transition:background .2s, color .2s, border .2s; border:1px solid transparent; line-height:1.2;
}
.nav-links a:hover { background:#444; border:1px solid #fff; }

/* ====== LAYOUT CONTAINERS ====== */
.container { width:100%; max-width:900px; margin:0 auto; padding:4rem 2rem 2rem; flex:1; box-sizing:border-box; }
.description { font-size:1rem; color:#ccc; margin-bottom:2.5rem; }

/* ====== BUTTONS ====== */
.read-more, .cta-button, .btn {
  background:#181818; color:#b3b3b3; font-size:1rem; font-weight:500; border-radius:6px;
  padding:.3rem .7rem; border:1px solid transparent; transition:background .2s, color .2s, border .2s; text-decoration:none; display:inline-block;
}
.read-more:hover, .cta-button:hover, .btn:hover {
  background:#222; color:#ccc; border:1px solid #fff; text-decoration:none;
}

/* ====== FOOTER ====== */
footer { background:none; color:#888; text-align:center; padding:1.2rem 0 1rem; margin-top:auto; font-size:.92rem; }
.footer-content { color:#b3b3b3; }
.footer-content p { margin:.5rem 0; }

/* ====== RESEARCH PAGE EXTRAS ====== */
.search-container { margin-bottom:3rem; }
.search-bar-wrapper { position:relative; width:100%; }
.search-bar {
  width:100%;
  font-family: inherit;
  font-size:1rem;
  font-weight:400;
  line-height:1.2;
  background:#181818;
  color:#b3b3b3;
  padding:0.35rem 1.1rem 0.35rem 2.2rem; /* left padding reserves space for icon */
  border-radius:4px;
  border:1px solid #222;
  height:2.2rem;
  outline:none;
  transition: background .2s, border .2s, color .2s;
}
.search-bar:focus {
  background:#232323;
  color:#cccccc;
  border:1px solid #444;
}
.search-bar::placeholder { color:#aaa; opacity:1; }

/* SVG icon sits inside the input area */
.search-icon {
  position:absolute;
  left:0.8rem;
  top:50%;
  transform:translateY(-50%);
  width:1rem;
  height:1rem;
  pointer-events:none; /* ensure clicks focus the input */
  /* Note: your SVG uses stroke attributes inline; no fill needed here */
}
.no-results { text-align:center; color:#888; padding:2rem; font-style:italic; display:none; }

/* ====== RESEARCH POSTS ====== */
.research-post { margin-bottom:4rem; text-align:left; }
.post-title { font-size:1.3rem; font-weight:500; color:#fff; margin:0 0 1.2rem; }
.post-meta { color:#b3b3b3; font-size:.95rem; margin-bottom:1rem; }
.post-content { color:#ccc; font-size:1rem; }

/* ====== ARTICLE PAGE ====== */
.article-title { font-size:1.8rem; line-height:1.3; margin-bottom:.75rem; }
.article-meta { color:#b3b3b3; font-size:.96rem; margin-bottom:1.25rem; }
.article-hero {
  width:100%; min-height:260px; background:#111; border:1px solid #222; border-radius:10px;
  margin:1.2rem 0 2rem; display:flex; align-items:center; justify-content:center; color:#888; font-size:.95rem;
}
.article-content { font-size:1.02rem; }
.prose-quote { border-left:3px solid #333; padding-left:1rem; color:#bdbdbd; font-style:italic; }
.backbar { display:flex; justify-content:space-between; gap:1rem; margin-top:2.5rem; padding-top:1.2rem; border-top:1px dashed #222; }

/* ====== RESPONSIVE ====== */
@media (max-width:768px){
  .nav-container{ padding:0 1rem; }
  .container{ padding:3rem 1rem 1.5rem; max-width:760px; }
  .article-title{ font-size:1.45rem; }
  .post-title{ font-size:1.1rem; }
  .post-meta{ font-size:.9rem; }
  .post-content{ font-size:.95rem; }
}
@media (max-width:480px){
  .nav-container{ flex-direction:column; gap:1rem; }
  .nav-links{ width:100%; justify-content:center; }
}
