/* Enhanced Post Layout & Design Improvements */

/* Improved Post Header */
.post-header {
  max-width: 900px; /* Slightly wider for better readability */
  margin: 0 auto 5rem;
  text-align: left; /* Left-align for better reading flow */
  padding: 0 3rem;
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  border-radius: var(--border-radius);
  padding: 4rem 3rem 3rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

/* Enhanced Post Title */
.post-header h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Improved Feature Image */
.post-feature-image {
  margin: -2rem -3rem 3rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.post-feature-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(transparent, rgba(151, 71, 255, 0.1));
}

.post-feature-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-feature-image:hover img {
  transform: scale(1.02);
}

/* Enhanced Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(151, 71, 255, 0.08);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 2rem;
}

.post-meta time {
  color: var(--color-primary);
  font-weight: 600;
}

.post-meta .separator {
  color: var(--color-primary);
  font-weight: bold;
}

.post-meta a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-meta a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Enhanced Post Content */
.post-content {
  max-width: 900px; /* Match header width */
  margin: 0 auto;
  padding: 0 3rem; /* Match header padding */
  line-height: 1.8;
  font-size: 1.8rem; /* Slightly larger for better readability */
  color: var(--color-dark);
}

/* Improved Typography Hierarchy */
.post-content h1 {
  font-size: 3.5rem;
  margin: 4rem 0 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.post-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.post-content h2 {
  font-size: 2.8rem;
  margin: 3.5rem 0 2rem;
  color: var(--color-primary);
  position: relative;
}

.post-content h2::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.post-content h3 {
  font-size: 2.2rem;
  margin: 3rem 0 1.5rem;
  color: var(--color-secondary);
  font-weight: 700;
}

.post-content h4 {
  font-size: 1.9rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--color-purple-text);
  font-weight: 600;
}

/* Enhanced Paragraph Styling */
.post-content p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.post-content p:first-of-type {
  font-size: 2rem;
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(151, 71, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
}

/* Improved Lists */
.post-content ul,
.post-content ol {
  margin: 2rem 0;
  padding-left: 3rem;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 1rem;
  line-height: 1.7;
  position: relative;
}

.post-content ul li::marker {
  color: var(--color-primary);
  font-size: 1.2em;
}

.post-content ol li::marker {
  color: var(--color-primary);
  font-weight: bold;
}

/* Enhanced Links */
.post-content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
  background: rgba(151, 71, 255, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Improved Strong/Bold Text */
.post-content strong {
  color: var(--color-secondary);
  font-weight: 700;
}

/* Enhanced Horizontal Rules */
.post-content hr {
  border: none;
  height: 3px;
  background: var(--gradient-primary);
  margin: 4rem 0;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

/* Improved Blockquotes */
.post-content blockquote {
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.08) 0%, rgba(77, 101, 255, 0.05) 100%);
  border-left: 4px solid var(--color-primary);
  padding: 2.5rem 3rem;
  margin: 3rem 0;
  border-radius: var(--border-radius);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--color-secondary);
  position: relative;
  box-shadow: var(--shadow);
}

.post-content blockquote::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  font-family: serif;
}

/* Enhanced Code Styling */
.post-content pre {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--color-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 3rem 0;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(151, 71, 255, 0.2);
  position: relative;
}

.post-content pre::before {
  content: 'CODE';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: bold;
  opacity: 0.6;
  letter-spacing: 1px;
}

.post-content code {
  background: var(--color-light-purple);
  color: var(--color-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(151, 71, 255, 0.2);
}

/* Enhanced Tables */
.post-content table {
  width: 100%;
  margin: 3rem 0;
  border-collapse: collapse;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-content th {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 1.5rem;
  font-weight: 600;
  text-align: left;
}

.post-content td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(151, 71, 255, 0.1);
}

.post-content tr:nth-child(even) {
  background: rgba(151, 71, 255, 0.05);
}

/* Reading Progress Indicator Enhancement */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(151, 71, 255, 0.3);
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .post-header {
    padding: 3rem 2rem 2rem;
    margin-bottom: 3rem;
  }
  
  .post-header h1 {
    font-size: 3.2rem;
    line-height: 1.2;
  }
  
  .post-content {
    padding: 0 2rem;
    font-size: 1.7rem;
  }
  
  .post-content h1 {
    font-size: 2.8rem;
  }
  
  .post-content h2 {
    font-size: 2.4rem;
  }
  
  .post-content h2::before {
    left: -1.5rem;
  }
  
  .post-feature-image {
    margin: -2rem -2rem 2rem;
  }
  
  .post-meta {
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .post-header {
    padding: 2rem 1.5rem;
  }
  
  .post-content {
    padding: 0 1.5rem;
    font-size: 1.6rem;
  }
  
  .post-feature-image {
    margin: -2rem -1.5rem 2rem;
  }
}

/* ===== PAGE-SPECIFIC STYLING ===== */

.post-page {
  /* Inherits all post styling but with page-specific enhancements */
}

.page-header {
  /* Same great styling as post headers */
  border-left: 4px solid var(--color-secondary); /* Different accent for pages */
}

.page-title {
  /* Page titles get the same premium treatment */
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content {
  /* Same enhanced content styling as posts */
}

.page-meta {
  /* Page meta styling matches post meta */
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  text-align: center;
}

.page-newsletter {
  /* Newsletter CTA for pages - slightly different styling */
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.08) 0%, rgba(255, 107, 107, 0.03) 100%);
  border: 1px solid rgba(151, 71, 255, 0.2);
}

.page-newsletter .newsletter-content h3 {
  color: var(--color-primary);
  font-size: 2.4rem;
}

/* Page-specific responsive adjustments */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 2rem 2rem;
  }
  
  .page-title {
    font-size: 3.5rem;
  }
  
  .page-content {
    padding: 0 2rem;
  }
}


.site-header {
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 1px solid rgba(151, 71, 255, 0.1);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.site-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.site-title:hover {
  transform: scale(1.05);
}

.site-logo {
  height: 40px;
  width: auto;
}

/* Navigation Styling */
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  color: var(--color-darkgrey);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.site-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: var(--border-radius);
}

.site-nav a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3);
}

.site-nav a:hover::before {
  left: 0;
}

/* Current page highlighting */
.site-nav .nav-current a {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(151, 71, 255, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Footer Navigation */
.footer-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-midgrey);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 2rem;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .site-nav {
    display: none; /* Hide on mobile - can implement mobile menu later */
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 1rem;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
}


/* ===== SIMPLIFIED NAVIGATION STYLING ===== */

/* Clean, simple navigation without complex animations */
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  color: var(--color-darkgrey);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.6rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Simple hover effect - just background color change */
.site-nav a:hover {
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
}

/* Current page highlighting - simple solid background */
.site-nav .nav-current a {
  background-color: var(--color-primary);
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .site-nav {
    display: none; /* Hide on mobile for now */
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}


/* ===== SIMPLIFIED HEADER STYLING ===== */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.site-logo {
  height: 40px;
  width: auto;
}

/* Mobile menu button - simplified */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.2s ease;
}

/* Mobile responsive header */
@media (max-width: 768px) {
  .header-inner {
    padding: 1rem;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
}

