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

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

:root {
  --bg: #faf8f5;
  --surface: #fff;
  --border: #e8e2d9;
  --border-dark: #d4cdc3;
  --text: #2c2520;
  --text-muted: #7a7067;
  --text-dim: #a8a099;
  --text-bright: #1a1510;
  --red: #c54a3a;
  --green: #3a8c5c;
  --yellow: #b8860b;
  --blue: #3170a9;
  --purple: #7b5ea7;
  --cyan: #2a8a8a;
  --orange: #c66a20;
  --pink: #b84a72;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── NAV BAR ─── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--text-bright);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 52px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--red);
}


.nav-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-tg {
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-tg:hover {
  color: var(--blue);
  text-decoration: none;
}

/* ─── ASCII BANNER ─── */
.ascii-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.ascii-art {
  font-family: var(--mono);
  font-size: 0.55rem;
  line-height: 1.15;
  color: var(--text-bright);
  letter-spacing: 0;
  overflow-x: auto;
  white-space: pre;
  display: inline-block;
  text-align: left;
}

.ascii-tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

/* ─── HERO ─── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

.hero-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
  text-decoration: none;
  transition: transform 0.15s;
  aspect-ratio: 21/9;
  border: 1px solid var(--border-dark);
}

.hero-card:hover {
  transform: scale(1.002);
  text-decoration: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,21,16,0.9) 0%, rgba(26,21,16,0.4) 35%, transparent 60%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
}

.hero-content .category-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #b8b0a5;
}

.hero-meta .source-name {
  font-weight: 600;
  color: #d8d0c5;
}

.hero-placeholder {
  text-align: center;
  padding: 4rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ─── TIPLINE ─── */
.tipline {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.tipline-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
}

.tipline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tipline-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
}

.tipline-cursor {
  width: 6px;
  height: 14px;
  background: var(--red);
  animation: blink 1s step-end infinite;
}

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

.tipline h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.tipline p {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  max-width: 560px;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tipline-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 560px;
}

.tipline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tipline-input {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.tipline-input::placeholder {
  color: var(--text-dim);
}

.tipline-input:focus {
  border-color: var(--red);
}

.tipline-textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.5;
}

.tipline-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.1rem;
}

.tipline-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--text-bright);
  background: var(--text-bright);
  color: var(--bg);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  white-space: nowrap;
}

.tipline-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.tipline-note {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

/* ─── TRACKERS ─── */
.trackers {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 0;
}

.trackers-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.7rem;
  flex-wrap: wrap;
}

.trackers-label {
  color: var(--text-dim);
  font-weight: 500;
}

.tracker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.15s;
}

.tracker-link:hover {
  color: var(--text-bright);
  text-decoration: none;
}

.tracker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

/* ─── FILTERS BAR ─── */
.filters-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  position: sticky;
  top: 52px;
  z-index: 90;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.filter-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  border-color: var(--border-dark);
  color: var(--text);
  background: var(--surface);
}

.filter-btn.active {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
  font-weight: 700;
}

/* ─── CONTENT GRID ─── */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

/* ─── POST CARD ─── */
.post-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.post-card:hover {
  background: #f5f2ed;
}

.post-image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border);
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  filter: saturate(0.9);
}

.post-card:hover .post-image img {
  transform: scale(1.02);
  filter: saturate(1);
}

.post-image .category-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  z-index: 2;
}

.post-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image.no-image::after {
  content: '//';
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-dark);
  letter-spacing: 2px;
}

.post-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.post-card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  letter-spacing: -0.2px;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--red);
  text-decoration: none;
}

.post-description {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
  flex: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.post-source {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.post-source a {
  color: var(--text-muted);
}

.post-source a:hover {
  color: var(--red);
}

/* ─── SHARE BUTTONS ─── */
.share-buttons {
  display: flex;
  gap: 0.2rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0;
}

.share-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.share-btn:hover {
  border-color: var(--border-dark);
  color: var(--text-muted);
  background: var(--bg);
}

.share-btn.copied {
  border-color: var(--green);
  color: var(--green);
}

/* ─── CATEGORY COLORS ─── */
.cat-chatbot    { background: var(--purple); color: #fff; }
.cat-search     { background: var(--yellow); color: #fff; }
.cat-legal      { background: var(--red); color: #fff; }
.cat-government { background: var(--cyan); color: #fff; }
.cat-workplace  { background: var(--green); color: #fff; }
.cat-hiring     { background: var(--orange); color: #fff; }
.cat-self-driving { background: var(--pink); color: #fff; }
.cat-healthcare { background: #2d8055; color: #fff; }
.cat-creative   { background: #9a7ad8; color: #fff; }
.cat-military   { background: #78716c; color: #fff; }
.cat-education  { background: var(--blue); color: #fff; }
.cat-layoffs    { background: #b33030; color: #fff; }
.cat-privacy    { background: #6d4aaa; color: #fff; }
.cat-bias       { background: #a85420; color: #fff; }

/* ─── LOAD MORE ─── */
.load-more {
  text-align: center;
  padding: 1.5rem 1rem 3rem;
}

.load-more-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--border-dark);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.load-more-btn:hover {
  background: var(--text-bright);
  color: var(--bg);
  border-color: var(--text-bright);
}

/* ─── FOOTER ─── */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-top: 2px solid var(--text-bright);
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--border-dark);
}

.site-footer a {
  color: var(--text-muted);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--red);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.empty-state p {
  font-size: 0.85rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-card {
    aspect-ratio: 16/9;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .nav-inner {
    padding: 0 1rem;
    height: 46px;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .ascii-banner {
    padding: 1rem 0.75rem 0;
  }

  .ascii-art {
    font-size: 0.3rem;
  }

  .ascii-tagline {
    font-size: 0.65rem;
  }

  .hero {
    padding: 0.75rem 0.75rem 0;
  }

  .hero-card {
    aspect-ratio: 16/10;
  }

  .hero-content {
    padding: 1rem 1.25rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .hero-content .category-tag {
    font-size: 0.56rem;
    margin-bottom: 0.35rem;
  }

  .hero-meta {
    font-size: 0.68rem;
  }

  .tipline {
    padding: 0.75rem 0.75rem 0;
  }

  .tipline-inner {
    padding: 1.15rem 1rem;
  }

  .tipline h3 {
    font-size: 1rem;
  }

  .tipline p {
    font-size: 0.72rem;
  }

  .tipline-row {
    grid-template-columns: 1fr;
  }

  .tipline-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .tipline-btn {
    width: 100%;
    text-align: center;
  }

  .trackers {
    padding: 0.5rem 0.75rem 0;
  }

  .filters-bar {
    padding: 0.5rem 0.75rem;
    top: 46px;
  }

  .content {
    padding: 0 0.75rem 2rem;
  }

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

  .post-card h2 {
    font-size: 0.9rem;
  }

  .post-description {
    font-size: 0.78rem;
  }

  .post-footer {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .share-btn {
    width: 30px;
    height: 30px;
  }

  .share-btn svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 380px) {
  .nav-logo {
    font-size: 0.85rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .post-body {
    padding: 0.8rem 0.9rem;
  }
}
