/* ============================================
   BelgGeek — belgeek.tech
   Static blog for Belgian IT pros & SMBs
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-header: #000000;
  --bg-header-alt: #1e293b;
  --bg-content: #f8fafc;
  --bg-card: #ffffff;
  --bg-footer: #000000;
  --accent: #00c2e0;
  --accent-hover: #0891b2;
  --accent-dim: rgba(0,194,224,0.10);
  --blue: #3b82f6;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #334155;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1140px;
  --content-width: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-content);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* --- Header / Nav --- */
.site-header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 42px;
  width: auto;
  mix-blend-mode: lighten;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

.hero-logo {
  max-width: 320px;
  height: auto;
  margin: 0 auto 24px;
  mix-blend-mode: lighten;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta:hover { background: var(--accent-hover); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: var(--bg-header);
  padding: 64px 24px 72px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-tagline .cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Main Content --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* --- Section Titles --- */
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

/* --- Article Cards Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-header-alt);
}

.card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-header-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  opacity: 0.7;
}

.card-body { padding: 24px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 4px;
}

.card-date {
  font-size: 13px;
  color: var(--text-muted);
}

.card-body h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-body h2 a {
  color: var(--text-primary);
}

.card-body h2 a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-read-more {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.card-read-more:hover::after { transform: translateX(4px); }

/* --- Featured / Sticky Article --- */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 48px;
}

.featured-image {
  background: linear-gradient(135deg, var(--bg-header) 0%, #0c4a6e 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 48px;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.featured-content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.featured-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Sidebar / Newsletter --- */
.newsletter-box {
  background: var(--bg-header);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-bottom: 48px;
}

.newsletter-box h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-box p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background: var(--bg-header-alt);
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
}

.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--accent-hover); }

/* --- Categories Bar --- */
.categories-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Article Page --- */
.article-header {
  background: var(--bg-header);
  padding: 48px 24px 56px;
  text-align: center;
}

.article-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-header .card-tag { margin-bottom: 16px; display: inline-block; }

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.article-header .article-meta {
  color: var(--text-muted);
  font-size: 15px;
}

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  padding: 2px 7px;
  border-radius: 4px;
}

.article-body pre {
  background: var(--bg-header);
  color: var(--text-light);
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
  line-height: 1.5;
}

.article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Info box for tips */
.info-box {
  background: var(--accent-dim);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box strong {
  color: var(--accent-hover);
}

/* --- About Page --- */
.about-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-section p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-dark);
  padding: 48px 24px 32px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-text {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand .logo-text span { color: var(--accent); }

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Ad / Affiliation Placeholder --- */
.ad-slot {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 32px 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }

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

  .featured-article { grid-template-columns: 1fr; }
  .featured-image { min-height: 200px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-dark);
  }

  .newsletter-form { flex-direction: column; }

  .article-header h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 40px 16px 48px; }
  .main-content { padding: 32px 16px; }
  .card-body { padding: 18px; }
}
