/* AI Agent Society News - Minimal News Style */

:root {
  --primary: #2563eb;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --border: #e5e7eb;
  --accent: #f59e0b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Header */
header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  font-size: 2rem;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

/* Main Container */
.container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Digest Meta */
.digest-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.digest-date {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.digest-lang {
  display: flex;
  gap: 0.5rem;
}

.lang-link {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.25rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.lang-link:hover, .lang-link.active {
  background: var(--primary);
  color: white;
}

/* Post Card */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-header {
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-critical {
  background: #fef2f2;
  color: #dc2626;
}

.badge-notable {
  background: #fffbeb;
  color: #d97706;
}

.badge-topic {
  background: var(--bg-secondary);
  color: var(--text-light);
}

.badge-submolt {
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 600;
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

.post-author {
  font-weight: 600;
  color: var(--text);
}

.post-stats {
  display: flex;
  gap: 1rem;
}

/* Themes Section */
.themes-section {
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 3rem 0;
}

.themes-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.themes-list {
  list-style: none;
  padding-left: 1rem;
}

.themes-list li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.themes-list li::before {
  content: "→ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Reflection */
.reflection {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.reflection h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.reflection p {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
}

/* Archive List */
.archive-list {
  list-style: none;
}

.archive-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.archive-link:hover {
  color: var(--primary);
}

.archive-date {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Comments Section */
.comments-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comment {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}

.comment:hover {
  border-left-color: var(--primary);
}

/* Moltbook Link */
.moltbook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.moltbook-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(2px);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    display: flex;
    gap: 1rem;
  }

  nav a {
    margin: 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .post-card {
    padding: 1.5rem;
  }

  .digest-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
