/* PBN Chameleon Theme Stylesheet - Clean Semantic Architecture */
:root {
  --theme-primary: #8C5835;
  --theme-secondary: #D99858;
  --theme-bg: #FBF7F2;
  --theme-surface: #FFFFFF;
  --theme-text: #2C221E;
  --theme-border: rgba(0, 0, 0, 0.08);
  --theme-muted: #64748B;
  --theme-radius: 8px;
  --theme-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--theme-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--theme-secondary); }

/* Top Announcement Bar */
.site-topbar {
  background: var(--theme-primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Header & Navigation */
.site-header {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.site-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: -0.5px;
}
.site-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.site-menu a {
  color: var(--theme-text);
  font-weight: 500;
  font-size: 15px;
}
.site-menu a:hover {
  color: var(--theme-primary);
}

/* Sections & Layout */
.site-section {
  padding: 48px 0;
}
.section-header {
  margin-bottom: 32px;
  border-bottom: 2px solid var(--theme-border);
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--theme-primary);
}

/* Cards & Grid Systems */
.grid-editorial {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.grid-three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.grid-classic-sidebar {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
}

.post-card {
  background: var(--theme-surface);
  border-radius: var(--theme-radius);
  padding: 28px;
  box-shadow: var(--theme-shadow);
  border: 1px solid var(--theme-border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.post-card.card-featured {
  padding: 36px;
  background: linear-gradient(180deg, var(--theme-surface) 0%, rgba(255,255,255,0.95) 100%);
  border-left: 4px solid var(--theme-primary);
}
.post-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.post-card.card-featured h3 {
  font-size: 26px;
}
.entry-meta {
  font-size: 13px;
  color: var(--theme-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-badge {
  background: rgba(0, 0, 0, 0.04);
  color: var(--theme-primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.entry-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--theme-text);
  margin-bottom: 20px;
  flex-grow: 1;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--theme-secondary);
  font-size: 15px;
}
.read-more-btn:hover {
  text-decoration: underline;
}

/* Sidebar Styles */
.site-sidebar .widget-box {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--theme-shadow);
}
.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--theme-border);
  padding-bottom: 8px;
}
.widget-list {
  list-style: none;
}
.widget-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}
.widget-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Article Single View */
.article-header {
  margin-bottom: 32px;
}
.article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--theme-primary);
  margin-bottom: 16px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--theme-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--theme-muted); }
.breadcrumbs span { color: var(--theme-text); }
.article-content {
  font-size: 17px;
  line-height: 1.85;
}
.article-content h2 {
  font-size: 24px;
  margin: 36px 0 16px;
  color: var(--theme-primary);
}
.article-content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--theme-text);
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 28px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 4px solid var(--theme-secondary);
  background: rgba(0,0,0,0.02);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

/* Footer */
.site-footer {
  background: var(--theme-surface);
  border-top: 1px solid var(--theme-border);
  padding: 48px 0 28px;
  margin-top: 64px;
}
.footer-disclaimer {
  font-size: 13px;
  color: var(--theme-muted);
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.footer-copyright {
  font-size: 13px;
  text-align: center;
  color: var(--theme-muted);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 24px;
}

@media (max-width: 860px) {
  .grid-editorial, .grid-classic-sidebar { grid-template-columns: 1fr; }
  .article-title { font-size: 28px; }
  .site-header { padding: 14px 0; }
}