/* ==============================
   ShooterofIO Blog – Home Page
   ============================== */

/* Import fonts */
@import url('https://fonts.cdnfonts.com/css/hitmarker-text');
@import url('https://fonts.cdnfonts.com/css/hitmarker-condensed');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

/* Base */
body {
  background: #1b1b1b;
  margin: 0;
  padding: 0;
  font-family: "Hitmarker Text VF", "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
  font-size: 1.125rem;   /* ~125% zoom feel */
  line-height: 1.75rem;
  color: #e0e0e0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #1b1b1b; /* base dark background */
  background-image: radial-gradient(#222 1px, transparent 1px);
  background-size: 8px 8px; /* controls spacing of dots */
}

.home-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px; 
  margin-top: 70px; /* equal to navbar height */
}


/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding: 10px 0;
}

/* Blog tiles */
.blog-tile {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;

  /* NEW → force vertical structure */
  display: flex;
  flex-direction: column;
}

/* Make link fill entire tile */
.blog-tile a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

/* Image stays top */
.blog-tile img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* Tile content fills remaining space */
.tile-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

/* Push tags to bottom */
.tile-footer {
  margin-top: auto;   /* pushes footer down */
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Headings */
.tile-content h2 {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin: 0 0 10px;
  color: #fff;
  transition: color 0.2s ease;
}

.blog-tile:hover .tile-content h2 { color: #00adee; }

.meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tags */

/* Tags container */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;            /* spacing between tags */
  margin-top: auto;    /* push to bottom of card */
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a39f97;     /* that grey color in your screenshot */
  color: #000;             /* black text */
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 50px;         /* ensures equal width feel */
  text-align: center;
}

.blog-tile:hover .tag { background: #0078ff; color: #fff; }

/* Global link reset */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #00adee;
}

  /* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.2s;
}

.dropdown > a:hover {
  color: #00adee;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 200px;
  border: 1px solid #333;
  border-radius: 4px;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #fff;
  font-weight: 500;
}

.dropdown-content a:hover {
  background: #2a2a2a;
  color: #00adee;
}

/* Show menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


    /* Push content below navbar */
    .home-layout {
      margin-top: 70px;
    }