/* ============================================
   MICHAEL POLLAN AESTHETIC REDESIGN
   Elegant, minimal, serif-based publishing platform
   ============================================ */

/* --- Reset & Defaults --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', 'Georgia', serif;
  line-height: 2;
  color: #3a3a3a;
  background: #f5f3f0;
  font-size: 18px;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
  margin-top: 0;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
}

h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 400;
}

h4, h5, h6 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.95;
}

a {
  color: #2d5a4a;
  text-decoration: none;
  border-bottom: 1px solid #7ec69f;
  transition: all 0.3s ease;
}

a:hover {
  color: #7ec69f;
  border-bottom-color: #2d5a4a;
}

/* --- Layout --- */
header {
  background: #2d5a4a;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

nav .logo {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #f5f3f0;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 400;
  color: #f5f3f0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 1rem;
}

nav a:hover {
  border-bottom-color: #7ec69f;
  color: #7ec69f;
}

/* --- Navigation Right Section (Instagram + Hamburger) --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #f5f3f0;
  border: none;
  transition: all 0.3s ease;
}

.instagram-icon {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.instagram-link:hover {
  color: #7ec69f;
  border-bottom: none;
  transform: scale(1.1);
}

/* --- Hamburger Menu Button --- */
.hamburger-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  color: #f5f3f0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: #7ec69f;
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    gap: 1.5rem;
  }

  nav .logo {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .instagram-link {
    width: 2rem;
    height: 2rem;
  }

  .hamburger {
    font-size: 1.8rem;
  }
}

/* --- Hamburger Menu Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2d5a4a;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop dropdown menu */
@media (min-width: 1024px) {
  .hamburger-wrapper {
    position: relative;
  }

  .menu-overlay {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    bottom: auto;
    width: 420px;
    background: #2d5a4a;
    margin-top: 0.5rem;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 999;
  }

  .menu-close {
    display: none;
  }

  .menu-content {
    padding: 1.5rem;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .menu-overlay:not(.active) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.menu-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #f5f3f0;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0.5rem;
}

.menu-close:hover {
  color: #7ec69f;
}

.menu-content {
  color: #f5f3f0;
}

@media (max-width: 1023px) {
  .menu-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
  }
}

.menu-search {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid #7ec69f;
  padding-bottom: 0.7rem;
}

@media (max-width: 1023px) {
  .menu-search {
    margin-bottom: 2rem;
  }
}

.search-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.search-input {
  background: none;
  border: none;
  color: #f5f3f0;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.2rem;
  outline: none;
  flex: 1;
  padding: 0;
}

.search-input::placeholder {
  color: #a8b8b0;
}

.menu-item {
  display: block;
  color: #f5f3f0;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: 'Lora', 'Georgia', serif;
  padding: 0.6rem 0;
  border: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.menu-item:hover {
  color: #7ec69f;
}

.menu-link {
  margin-bottom: 0.3rem;
}

.menu-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #5a7a6d;
}

