/* GraphLinq Theme - Main Styles */

/* CSS Variables inspired by GraphLinq.io */
:root {
  --color-primary: #9747FF;
  --color-secondary: #782AED;
  --color-accent: #4d65ff;
  --color-light-purple: #DED2FF;
  --color-purple-text: #897FAC;
  --color-dark: #1a1a1a;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-light-gray: #e9ecef;
  
  --gradient-primary: linear-gradient(135deg, #9747FF 0%, #782AED 100%);
  --gradient-secondary: linear-gradient(135deg, #4d65ff 0%, #9747FF 100%);
  --gradient-accent: linear-gradient(45deg, #9747FF, #4d65ff, #782AED);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 10px 25px rgba(151, 71, 255, 0.1);
  --shadow-hover: 0 15px 35px rgba(151, 71, 255, 0.2);
  --shadow-lg: 0 20px 40px rgba(151, 71, 255, 0.15);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 3.2rem;
  color: var(--color-primary);
}

h3 {
  font-size: 2.4rem;
  color: var(--color-secondary);
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(151, 71, 255, 0.1);
  padding: 1.5rem 0;
  transition: transform 0.3s ease;
}

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

.site-title {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
  position: relative;
}

.site-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.site-title:hover::after {
  width: 100%;
}

.site-title:hover {
  text-decoration: none;
}

/* Navigation - Fixed bullet point and styling issues */
.nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}

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

.nav-menu a {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-menu a:hover {
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-menu a:hover::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  padding: 8rem 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 2rem;
  color: var(--color-white);
  background: none;
  -webkit-text-fill-color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  animation: slideInUp 1s ease-out 0.2s both;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Post Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(151, 71, 255, 0.08);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(151, 71, 255, 0.2);
}

.post-card-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 2.5rem;
}

.post-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--color-dark);
  transition: color 0.3s ease;
}

.post-card:hover h2 a {
  color: var(--color-primary);
}

.post-card p {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-purple-text);
  font-size: 1.4rem;
  font-weight: 500;
}

.post-meta time {
  color: var(--color-purple-text);
}

.post-meta .separator {
  color: var(--color-light-purple);
}

/* Single Post */
.post-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 0 2rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  line-height: 1.8;
}

.post-content img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.post-content pre {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-mono);
  box-shadow: var(--shadow);
}

