/* Link categories with emojis styling */
.content a[href*="essays"],
.content a[href*="software"],
.content a[href*="personal"],
.content a[href*="tutorials"],
.content a[href*="blog"],
.content a[href*="archive"] {
    display: inline-block;
    margin: 0.75rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* Recent post links */
.content a[href*="post/"] {
    display: block;
    margin: 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.5rem;
    background-color: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content a[href*="post/"]:hover {
    background-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-3px);
}

/* Content Grid Styling */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
}

.content-item {
  background-color: rgba(20, 40, 20, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.content-item:hover {
  transform: translateY(-5px);
  background-color: rgba(25, 50, 25, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.content-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.content-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.content-link:hover {
  color: var(--accent-secondary);
}

/* Override the general a:hover::after for content links */
.content-link:hover::after {
  display: none;
}

/* Enhanced Post List Styling */
.post-list {
  max-width: 100%;
  margin: 2rem 0;
}

.post-item {
  background-color: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.post-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-meta time {
  color: var(--accent-secondary);
  font-weight: 500;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.post-title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent-primary);
}

.post-title a:hover::after {
  display: none;
}

.post-summary {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post-stats {
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding-top: 0.75rem;
}

/* Mobile adjustments for post list */
@media (max-width: 768px) {
  .post-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .post-title {
    font-size: 1.2rem;
  }
  
  .post-summary {
    font-size: 0.9rem;
  }
}