/* style.css */
:root {
  --bg: #F8F9FA;
  --white: #ffffff;
  --text: #4B5563;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --ad-bg: #F3F4F6;
  --ad-border: #D1D5DB;
  --ad-text: #9CA3AF;
  --primary: #2563eb;
}

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

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

.container {
  width: 1300px;
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  height: 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  min-width: 1300px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1300px;
  padding: 0 24px;
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text-dark);
}

/* Ads Styles */
.ad-top, .ad-bottom, .ad-left, .ad-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  color: var(--ad-text);
  font-family: monospace;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-top {
  width: 728px;
  height: 90px;
  margin: 12px auto;
  flex-shrink: 0;
}

.ad-bottom {
  width: 728px;
  height: 90px;
  margin: 12px auto;
  flex-shrink: 0;
}

.ad-left {
  width: 160px;
  height: 600px;
}

.ad-right {
  width: 300px;
  height: 600px;
}

.sticky-ad {
  position: sticky;
  top: 60px; /* offset for sticky header */
}

/* Layout Definitions */
.main-layout, .post-layout {
  width: 1300px;
  margin: 12px auto;
  display: grid;
  grid-template-columns: 160px 800px 300px;
  gap: 20px;
  align-items: start;
}

.left-sidebar, .right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Content Area */
.content-area {
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

/* Blog Grid -> List format matching the design theme */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  border-radius: 0;
}

.blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--border);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  padding: 0;
}

.blog-card-title {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 4px 0;
  line-height: 1.3;
  font-weight: 700;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-excerpt {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: none; /* Hidden per Natural Tones clean list layout pattern */
}

/* Sidebar Widgets */
.sidebar-widget {
  background: transparent;
  padding: 0;
  border: none;
}

.sidebar-widget h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.sidebar-widget ul {
  list-style: none;
  font-size: 13px;
  color: var(--text);
  margin: 0;
  padding: 0;
}

.sidebar-widget li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

.sidebar-widget a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
  display: block;
}

.sidebar-widget a:hover {
  color: var(--text-dark);
}

.search-input {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--ad-text);
}

.search-input:focus {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

/* Single Post Specific Styles */
.post-wrapper {
  background: transparent;
  border: none;
  padding: 0;
}

.post-header {
  margin-bottom: 16px;
}

.post-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.post-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.post-meta a {
  color: var(--text-dark);
  text-decoration: none;
}

.post-featured-image {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 24px;
  max-height: 450px;
  object-fit: cover;
}

.post-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.post-content h2, .post-content h3 {
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.post-content h2 { font-size: 18px; }
.post-content h3 { font-size: 15px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 20px; }
.post-content li { margin-bottom: 4px; }
.post-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin: 20px 0;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  min-width: 1300px;
}
