/* notitech.lat — Magazine dark redesign v2 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg:       #080b12;
  --surface:  #0f1420;
  --glass:    rgba(255,255,255,.05);
  --border:   rgba(255,255,255,.08);
  --accent:   #00e5b8;
  --accent2:  #00c49a;
  --gold:     #f59e0b;
  --text:     #e8edf5;
  --muted:    #8896a8;
  --white:    #ffffff;

  --cat-ai:       #8b5cf6;
  --cat-cloud:    #0ea5e9;
  --cat-security: #ef4444;
  --cat-dev:      #22c55e;
  --cat-hardware: #f59e0b;
  --cat-startups: #ec4899;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,11,18,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; height: 64px;
}
.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem; letter-spacing: -0.5px; flex-shrink: 0;
}
.logo-nt  { color: var(--accent); }
.logo-dot { color: var(--muted); }
.site-nav { display: flex; gap: 1.5rem; margin-right: auto; }
.site-nav a {
  color: var(--muted); font-size: .875rem; font-weight: 500;
  transition: color .15s; padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); border-color: var(--accent); }
.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  background: var(--glass); border: 1px solid var(--border);
  color: var(--muted); font-size: .78rem; font-weight: 600;
  padding: 5px 12px; cursor: pointer; border-radius: 6px;
  transition: all .15s; font-family: inherit; min-height: 34px;
  backdrop-filter: blur(8px);
}
.lang-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #080b12; font-weight: 700;
}
.lang-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ── Ticker band ─────────────────────────────────────────────────────────── */
.ticker-band {
  background: linear-gradient(90deg, #080b12, #0f1420 50%, #080b12);
  border-bottom: 1px solid var(--border);
  padding: .6rem 2rem;
  display: flex; gap: 1.5rem; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--muted); overflow: hidden;
}
.ticker-live {
  background: var(--accent); color: #080b12; font-weight: 800;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; flex-shrink: 0;
}
.ticker-sep { color: var(--border); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem; }

/* ── Featured (hero) article ─────────────────────────────────────────────── */
.featured {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 480px; margin-bottom: 2.5rem;
  display: flex; align-items: flex-end;
}
.featured-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.featured:hover .featured-img { transform: scale(1.03); }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.1) 100%);
}
.featured-content {
  position: relative; z-index: 2; padding: 2.5rem;
  width: 100%;
}
.featured-eyebrow {
  display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem;
}
.featured-label {
  background: var(--gold); color: #080b12;
  font-weight: 800; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 4px;
}
.featured-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; line-height: 1.2; color: #fff;
  max-width: 700px; margin-bottom: .75rem;
}
.featured-title em { font-style: italic; color: var(--accent); }
.featured-excerpt { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 600px; margin-bottom: 1.25rem; }
.featured-meta { font-size: .82rem; color: rgba(255,255,255,.55); display: flex; gap: 1rem; }
.featured-cta {
  display: inline-block;
  background: var(--accent); color: #080b12;
  font-weight: 700; font-size: .875rem;
  padding: .6rem 1.4rem; border-radius: 8px;
  margin-top: 1rem; transition: background .15s;
}
.featured-cta:hover { background: var(--accent2); color: #080b12; }

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.section-title {
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ── Article grid ────────────────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  border-radius: 12px; overflow: hidden;
  position: relative; height: 300px;
  display: flex; align-items: flex-end;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 6s ease;
}
.card:hover .card-img { transform: scale(1.06); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.05) 100%);
}
.card-link { display: block; position: absolute; inset: 0; z-index: 3; }
.card-content {
  position: relative; z-index: 2; padding: 1.25rem;
  width: 100%;
}
.card-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.card-meta { font-size: .75rem; color: rgba(255,255,255,.5); margin-left: auto; }
.card-title {
  font-size: .975rem; font-weight: 700; line-height: 1.35;
  color: var(--white); margin-bottom: .4rem;
}
.card-excerpt { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.5; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .65rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; color: #fff; white-space: nowrap;
  flex-shrink: 0;
}
.tag {
  display: inline-block; font-size: .7rem;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--muted); padding: 2px 9px; border-radius: 999px;
}

/* ── Article page ────────────────────────────────────────────────────────── */
.article-hero {
  position: relative; height: 400px; border-radius: 16px; overflow: hidden;
  margin-bottom: 2.5rem;
}
.article-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(8,11,18,1) 100%);
}
.article-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem; z-index: 2;
}
.article-page { max-width: 820px; }
.breadcrumb {
  font-size: .82rem; color: var(--muted);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; font-weight: 400; line-height: 1.2;
  color: var(--white); margin-bottom: 1rem;
}
.article-meta {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-size: .875rem; color: var(--muted); margin-bottom: 1rem;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2rem; }
.article-body {
  font-size: 1.08rem; line-height: 1.85; color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.article-body p { margin-bottom: 1.4rem; }
.source-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(0,229,184,.12), rgba(0,229,184,.04));
  border: 1px solid rgba(0,229,184,.3);
  color: var(--accent); font-weight: 700; font-size: 1rem;
  padding: 1.25rem 1.75rem; border-radius: 12px;
  margin: 2rem 0; transition: all .2s;
}
.source-cta:hover {
  background: linear-gradient(135deg, rgba(0,229,184,.2), rgba(0,229,184,.08));
  color: var(--accent); border-color: var(--accent);
}
.source-cta-arrow { font-size: 1.5rem; }
.back-link {
  color: var(--muted); font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem; transition: color .15s;
}
.back-link:hover { color: var(--accent); }

/* ── Page header (category / archive pages) ──────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, rgba(0,229,184,.06) 0%, rgba(0,0,0,0) 60%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-header-inner { margin-top: .5rem; }
.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem; color: var(--white);
  margin: .5rem 0 .4rem; line-height: 1.15;
}
.page-subtitle {
  color: var(--muted); font-size: .92rem; max-width: 600px;
}

/* ── Archive page ─────────────────────────────────────────────────────────── */
.archive-container { max-width: 900px; }
.archive-month {
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
}
.archive-month-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; color: var(--accent);
  margin-bottom: 1rem; letter-spacing: -.02em;
}
.archive-month-count { color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 400; }
.archive-list {
  list-style: none; display: flex; flex-direction: column; gap: .6rem;
}
.archive-item {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .5rem .75rem;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 8px; transition: border-color .15s, background .15s;
}
.archive-item:hover { border-color: var(--accent); background: rgba(0,229,184,.04); }
.archive-date {
  font-size: .75rem; color: var(--muted); min-width: 42px; flex-shrink: 0;
}
.archive-badge { cursor: pointer; text-decoration: none; flex-shrink: 0; }
.archive-link {
  color: var(--text); font-size: .88rem; font-weight: 500;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.archive-link:hover { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: linear-gradient(0deg, rgba(0,229,184,.03), transparent);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 1.3rem; }
.footer-copy { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .85rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .article-title { font-size: 1.6rem; }
  .featured { height: 380px; }
  .featured-title { font-size: 1.5rem; }
  .header-inner { padding: 0 1rem; gap: 1rem; }
  .site-nav { display: none; }
  .container { padding: 1.5rem 1rem; }
}
