/* Blog Post Content Styles */

.post-full {
  background-color: var(--background);
  color: var(--foreground);
}

.narrow-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Post Header */
.post-header {
  margin: var(--spacing-xl) 0 var(--spacing-lg);
  text-align: left;
  background-color: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239d4edd' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.post-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--foreground);
  line-height: 1.2;
  font-weight: 800; /* Added for more emphasis */
  letter-spacing: -0.5px; /* Added for modern typography */
  position: relative;
  z-index: 1;
}

/* Enhanced Author Area - Top of Post */
/* Post Author Header - More Compact */
.post-author-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm); /* Reduced from var(--spacing-md) */
  padding: var(--spacing-sm) var(--spacing-md); /* Reduced top/bottom padding */
  background-color: var(--light-gray);
  border-radius: var(--radius-md); /* Reduced from var(--radius-lg) */
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: none; /* Removed border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Reduced shadow */
}

.dark-mode .post-author-header {
  background-color: rgba(30, 30, 30, 0.8);
}

.author-avatar-container {
  margin-right: var(--spacing-sm); /* Reduced from var(--spacing-md) */
  position: relative;
  z-index: 1;
}

.author-avatar {
  width: 50px; /* Reduced from 60px */
  height: 50px; /* Reduced from 60px */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white; /* Reduced from 3px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Reduced shadow */
  transition: transform 0.3s ease;
}

.author-avatar:hover {
  transform: scale(1.03); /* Reduced from 1.05 */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.author-byline {
  font-size: 1rem; /* Reduced from 1.1rem */
  font-weight: 600;
  margin: 0 0 0.2rem 0; /* Reduced from 0.25rem */
  color: var(--foreground);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #e8e0f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-meta-container {
  flex: 1;
}

.post-meta-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.post-date-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-reading-time-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Post Tags in Header */
.post-tags-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

/* Author Card - Headspace Style */
.post-author-card {
  display: flex;
  align-items: center;
  background-color: #f9f8f6;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin: var(--spacing-md) 0;
}

.dark-mode .post-author-card {
  background-color: #2a2a2a;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--spacing-md);
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  color: white;
}

.author-avatar-placeholder svg {
  width: 30px;
  height: 30px;
}

.post-author-details {
  display: flex;
  flex-direction: column;
}

.post-author-byline {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.post-date {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

/* Feature Image */
.post-feature-image {
  margin: var(--spacing-lg) 0;
}

/* Enhanced feature image */
.post-feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

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

.post-feature-image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: var(--spacing-xs);
}

/* Post Content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

/* Typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.post-content h1 {
  font-size: 2.5rem;
}

.post-content h2 {
  font-size: 2rem;
}

.post-content h3 {
  font-size: 1.75rem;
}

.post-content h4 {
  font-size: 1.5rem;
}

.post-content h5 {
  font-size: 1.25rem;
}

.post-content h6 {
  font-size: 1.1rem;
}

.post-content p {
  margin-bottom: 1.5em;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: all var(--transition-fast);
}

.post-content a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* Lists - Enhanced with larger, more vibrant bullets */
.post-content ul,
.post-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 0.5em;
  position: relative;
}

.post-content ul {
  list-style: none;
  padding-left: 1.8em;
}

.post-content ul li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.5em;
  position: absolute;
  left: -1em;
  top: -0.1em;
  line-height: 1;
}

.post-content ol {
  counter-reset: item;
  list-style: none;
  padding-left: 1.8em;
}

.post-content ol li {
  counter-increment: item;
  position: relative;
}

.post-content ol li::before {
  content: counter(item) ".";
  color: var(--primary-color);
  font-weight: 600;
  position: absolute;
  left: -1.5em;
}

/* Blockquotes */
.post-content blockquote {
  margin: 2.5em 0;
  padding: 1.5em 2em;
  border-left: 4px solid var(--primary-color);
  background-color: rgba(157, 78, 221, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.6;
  position: relative;
}

.post-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 4em;
  color: rgba(157, 78, 221, 0.2);
  line-height: 1;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images */
.post-content img,
.post-content .kg-image {
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  display: block;
  border-radius: var(--radius-md);
}

.post-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: 0.5em;
}

/* Code blocks */
.post-content pre {
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content code {
  background-color: var(--light-gray);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}

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

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.post-content th {
  background-color: var(--light-gray);
  padding: 0.75em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

.post-content td {
  padding: 0.75em;
  border-bottom: 1px solid var(--mid-gray);
}

.post-content tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* Horizontal rule */
.post-content hr {
  margin: 3em 0;
  border: 0;
  height: 1px;
  background-color: var(--mid-gray);
}

/* Share Section */
.post-share {
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.post-share h4 {
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.share-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--light-gray);
  color: var(--foreground);
  transition: all var(--transition-fast);
}

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.share-twitter:hover {
  background-color: #1da1f2;
  color: white;
}

.share-facebook:hover {
  background-color: #4267b2;
  color: white;
}

.share-linkedin:hover {
  background-color: #0077b5;
  color: white;
}

/* Author Card - Improved */
.author-card {
  margin: var(--spacing-xl) 0;
}

.author-card-inner {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  color: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.author-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.author-image-container {
  position: relative;
  z-index: 1;
  margin-right: var(--spacing-md);
}

.author-profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.author-profile-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.author-info {
  position: relative;
  z-index: 1;
  flex: 1;
}

.author-name {
  margin-bottom: var(--spacing-xs);
  font-size: 1.4rem;
  color: white;
}

.author-bio {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.author-meta {
  display: flex;
  gap: var(--spacing-md);
}

.author-website,
.author-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.author-website:hover,
.author-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .post-title {
    font-size: 2.5rem;
  }

  .author-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .author-image-container {
    margin-right: 0;
    margin-bottom: var(--spacing-md);
  }

  .author-meta {
    justify-content: center;
  }

  .share-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .post-title {
    font-size: 2rem;
  }

  .post-author-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-sm);
  }

  .author-avatar {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }

  .author-avatar-placeholder {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}