@media (max-width: 1023px) {
  .menu-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

.menu-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.menu-header {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f5f3f0;
  margin-bottom: 0.7rem;
  font-weight: 500;
  font-family: 'Playfair Display', 'Georgia', serif;
}

@media (max-width: 1023px) {
  .menu-header {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
}

.menu-subitem {
  font-size: 1.2rem;
  margin-left: 0;
  padding: 0.5rem 0;
}

@media (max-width: 1023px) {
  .menu-subitem {
    font-size: 1.1rem;
    margin-left: 1.5rem;
    padding: 0.4rem 0;
  }
}

@media (max-width: 768px) {
  .menu-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .menu-content {
    padding: 6rem 1.5rem 3rem;
  }

  .menu-item {
    font-size: 1.15rem;
  }

  .menu-subitem {
    font-size: 1rem;
  }

  .menu-header {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .menu-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
  }

  .menu-content {
    padding: 5rem 1rem 2rem;
  }

  .menu-item {
    font-size: 1rem;
  }

  .menu-subitem {
    font-size: 0.95rem;
  }

  .search-input {
    font-size: 1rem;
  }
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  background: #f5f3f0;
}

main.main-post {
  padding: 1.5rem 2rem 2rem 2rem;
  background: #f5f3f0;
}

footer {
  background: #2d5a4a;
  color: #f5f3f0;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

footer p {
  margin-bottom: 0.8rem;
}

footer a {
  color: #7ec69f;
  border-bottom-color: #f5f3f0;
}

footer a:hover {
  color: #f5f3f0;
  border-bottom-color: #7ec69f;
}

/* --- Hero Section --- */
.hero {
  background: #f5f3f0;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  margin-bottom: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: #5a5a5a;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }
}

/* --- Feature Image --- */
.feature-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 3rem;
  display: block;
}

/* --- Featured Section (Homepage) --- */
.featured {
  padding: 0;
  background: #f5f3f0;
}

.featured-title {
  display: none;
}

.featured-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-card {
  background: #f5f3f0;
  border-bottom: 1px solid #ddd;
  padding: 2rem 0;
  transition: all 0.3s ease;
}

.featured-card:last-child {
  border-bottom: none;
}

.featured-card:hover {
  /* No background change on hover */
}

.featured-card-link {
  display: block;
  text-decoration: none;
  border: none;
  margin-bottom: 3rem;
}

.featured-card-link:hover {
  text-decoration: none;
  border: none;
}

.featured-card-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.featured-card-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.featured-card h3 {
  font-size: 2.8rem;
  margin: 0 0 1rem 0;
  font-weight: 400;
  font-style: normal;
}

.featured-card h3 a {
  text-decoration: none;
  color: #1a1a1a;
  border: none;
  transition: color 0.3s ease;
}

.featured-card h3 a:hover {
  color: #2d5a4a;
}

.featured-card .subtitle {
  font-size: 1.4rem;
  font-style: italic;
  color: #666;
  margin-bottom: 1.5rem;
}

.featured-card .excerpt {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.95;
  font-size: 1.1rem;
}

.featured-card .card-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.featured-card .date {
  font-weight: 400;
}

.featured-card .author {
  font-weight: 400;
}

.featured-card .category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: transparent;
  color: #2d5a4a;
  border: 1px solid #2d5a4a;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 400;
}

.featured-card .category:hover {
  background: #2d5a4a;
  color: #f5f3f0;
}

.featured-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-card .read-more {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid #2d5a4a;
  color: #2d5a4a;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 400;
  flex-shrink: 0;
}

.featured-card .read-more:hover {
  background: #2d5a4a;
  color: #f5f3f0;
  border-color: #2d5a4a;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: flex-end;
}

.category-group,
.tag-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-badge,
.tag-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #2d5a4a;
  border: 1px solid #2d5a4a;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

.category-badge:hover,
.tag-badge:hover {
  background: #2d5a4a;
  color: #f5f3f0;
}

@media (max-width: 768px) {
  .featured-card {
    padding: 3rem 0;
  }

  .featured-card h3 {
    font-size: 1.8rem;
  }

  .featured-card .subtitle {
    font-size: 1.1rem;
  }

  .featured-card-content {
    padding: 0 1.5rem;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .featured-meta {
    justify-content: flex-start;
    width: 100%;
  }

  .featured-footer .read-more {
    width: 100%;
    text-align: center;
  }
}

/* --- Posts List (Home) --- */
.posts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 3rem 0;
}

.posts > div:first-child {
  padding-top: 3rem;
}

.post-card {
  padding: 3rem 0;
  border-bottom: 1px solid #ddd;
  transition: all 0.3s ease;
  background: #f5f3f0;
}

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

.post-card:hover {
  /* No background change on hover */
}

.post-card h2 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 400;
}

.post-card h2 a {
  text-decoration: none;
  color: #1a1a1a;
  border: none;
  transition: color 0.3s ease;
}

.post-card h2 a:hover {
  color: #2d5a4a;
}

.post-card .excerpt {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.95;
}

