/* ============================================================
   Ben's Info Tech Blog — Custom Styles
   All overrides live here. Theme files are untouched.
   ============================================================ */

/* ----------------------------------------------------------
   Utility
   ---------------------------------------------------------- */
.hl {
  color: var(--accent);
}

/* ----------------------------------------------------------
   Tag Chips
   ---------------------------------------------------------- */
.tag-chip {
  display: inline-block;
  background: #14532d;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-family: monospace;
  line-height: 1.6;
}

.tag-chip:hover {
  background: #166534;
  color: var(--accent);
  text-decoration: none;
}

/* ----------------------------------------------------------
   Homepage Tagline
   ---------------------------------------------------------- */
.homepage-tagline {
  font-family: monospace;
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 28px;
}

/* ----------------------------------------------------------
   Hero Post Card
   ---------------------------------------------------------- */
.hero-post {
  background: #111827;
  border: 1px solid #2d3748;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 32px;
}

.hero-label {
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-family: monospace;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.hero-title a {
  text-decoration: none;
}

.hero-title a:hover {
  color: var(--accent);
}

.hero-summary {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: monospace;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   Recent Posts Grid
   ---------------------------------------------------------- */
.posts-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.posts-grid-label {
  font-family: monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.posts-grid-all {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.posts-grid-all:hover {
  text-decoration: underline;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: #111827;
  border: 1px solid #1e2733;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 14px;
  transition: border-left-color 0.15s, background 0.15s;
  text-decoration: none;
  display: block;
}

.post-card:hover {
  border-left-color: var(--accent);
  background: #1a2332;
  text-decoration: none;
}

.post-card-tag {
  margin-bottom: 8px;
  display: block;
}

.post-card-title {
  margin: 0 0 8px 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-meta {
  font-family: monospace;
  font-size: 0.72rem;
  color: #475569;
}

/* ----------------------------------------------------------
   Topics Page
   ---------------------------------------------------------- */
.topics-intro {
  font-family: monospace;
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

.topic-card {
  background: #111827;
  border: 1px solid #1e2733;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: border-left-color 0.15s, background 0.15s;
}

.topic-card:hover {
  border-left-color: var(--accent);
  background: #1a2332;
  text-decoration: none;
}

.topic-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.topic-count {
  font-family: monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.topic-watermark {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: #1e2733;
  line-height: 1;
  user-select: none;
}

/* ----------------------------------------------------------
   Resources Page
   ---------------------------------------------------------- */
.resources-intro {
  font-family: monospace;
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.resource-section {
  margin-bottom: 32px;
}

.resource-section-title {
  font-family: monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  border-bottom: 1px solid #1e2733;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #0f172a;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-link {
  color: #60a5fa;
  font-size: 0.9rem;
  text-decoration: none;
}

.resource-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.resource-label {
  font-family: monospace;
  font-size: 0.72rem;
  color: #64748b;
}
