/* ==================================================
   Forensic Avenue – Final Stylesheet
   Dark Theme | Static | Cloudflare Pages
   Font: Lexend
   ================================================== */


/* ==============================
   Font Import
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');


/* ==============================
   CSS Variables (Theme Tokens)
   ============================== */

:root {
  --blue-primary: #4b50d9;
  /* Logo blue */
  --blue-accent: #3d42b8;

  --bg-main: #0e0f14;
  --bg-surface: #161822;
  --bg-soft: #1d2030;

  --text-main: #ffffff;
  --text-muted: #b5b7d2;

  --border-soft: rgba(255, 255, 255, 0.08);
}


/* ==============================
   Base Reset
   ============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body h1 {
  font-size: 2em !important;
  font-weight: 600;
}

/* ==============================
   Body & Typography
   ============================== */

body {
  font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* ==============================
   Layout
   ============================== */

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

main {
  flex: 1;
}


/* ==============================
   Header
   ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo span {
  font-size: 1.1rem;
}


/* ==============================
   Search Bar
   ============================== */

.search-box {
  margin-left: auto;
}

.search-box input {
  width: 260px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--blue-primary);
}


/* ==============================
   Articles Grid
   ============================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 40px 0;
}


/* ==============================
   Cards
   ============================== */

.card {
  background: radial-gradient(circle at top,
      #1a1d2b 0%,
      #121420 70%);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px;
}

.card h1,
.card h2 {
  margin: 25px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue-primary);
  font-weight: 500;
  font-size: small;
  text-decoration: none;
  transition: all 0.5s ease;
}

.card a:hover {
  color: white;
}


/* ==============================
   Tags / Pills
   ============================== */

.tag {
  display: inline-block;
  background: linear-gradient(135deg,
      var(--blue-primary),
      var(--blue-accent));
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}


/* ==============================
   Article Page Extras
   ============================== */

.article-page {
  margin: 40px 0;
}

.article-nav {
  margin: 30px 0 10px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
}

.back-btn:hover {
  background: var(--blue-primary);
}

/* No article found */

.no-results {
  display: none;
  text-align: center;
  margin: 40px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* blockquote div*/
.blockquote-div {
  border: solid 1px white;
  padding: 10px;
  margin: 20px 0;
}

/* Indent lists in article content */
ul,
ol {
  margin-left: 1.5rem;
  /* indent from left */
  padding-left: 1rem;
  /* extra spacing */
}

/* ==============================
   Footer
   ============================== */

.site-footer {
  background: transparent;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 0;
  font-size: 0.8rem;
}


/* ==============================
   Responsive Tweaks
   ============================== */


/* Tablet: 2 per row */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .search-box input {
    width: 180px;
  }

  .logo span {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  body h1{
    font-size: 1.35em !important;
  }
}