.post-content code {
  background: var(--color-light-purple);
  color: var(--color-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-gray);
  background: rgba(151, 71, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--color-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Footer - Fixed visibility issues */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav li {
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  line-height: 1.6;
}

.footer-text a {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-text a:hover {
  color: var(--color-accent);
}

/* Additional Post Styles */
.post-feature-image {
  margin-bottom: 4rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-feature-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-footer {
  border-top: 1px solid rgba(151, 71, 255, 0.1);
  margin-top: 4rem;
  padding-top: 2rem;
}

.post-tags h4 {
  font-size: 1.4rem;
  color: var(--color-purple-text);
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: var(--color-light-purple);
  color: var(--color-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.tag:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Related Posts Section */
.related-posts {
  background: linear-gradient(135deg, var(--color-light) 0%, rgba(151, 71, 255, 0.05) 100%);
  padding: 6rem 0;
  margin-top: 6rem;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
}

/* Comments Section */
.post-comments {
  max-width: 800px;
  margin: 6rem auto 0;
  padding: 0 2rem;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 6rem;
}

.pagination .page-number,
.pagination .newer-posts,
.pagination .older-posts {
  padding: 1.2rem 2rem;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.pagination .page-number:hover,
.pagination .newer-posts:hover,
.pagination .older-posts:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.pagination .page-number.current {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 56.25%;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.8rem;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .main-content {
    padding: 4rem 2rem;
  }
  
  .site-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .post-card-content {
    padding: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(151, 71, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Error Pages */
.error-page {
  text-align: center;
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--color-light) 0%, rgba(151, 71, 255, 0.05) 100%);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-page h1 {
  font-size: 8rem;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h2 {
  margin-bottom: 3rem;
  color: var(--color-secondary);
}

/* Koenig Editor Required Classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 4rem calc(50% - 50vw) 4rem;
  transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: calc(50% - 50vw);
  margin: 4rem 0;
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Koenig Gallery Styles */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 1rem;
}

.kg-gallery-image {
  width: 100%;
  height: 100%;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.kg-gallery-image:hover img {
  transform: scale(1.02);
}

/* Koenig Card Styles */
.kg-card {
  margin: 2rem 0;
}

.kg-bookmark-card,
.kg-embed-card {
  width: 100%;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(151, 71, 255, 0.1);
}

.kg-bookmark-container {
  display: flex;
  color: var(--color-dark);
  text-decoration: none;
  min-height: 148px;
}

.kg-bookmark-container:hover {
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 2rem;
}

.kg-bookmark-title {
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.kg-bookmark-description {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-gray);
  font-weight: 400;
  margin-top: 0.3rem;
  max-height: 4.8rem;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  margin-top: auto;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-purple-text);
}

.kg-bookmark-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 3px;
}

.kg-bookmark-author {
  line-height: 1.5;
}

.kg-bookmark-publisher {
  color: var(--color-primary);
}

.kg-bookmark-thumbnail {
  position: relative;
  flex-basis: 24rem;
  flex-shrink: 0;
  min-height: 6rem;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* Koenig Button Styles */
.kg-button-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
}

.kg-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.kg-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--color-white);
  text-decoration: none;
}

/* Koenig File Card */
.kg-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(151, 71, 255, 0.05);
  border: 2px solid rgba(151, 71, 255, 0.1);
  border-radius: var(--border-radius);
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.kg-file-card:hover {
  border-color: var(--color-primary);
  background: rgba(151, 71, 255, 0.1);
}

.kg-file-card-contents {
  display: flex;
  align-items: center;
}

.kg-file-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-left: 1rem;
}

.kg-file-card-caption {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-left: 1rem;
}

.kg-file-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  color: var(--color-white);
  font-weight: bold;
}

/* Koenig Product Card */
.kg-product-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(151, 71, 255, 0.1);
}

.kg-product-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.kg-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-product-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.kg-product-card-description {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.kg-product-card-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.kg-product-card-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--color-white);
  text-decoration: none;
}

/* Responsive Koenig Styles */
@media (max-width: 768px) {
  .kg-width-wide {
    width: 100vw;
    margin: 2rem calc(50% - 50vw);
  }
  
  .kg-width-full {
    margin: 2rem 0;
  }
  
  .kg-bookmark-container {
    flex-direction: column;
  }
  
  .kg-bookmark-thumbnail {
    flex-basis: auto;
    min-height: 160px;
  }
}

/* Page Specific Styles */
.post-excerpt {
  font-size: 1.8rem;
  color: var(--color-gray);
  font-style: italic;
  margin: 2rem 0;
  line-height: 1.6;
}

.post-updated {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(151, 71, 255, 0.1);
  margin-top: 4rem;
}

.post-updated small {
  color: var(--color-purple-text);
  font-size: 1.3rem;
}

.post-updated time {
  font-weight: 500;
}

/* Custom Theme Settings Support */
.nav-layout-Logo.center.menu.below .header-inner {
  flex-direction: column;
  text-align: center;
}

.nav-layout-Logo.center.menu.below .nav-menu {
  margin-top: 2rem;
  justify-content: center;
}

.header-Solid.background .site-header {
  background: var(--color-white) !important;
  backdrop-filter: none !important;
}

.header-Gradient.background .site-header {
  background: var(--gradient-primary) !important;
  color: var(--color-white);
}

.header-Gradient.background .site-title,
.header-Gradient.background .nav-menu a {
  color: var(--color-white) !important;
}

.header-Gradient.background .nav-menu a::before {
  background: rgba(255, 255, 255, 0.2) !important;
}
/* 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;
  }
}

/* Additional Enhanced Elements Styles */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 5rem;
  height: 5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0.8;
}

.back-to-top:hover {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: var(--shadow-lg);
}

/* Social Sharing Buttons */
.social-sharing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(151, 71, 255, 0.1);
}

.social-sharing h4 {
  font-size: 1.6rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* Enhanced Related Posts */
.related-header {
  text-align: center;
  margin-bottom: 4rem;
}

.related-header h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.related-header p {
  font-size: 1.6rem;
  color: var(--color-gray);
}

.enhanced-card {
  position: relative;
  overflow: hidden;
}

.enhanced-card .post-card-image {
  position: relative;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(151, 71, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.enhanced-card:hover .card-overlay {
  opacity: 1;
}

.read-more {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.6rem;
}

.placeholder {
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  text-align: center;
  color: var(--color-white);
}

.article-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.article-title {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
}

.primary-tag {
  background: var(--color-light-purple);
  color: var(--color-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.view-all-posts {
  text-align: center;
  margin-top: 4rem;
}

/* Newsletter CTA */
.newsletter-cta {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 6rem 0;
  margin-top: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,200 1000,1000 0,800"/></svg>');
  background-size: cover;
}

.cta-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.newsletter-cta h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.newsletter-cta p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.cta-button {
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.6rem;
  padding: 1.5rem 3rem;
  border: none;
  font-weight: 700;
}

.cta-button:hover {
  background: var(--color-light);
  color: var(--color-secondary);
}

/* Enhanced Comments */
.comments-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background: rgba(151, 71, 255, 0.05);
  border-radius: var(--border-radius);
}

.comments-header h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.comments-header p {
  font-size: 1.6rem;
  color: var(--color-gray);
}

/* Enhanced Post Tags */
.post-tags h4 {
  font-size: 1.6rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-btn {
    justify-content: center;
    padding: 1.2rem;
  }
  
  .newsletter-cta {
    padding: 4rem 0;
  }
  
  .newsletter-cta h3 {
    font-size: 2.5rem;
  }
  
  .cta-button {
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }
}
