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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  border-bottom: 1px solid #1e293b;
  padding: 2rem 1.5rem;
  text-align: center;
}

.site-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

.site-header h1 span {
  color: #f43f5e;
}

.site-header .tagline {
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 0.35rem;
  font-weight: 400;
}

.site-header .post-count {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Layout */
.layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  padding: 1.5rem 1rem;
}

.feed {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* Feed */
.post-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: #475569;
}

.post-card .post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-card .category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.post-card .post-date {
  color: #64748b;
  font-size: 0.85rem;
}

.post-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.post-card .post-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.post-card .post-source {
  font-size: 0.85rem;
  color: #64748b;
}

.post-card .post-source a {
  color: #60a5fa;
}

/* Post footer: source + share */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #334155;
}

.share-buttons {
  display: flex;
  gap: 0.4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0;
}

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

.share-btn:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  background: #60a5fa11;
}

.share-btn.copied {
  border-color: #34d399;
  color: #34d399;
}

/* Category colors */
.cat-chatbot { background: #7c3aed22; color: #a78bfa; border: 1px solid #7c3aed44; }
.cat-search { background: #f59e0b22; color: #fbbf24; border: 1px solid #f59e0b44; }
.cat-legal { background: #ef444422; color: #f87171; border: 1px solid #ef444444; }
.cat-government { background: #06b6d422; color: #22d3ee; border: 1px solid #06b6d444; }
.cat-workplace { background: #10b98122; color: #34d399; border: 1px solid #10b98144; }
.cat-hiring { background: #f4735e22; color: #fb923c; border: 1px solid #f4735e44; }
.cat-self-driving { background: #ec489922; color: #f472b6; border: 1px solid #ec489944; }
.cat-healthcare { background: #14b8a622; color: #2dd4bf; border: 1px solid #14b8a644; }
.cat-creative { background: #8b5cf622; color: #c4b5fd; border: 1px solid #8b5cf644; }
.cat-military { background: #78716c22; color: #a8a29e; border: 1px solid #78716c44; }
.cat-education { background: #0ea5e922; color: #38bdf8; border: 1px solid #0ea5e944; }

/* Sidebar */
.sidebar-section {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #475569;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  margin: 0.2rem;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.filter-btn.active {
  background: #60a5fa;
  color: #0f172a;
  border-color: #60a5fa;
}

.sidebar-about {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Promo block */
.sidebar-promo {
  border-color: #f43f5e44;
  background: linear-gradient(135deg, #1e293b 0%, #1e1a2e 100%);
}

.promo-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.2rem;
  background: #f43f5e;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.promo-link:hover {
  background: #e11d48;
  text-decoration: none;
}

/* Telegram block */
.sidebar-telegram {
  border-color: #0088cc44;
  background: linear-gradient(135deg, #1e293b 0%, #1a2535 100%);
}

.telegram-link {
  background: #0088cc;
}

.telegram-link:hover {
  background: #006daa;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

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

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 1.25rem 1rem;
  }

  .site-header h1 {
    font-size: 1.75rem;
  }

  .site-header .tagline {
    font-size: 0.9rem;
  }

  .layout {
    flex-direction: column;
    padding: 1rem 0.75rem;
    gap: 1rem;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-section {
    padding: 1rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
  }

  .post-card {
    padding: 1.15rem;
    border-radius: 10px;
  }

  .post-card h2 {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .post-card .post-description {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .post-card .post-date {
    font-size: 0.8rem;
  }

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

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

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

@media (max-width: 380px) {
  .site-header h1 {
    font-size: 1.5rem;
  }

  .post-card {
    padding: 1rem;
  }

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