/* ==========================================================================
   Podcast AdBlock Blog — WordPress-ish Theme
   Deliberately simple, slightly dated, Georgia serif, WP blue links.
   ========================================================================== */

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

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

a {
  color: #21759b;
  text-decoration: underline;
}
a:hover {
  color: #0f3647;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: 1.5em;
}

hr.post-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* --- Site Header --- */
.site-header {
  background: #21759b;
  color: #fff;
  padding: 0;
  border-bottom: 3px solid #1a5c7a;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5em 20px 1em;
}

.site-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
}
.site-title a {
  color: #fff;
  text-decoration: none;
}
.site-title a:hover {
  opacity: 0.9;
}

.site-tagline {
  font-size: 0.9em;
  color: #c5dfe8;
  margin-top: 0.2em;
  font-style: italic;
}

/* --- Main Nav --- */
.main-nav {
  background: #1a5c7a;
  max-width: 100%;
  overflow-x: auto;
}
.main-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1.2em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- Content Layout --- */
.content-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2em 20px;
  display: flex;
  gap: 30px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* --- Sidebar --- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.widget {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
}

.widget h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
}

.widget ul {
  list-style: none;
  padding: 0;
}
.widget ul li {
  padding: 0.3em 0;
  border-bottom: 1px dotted #e0e0e0;
  font-size: 0.9em;
}
.widget ul li:last-child {
  border-bottom: none;
}

.tag-cloud {
  line-height: 2;
}
.tag-cloud a {
  display: inline-block;
  margin: 0 0.3em 0.2em 0;
  padding: 0.1em 0.4em;
  background: #e8e8e8;
  color: #555;
  text-decoration: none;
  font-size: 0.85em;
}
.tag-cloud a:hover {
  background: #21759b;
  color: #fff;
}

.author-avatar-sidebar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  float: left;
  margin-right: 0.8em;
  margin-bottom: 0.5em;
}

/* --- Post Cards (index / archive) --- */
.post-card {
  margin-bottom: 0.5em;
}

.post-thumbnail img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.8em;
}

.post-title {
  font-size: 1.5em;
  line-height: 1.3;
  margin-bottom: 0.3em;
}
.post-title a {
  color: #21759b;
  text-decoration: none;
}
.post-title a:hover {
  text-decoration: underline;
}

.post-meta {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 0.8em;
}
.post-meta a {
  color: #888;
}
.post-meta a:hover {
  color: #21759b;
}

.post-excerpt {
  margin-bottom: 0.8em;
  color: #555;
}

.read-more {
  font-size: 0.9em;
  font-style: italic;
}

/* --- Single Post --- */
.single-post .post-header {
  margin-bottom: 1.5em;
}

.single-post .post-title {
  font-size: 2em;
}

.post-featured-image {
  margin-bottom: 1.5em;
}
.post-featured-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.post-content {
  margin-bottom: 2em;
}

.post-content h2 {
  font-size: 1.4em;
  margin: 1.5em 0 0.5em;
  color: #222;
}
.post-content h3 {
  font-size: 1.2em;
  margin: 1.3em 0 0.4em;
  color: #333;
}
.post-content p {
  margin-bottom: 1em;
}
.post-content blockquote {
  border-left: 4px solid #21759b;
  padding: 0.5em 1em;
  margin: 1em 0;
  background: #f9f9f9;
  color: #555;
  font-style: italic;
}
.post-content ul, .post-content ol {
  margin-bottom: 1em;
}
.post-content code {
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  border-radius: 2px;
}
.post-content pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}
.post-content pre code {
  background: none;
  padding: 0;
}

/* --- Post Tags --- */
.post-tags {
  font-size: 0.85em;
  color: #777;
  padding: 1em 0;
  border-top: 1px solid #ddd;
  margin-top: 1.5em;
}
.post-tags a {
  background: #e8e8e8;
  color: #555;
  padding: 0.2em 0.6em;
  text-decoration: none;
  margin-right: 0.3em;
}
.post-tags a:hover {
  background: #21759b;
  color: #fff;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 1em;
  padding: 1.5em;
  background: #f7f7f7;
  border: 1px solid #ddd;
  margin-top: 2em;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1em;
  margin-bottom: 0.3em;
}

/* --- Author Page --- */
.author-page-header {
  display: flex;
  gap: 1.5em;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #ddd;
}

.author-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-bio p {
  margin-bottom: 0.5em;
  color: #555;
}

/* --- Archive Title --- */
.archive-title {
  font-size: 1.6em;
  margin-bottom: 0.3em;
  border-bottom: 2px solid #21759b;
  padding-bottom: 0.3em;
}

.archive-description {
  color: #666;
  margin-bottom: 1.5em;
  font-style: italic;
}

/* --- Related Posts --- */
.related-posts {
  margin-top: 2em;
  padding: 1em;
  background: #f7f7f7;
  border: 1px solid #ddd;
}
.related-posts h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.related-posts ul {
  list-style: disc;
}
.related-posts li {
  padding: 0.2em 0;
}

/* --- Pagination --- */
.pagination {
  text-align: center;
  padding: 2em 0 1em;
  border-top: 1px solid #ddd;
  margin-top: 1em;
}
.pagination a {
  padding: 0.4em 0.8em;
  margin: 0 0.3em;
  background: #f0f0f0;
  text-decoration: none;
  font-size: 0.9em;
}
.pagination a:hover {
  background: #21759b;
  color: #fff;
}
.page-info {
  color: #888;
  font-size: 0.85em;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2em 20px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  font-size: 0.85em;
  color: #777;
  margin-top: 2em;
}
.site-footer a {
  color: #21759b;
}
.footer-powered {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 404 --- */
.not-found {
  text-align: center;
  padding: 3em 0;
}
.not-found h1 {
  font-size: 4em;
  color: #ddd;
}
.not-found p {
  font-size: 1.1em;
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .content-wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .single-post .post-title {
    font-size: 1.5em;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
