/* Override base body max-width for Daily Agent pages */
body:has(.daily-agent-layout) {
  max-width: 1200px !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Daily Agent Two-Column Layout */
.daily-agent-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--color-muted);
  font-size: 1.1rem;
  font-style: italic;
}

/* Two-column grid */
.two-column-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 3rem;
  align-items: start;
}

/* Main content column */
.main-column {
  min-width: 0; /* Prevent grid blowout */
}

.main-column h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Archive section */
.archive-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-accent);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--color-muted);
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.category-badge:hover,
.category-badge.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archive-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

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

.archive-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.archive-item h3 a {
  color: var(--color-text);
}

.archive-item h3 a:hover {
  color: var(--color-accent);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.post-categories {
  display: flex;
  gap: 0.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
}

.excerpt {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Sidebar */
.sidebar-column {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sidebar-section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.sidebar-empty {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* Signals */
.signals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signal-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.signal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.signal-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25rem;
}

.signal-item a:hover {
  color: var(--color-accent);
}

.signal-category {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--color-accent);
  color: white;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.signal-summary {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

/* Themes */
.themes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.themes-list li {
  font-size: 0.9rem;
  margin: 0;
}

.theme-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #e8e8e8;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

.themes-list a {
  color: var(--color-text);
  font-size: 0.85rem;
}

.themes-list a:hover {
  color: var(--color-accent);
}

/* Synthesis */
.synthesis-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.synthesis-list li {
  margin: 0;
}

.synthesis-list a {
  color: var(--color-text);
  font-size: 0.9rem;
}

.synthesis-list a:hover {
  color: var(--color-accent);
}

.sidebar-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.sidebar-link:hover {
  border-bottom-color: var(--color-accent);
}

.sidebar-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--color-accent);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sidebar-cta:hover {
  background: #6b3510;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-bottom: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .category-filters {
    font-size: 0.8rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sidebar-section {
    background: #2a2a2a;
  }
  
  .category-badge {
    background: #2a2a2a;
    color: var(--color-text);
  }
  
  .category-badge:hover,
  .category-badge.active {
    background: var(--color-accent);
    color: white;
  }
  
  .category-tag,
  .theme-tag {
    background: #333;
    color: var(--color-accent);
  }
  
  .signal-item {
    border-bottom-color: #333;
  }
  
  .archive-item {
    border-bottom-color: #333;
  }
  
  .sidebar-cta {
    background: var(--color-accent);
  }
  
  .sidebar-cta:hover {
    background: #a0673a;
  }
}
