/* ==========================================
   HEADER COMPONENT
   ========================================== */

.header-card {
  border-radius: 0;
  padding: var(--spacing-md) 0 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.header-content {
  text-align: left;
  flex: 1;
}

.site-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-30);
  font-weight: 500;
  margin: 0 0 15px 0;
  line-height: 1.2;
  display: block;
}

.site-title a {
  text-decoration: none;
  color: #640D5F;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navigation {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  color: var(--main-color);
  text-decoration: none;
  font-size: var(--font-size-18);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
  background-color: var(--secondary-color);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ==========================================
   BLOG ENTRY CARDS
   ========================================== */

.blog-entries {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.entry:last-child {
  border-bottom: none;
}

.entry .date {
  min-width: 140px;
  color: var(--text-medium);
  font-size: var(--font-size-18);
  font-weight: 400;
  flex-shrink: 0;
  margin-right: 32px;
}

.entry .detail {
  flex: 1;
}

.entry .title {
  font-size: var(--font-size-lg);
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.entry .title a {
  text-decoration: none;
  color: var(--secondary-color);
}

.entry .title a:hover {
  text-decoration: underline;
}

.entry .summary {
  font-size: var(--font-size-18);
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================
   TAG COMPONENT
   ========================================== */

.content-tags-group { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
}

.tag-pill { 
  background-color: var(--main-color); 
  color: #fff; 
  font-family: var(--font-mono); 
  font-size: var(--font-size-sm); 
  font-weight: 700; 
  padding: 5px 8px; 
  border-radius: 10px; 
  line-height: 1; 
  display: inline-block; 
  letter-spacing: 0.25px; 
  white-space: nowrap; 
}

/* ==========================================
   METADATA COMPONENT (Date + Tags)
   ========================================== */

.content-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.content-date {
  font-family: var(--font-heading);
  font-size: var(--font-size-18);
  color: var(--text-blog-date);
  font-weight: 500;
  margin-bottom: 0;
}

.meta-spacer {
  width: 1px;
  height: 20px;
  background-color: var(--text-lighter);
  margin: 0 var(--spacing-xs);
}

/* ==========================================
   BLOCKQUOTE STYLING
   ========================================== */

.content-body blockquote {
  margin: 40px auto;
  padding: 20px 26px;
  background: linear-gradient(135deg, #f8f5ff 0%, #efe9ff 100%);
  border-left: 6px solid var(--accent-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-medium);
  position: relative;
}

.content-body blockquote strong {
  display: block;
  margin-top: 18px;
  font-weight: 500;
  color: var(--secondary-color);
}

.post-cover {
  margin: 0;
  padding: 0;
}

.cover-image img {
  border: #efe9ff solid 4px;
  margin: 15px 0;
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

/* ==========================================
   FAVORITE BOOKS GRID
   ========================================== */

.fav-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

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

.fav-book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.fav-book-card:hover {
  transform: translateY(-8px);
}
.favBooks-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 400;
  margin-bottom: 10px;
  text-align: center;
  color: var(--secondary-color);
}

.fav-book-cover {
  width: 100%;
  max-width: 200px;
  margin-bottom: var(--spacing-md);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.fav-book-card:hover .fav-book-cover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fav-book-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.fav-book-title {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.fav-book-author {
  font-family: var(--font-body);
  font-size: var(--font-size-14);
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fav-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-lg);
  }
}
