/* Inside the Systems - Clean, Minimal, AdSense-Friendly Styles */
/* Font: Inter - designed for screen readability */
/* Matching whywestruggle.com look and feel */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  line-height: 1.7;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background-color: #fafafa;
  color: #333;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 48px;
}

.site-title {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.site-icon svg {
  width: 100%;
  height: 100%;
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-top: 8px;
}

/* Navigation */
nav {
  margin-top: 24px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #000;
}

/* Main Content */
main {
  min-height: 60vh;
  padding-bottom: 64px;
}

/* Section Headings */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* Post Lists */
.post-list {
  list-style: none;
  margin-bottom: 48px;
}

.post-list li {
  margin-bottom: 12px;
}

.post-list a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  transition: color 0.2s;
}

.post-list a:hover {
  color: #000;
  text-decoration: underline;
}

.post-meta {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  margin-left: 8px;
}

/* Category Sections on Homepage */
.category-section {
  margin-bottom: 48px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

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

.category-title a:hover {
  text-decoration: underline;
}

.category-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
}

.category-link:hover {
  text-decoration: underline;
}

/* Article Page */
.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 16px;
}

article h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 24px;
}

.article-meta {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

.article-meta a {
  color: #666;
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-content {
  margin-bottom: 48px;
}

.article-content p,
article p {
  margin-bottom: 24px;
  line-height: 1.75;
}

.article-content h2,
article h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #333;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-content h3,
article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #444;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content ul,
.article-content ol,
article ul,
article ol {
  margin-bottom: 24px;
  padding-left: 24px;
  line-height: 1.75;
}

.article-content li,
article li {
  margin-bottom: 8px;
}

.article-content blockquote,
article blockquote {
  border-left: 3px solid #ddd;
  padding-left: 20px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}

/* Ad Slots */
.ad-slot {
  background-color: #f5f5f5;
  border: 1px dashed #ddd;
  padding: 48px 24px;
  margin: 32px 0;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  font-weight: 400;
}

/* Posts Feed / Latest */
.posts-feed {
  margin-top: 48px;
}

.post-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

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

.post-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.post-item h3 a {
  color: #333;
  text-decoration: none;
}

.post-item h3 a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  margin-top: 6px;
  line-height: 1.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.pagination a {
  color: #555;
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination .current {
  color: #333;
  font-weight: 600;
}

/* Category Page */
.category-header {
  margin-bottom: 32px;
}

.category-intro {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}

.category-post-list {
  list-style: none;
}

.category-post-list li {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.category-post-list li:last-child {
  border-bottom: none;
}

.category-post-list a {
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.category-post-list a:hover {
  text-decoration: underline;
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.related-posts h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 48px 24px;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.copyright {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
}

/* Related Sites */
.related-sites {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.related-sites h4,
.related-sites p strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-sites ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-sites li,
.related-sites p {
  font-size: 0.85rem;
  color: #666;
}

.related-sites a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

.related-sites a:hover {
  text-decoration: underline;
}

/* Static Pages (About, Privacy, Terms) */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #222;
}

.page-content {
  margin-bottom: 48px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.75;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
  line-height: 1.75;
}

.page-content li {
  margin-bottom: 8px;
}

/* Latest Posts Section */
.latest-posts {
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 20px;
  }

  .footer-links {
    gap: 16px;
  }

  .related-sites ul {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  header {
    padding: 32px 0 24px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-icon {
    width: 26px;
    height: 26px;
  }

  nav ul {
    gap: 12px;
    justify-content: center;
  }

  nav a {
    font-size: 0.85rem;
  }

  article h1,
  .article-title {
    font-size: 1.5rem;
  }

  .category-title,
  .page-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .related-sites {
    text-align: left;
  }

  .related-sites ul {
    gap: 10px;
  }

  .related-sites li {
    font-size: 0.8rem;
  }

  .ad-slot {
    padding: 32px 16px;
    margin: 24px 0;
  }
}

@media (max-width: 400px) {
  nav ul {
    gap: 8px;
  }

  nav a {
    font-size: 0.8rem;
  }

  article h1,
  .article-title {
    font-size: 1.35rem;
  }
}