.post-card footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #888;
  gap: 2rem;
  flex-wrap: wrap;
  background: transparent;
}

.post-card .date {
  font-weight: 400;
}

.post-card .category a {
  text-decoration: none;
  background: transparent;
  color: #2d5a4a;
  border: 1px solid #2d5a4a;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.2s;
  display: inline-block;
}

.post-card .category a:hover {
  background: #2d5a4a;
  color: #f5f3f0;
  border-color: #2d5a4a;
}

@media (max-width: 768px) {
  .post-card {
    padding: 2rem 0;
  }

  .post-card h2 {
    font-size: 1.6rem;
  }

  .post-card footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* --- Full Post Page --- */
.post-full {
  max-width: 100%;
}

.post-full-feature {
  float: left;
  max-width: 350px;
  width: auto;
  height: auto;
  object-fit: cover;
  margin: 0 2.5rem 2rem 0;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
  .post-full-feature {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .post-full-feature {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0 0 2rem 0;
  }
}

.post-full {
  background: #f5f3f0;
}

.post-full header {
  border: none;
  padding: 1.5rem 0 2rem 0;
  margin-bottom: 0;
  border-bottom: none;
  background: transparent;
}

.post-full h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 400;
  color: #1a1a1a;
}

.post-full .meta {
  display: flex;
  gap: 1.5rem;
  color: #999;
  font-size: 0.9rem;
  flex-wrap: wrap;
  padding-bottom: 0;
  border: none;
  margin-bottom: 0;
}

.post-full .category {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: transparent;
  color: #2d5a4a;
  border: 1px solid #2d5a4a;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 400;
}

.post-full .category:hover {
  background: #2d5a4a;
  color: #f5f3f0;
}

.post-full .content {
  margin: 3rem 0;
  line-height: 1.95;
}

.post-full .content p {
  margin-bottom: 1.8rem;
  color: #444;
  font-size: 1.1rem;
}

.post-full footer {
  border-top: 2px solid #ddd;
  padding: 2rem 0 0;
  margin: 4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: transparent;
  clear: both;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: #999;
  font-size: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-full .tags,
.post-full .categories {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.post-full .tag,
.post-full .category {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: #2d5a4a;
  border: 1px solid #2d5a4a;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 400;
}

.post-full .tag:hover,
.post-full .category:hover {
  background: #2d5a4a;
  color: #f5f3f0;
  border-color: #2d5a4a;
}

@media (max-width: 768px) {
  .post-full header {
    padding: 1.5rem 0 2rem 0;
  }

  .post-full h1 {
    font-size: 1.3rem;
  }

  .post-full .content p {
    font-size: 1rem;
  }
}

/* --- Category / Tag Pages --- */
.category-page,
.tag-page {
  padding: 2rem 0;
}

.category-page h1,
.tag-page h1 {
  margin-top: 0;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #ddd;
}

/* --- Code Blocks --- */
code {
  background: #ede9e4;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #3a3a3a;
}

pre {
  background: #ede9e4;
  padding: 1.5rem;
  border-radius: 3px;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid #2d5a4a;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* --- Divider --- */
hr {
  border: none;
  height: 2px;
  background: #ddd;
  margin: 3rem 0;
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid #2d5a4a;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #5a5a5a;
}

/* --- Full-Width Color Blocks --- */
.color-block-accent {
  background: #2d5a4a;
  color: #f5f3f0;
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.color-block-accent h2,
.color-block-accent h3 {
  color: #f5f3f0;
}

.color-block-accent a {
  color: #7ec69f;
  border-bottom-color: #f5f3f0;
}

.color-block-accent a:hover {
  color: #f5f3f0;
  border-bottom-color: #7ec69f;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  main {
    padding: 0 1.5rem;
  }

  nav {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1.5rem 0;
  }

  footer {
    padding: 3rem 1.5rem;
  }

  main {
    padding: 0 1.5rem;
  }

  nav {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 0;
  }

  nav {
    padding: 0 1rem;
  }

  nav .logo {
    font-size: 1.3rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  main {
    padding: 0 1rem;
  }

  .featured-card-content {
    padding: 0 1rem;
  }

  .post-full h1 {
    font-size: 1.6rem;
  }
}

/* --- Light Mode (Default) --- */
:root {
  color-scheme: light;
}

/* --- Dark Mode Support --- */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }

  header, footer {
    background: #0f0f0f;
    border-color: #2a2a2a;
  }

  header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  nav .logo {
    color: #f5f3f0;
  }

  nav a {
    color: #e0e0e0;
    border-bottom-color: #2d5a4a;
  }

  nav a:hover {
    color: #7ec69f;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #f5f3f0;
  }

  a {
    color: #7ec69f;
  }

  .hero {
    background: #1a1a1a;
  }

  .hero .tagline {
    color: #aaa;
  }

  .featured-card, .post-card {
    background: #0f0f0f;
    border-color: #2a2a2a;
  }

  .featured-card:hover, .post-card:hover {
    background: #1a1a1a;
  }

  .featured-card h3 a,
  .post-card h2 a {
    color: #f5f3f0;
  }

  .featured-card h3 a:hover,
  .post-card h2 a:hover {
    color: #7ec69f;
  }

  .featured-card .excerpt,
  .post-card .excerpt {
    color: #aaa;
  }

  .featured-card .category,
  .post-card .category a {
    background: transparent;
    color: #7ec69f;
    border-color: #7ec69f;
  }

  .featured-card .category:hover,
  .post-card .category a:hover {
    background: #7ec69f;
    color: #0f0f0f;
    border-color: #7ec69f;
  }

  .category-badge,
  .tag-badge {
    background: transparent;
    color: #7ec69f;
    border-color: #7ec69f;
  }

  .category-badge:hover,
  .tag-badge:hover {
    background: #7ec69f;
    color: #0f0f0f;
  }

  .post-full h1 {
    color: #f5f3f0;
  }

  .post-full header {
    border-color: #2a2a2a;
  }

  .post-meta {
    color: #999;
  }

  .post-full .content {
    color: #d0d0d0;
  }

  .post-full footer {
    border-color: #2a2a2a;
  }

  .post-full .tag {
    background: transparent;
    color: #7ec69f;
    border-color: #7ec69f;
  }

  .post-full .tag:hover {
    background: #7ec69f;
    color: #0f0f0f;
  }
  
  .post-full .category {
    background: transparent;
    color: #7ec69f;
    border-color: #7ec69f;
  }

  .post-full .category:hover {
    background: #7ec69f;
    color: #0f0f0f;
  }

  .category-page h1,
  .tag-page h1 {
    color: #f5f3f0;
    border-color: #2a2a2a;
  }

  code {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  pre {
    background: #2a2a2a;
    border-left-color: #7ec69f;
  }

  hr {
    border-color: #2a2a2a;
  }

  blockquote {
    border-left-color: #7ec69f;
    color: #999;
  }

  .featured-title {
    color: #7ec69f;
  }

  footer a {
    color: #7ec69f;
  }

  footer a:hover {
    color: #f5f3f0;
  }
}

/* --- Category Page Styling --- */
.category-page {
  background: var(--category-bg, #f5f3f0);
}

.category-header {
  background: var(--category-bg, #f5f3f0);
  padding: 1.5rem 2rem 1rem;
  margin: 0;
  border-bottom: 4px solid var(--category-accent, #2d5a4a);
}

.category-header h1 {
  color: var(--category-accent, #2d5a4a);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
}

.category-page .featured {
  background: var(--category-bg, #f5f3f0);
}

.category-page .featured-card {
  background: var(--category-light, #ddd);
  border-bottom: 1px solid var(--category-accent, #ddd);
}

.category-page .featured-card:hover {
  /* No overlay effects */
}

.category-page .featured-card h3 a {
  color: var(--category-accent, #1a1a1a);
}

.category-page .featured-card h3 a:hover {
  color: var(--category-accent, #2d5a4a);
}

.category-page .read-more {
  border: 2px solid var(--category-accent, #2d5a4a);
  color: var(--category-accent, #2d5a4a);
}

.category-page .read-more:hover {
  background: var(--category-accent, #2d5a4a);
  color: #f5f3f0;
  border-color: var(--category-accent, #2d5a4a);
}

.category-page .category-badge,
.category-page .tag-badge {
  background: transparent;
  color: var(--category-accent, #2d5a4a);
  border: 1px solid var(--category-accent, #2d5a4a);
}

.category-page .category-badge:hover,
.category-page .tag-badge:hover {
  background: var(--category-accent, #2d5a4a);
  color: #f5f3f0;
}

@media (max-width: 768px) {
  .category-header {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .category-header h1 {
    font-size: 2.2rem;
  }
}

@media (prefers-color-scheme: dark) {
  .category-page {
    background: #0f0f0f;
  }

  .category-header {
    background: #1a1a1a;
    border-bottom-color: var(--category-accent, #7ec69f);
  }

  .category-header h1 {
    color: var(--category-accent, #7ec69f);
  }

  .category-page .featured-card {
    background: #0f0f0f;
    border-bottom-color: var(--category-accent, #2a2a2a);
  }

  .category-page .featured-card:hover {
    /* No overlay effects */
  }
}

/* --- Static Pages (Hakkımda, İletişim) --- */
.page-content {
  max-width: 100%;
}

.page-content h1 {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 3.5rem;
  line-height: 1.2;
  padding-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}

.page-article {
  margin: 3rem 0;
  line-height: 1.95;
}

.page-article p {
  margin-bottom: 1.8rem;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.95;
}

/* --- About Page Portrait --- */
.portrait-left {
  float: left;
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 2rem 1.5rem 0;
}

@media (max-width: 768px) {
  .portrait-left {
    float: none;
    display: block;
    margin: 0 0 2rem 0;
    max-width: 250px;
  }
}

@media (prefers-color-scheme: dark) {
  .portrait-left {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-color-scheme: dark) {
  .page-content h1 {
    border-color: #2a2a2a;
  }

  .page-article p {
    color: #ccc;
  }
}

/* --- Related Posts Section --- */
.related-posts-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid #ddd;
}

.related-posts-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.related-post-card {
  background: #f9f8f6;
  border: 1px solid #ede9e4;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-post-card:hover {
  /* No overlay effects */
}

.related-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.related-card-content {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-card-content h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
}

.related-card-link {
  display: block;
  text-decoration: none;
  border: none;
  color: inherit;
}

.related-card-link:hover {
  text-decoration: none;
  border: none;
}

.related-card-content h4 {
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .related-posts-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .related-card-image {
    height: 200px;
  }
}

@media (prefers-color-scheme: dark) {
  .related-posts-section {
    border-top-color: #2a2a2a;
  }

  .related-posts-section h3 {
    color: #f5f3f0;
  }

  .related-post-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
  }

  .related-post-card:hover {
    /* No overlay effects */
  }

  .related-card-content h4 {
    color: #f5f3f0;
  }
}

/* --- Simplified Post Footer --- */
.meta-label {
  color: #999;
  font-weight: 400;
  margin-left: 1rem;
}

.categories-inline,
.tags-inline {
  color: #2d5a4a;
  font-weight: 400;
  margin-left: 0.5rem;
}

.categories-inline a,
.tags-inline a {
  color: #2d5a4a;
  border: none;
  text-decoration: none;
  margin-right: 0.8rem;
  transition: color 0.3s ease;
}

.categories-inline a:hover,
.tags-inline a:hover {
  color: #7ec69f;
  border: none;
}

@media (prefers-color-scheme: dark) {
  .meta-label {
    color: #999;
  }
  
  .categories-inline,
  .tags-inline {
    color: #7ec69f;
  }
  
  .categories-inline a,
  .tags-inline a {
    color: #7ec69f;
  }
  
  .categories-inline a:hover,
  .tags-inline a:hover {
    color: #f5f3f0;
  }
}
