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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f5f7;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Header */
.site-header {
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 32px;
}

.site-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  opacity: 0.7;
}

.site-header .date {
  color: #666;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Section */
section {
  margin-bottom: 32px;
}

section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #3447db;
  margin-bottom: 16px;
  color: #1a1a1a;
}

section h2.x-posts-heading {
  border-bottom-color: #1d9bf0;
}

section h2.insights-heading {
  border-bottom-color: #e67e22;
}

/* News Card */
.news-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s;
}

.news-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.news-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: #3447db;
}

.news-card .summary {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
}

.news-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.news-card .source {
  font-size: 0.8rem;
  color: #888;
}

.news-card .source a {
  color: #888;
  text-decoration: none;
}

.news-card .source a:hover {
  text-decoration: underline;
}

/* Tag Badge */
.tag {
  display: inline-block;
  background: #eef1fb;
  color: #3447db;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}

/* X Post List */
.x-post {
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.x-post .user {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: #1d9bf0;
  min-width: 120px;
}

.x-post .user a {
  color: inherit;
  text-decoration: none;
}

.x-post .user a:hover {
  text-decoration: underline;
}

.x-post .excerpt {
  font-size: 0.9rem;
  color: #333;
  flex: 1;
}

.x-post .stats {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  display: flex;
  gap: 10px;
}

/* Insights Table */
.insights-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.insights-table th,
.insights-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.insights-table th {
  background: #f8f8fa;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

.insights-table tr:last-child td {
  border-bottom: none;
}

/* Top Page - Date List */
.date-list {
  list-style: none;
}

.date-entry {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.date-entry .date-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.date-entry .date-label a {
  color: #3447db;
  text-decoration: none;
}

.date-entry .date-label a:hover {
  text-decoration: underline;
}

.date-entry .headlines {
  font-size: 0.88rem;
  color: #555;
  margin-top: 4px;
}

.date-entry .entry-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.date-entry .entry-links a {
  font-size: 0.85rem;
  color: #3447db;
  text-decoration: none;
  font-weight: 500;
}

.date-entry .entry-links a:hover {
  text-decoration: underline;
}

/* Page Navigation */
.page-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.page-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.page-nav a:hover {
  color: #3447db;
}

.page-nav a.active {
  color: #3447db;
  border-bottom-color: #3447db;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 32px;
  font-size: 0.82rem;
  color: #999;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 16px 12px;
  }

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

  .x-post {
    flex-direction: column;
    gap: 4px;
  }

  .x-post .user {
    min-width: auto;
  }

  .x-post .stats {
    margin-top: 4px;
  }
}
