/* Blog Index Styles */
.post {
background-color: var(--bg-main);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
margin-bottom: 2rem;
padding: 2rem;
transition: all 0.3s ease;
border-left: 4px solid transparent;
}
.post:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
border-left-color: var(--accent-primary);
transform: translateY(-2px);
}
.post-header {
margin-bottom: 1.5rem;
}
.post-title {
margin: 0 0 0.75rem 0;
font-size: 1.5rem;
font-weight: 600;
line-height: 1.3;
}
.post-link {
color: var(--accent-primary);
text-decoration: none;
transition: color 0.2s ease;
}
.post-link:hover {
color: var(--accent-blue);
text-decoration: underline;
}
.post-date {
display: inline-block;
font-size: 0.9rem;
color: var(--text-muted);
font-weight: 500;
margin-bottom: 0.75rem;
padding: 0.25rem 0.75rem;
background-color: var(--bg-body);
border-radius: 4px;
border: 1px solid var(--border-subtle);
}
.post-tags {
list-style: none;
padding: 0;
margin: 0.75rem 0 0 0;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.post-tag {
font-size: 0.8rem;
background-color: var(--bg-tag);
color: var(--accent-tag);
padding: 0.25rem 0.6rem;
border-radius: 16px;
font-weight: 500;
transition: all 0.2s ease;
border: 1px solid var(--border-tag);
}
.post-tag:hover {
background-color: var(--accent-tag);
color: var(--text-white);
transform: scale(1.05);
}
.post-excerpt {
margin-bottom: 1.5rem;
color: var(--text-muted-dark);
line-height: 1.6;
}
.post-excerpt p {
margin-bottom: 1rem;
}
.post-excerpt p:last-child {
margin-bottom: 0;
}
.post-readmore {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border-subtle);
}
.post-readmore a {
color: var(--accent-blue);
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.post-readmore a:hover {
color: var(--accent-primary);
text-decoration: underline;
transform: translateX(4px);
}
/* Responsive adjustments */
@media (max-width: 600px) {
.post {
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.post-title {
font-size: 1.3rem;
}
.post-tags {
margin-top: 0.5rem;
}
.post-tag {
font-size: 0.75rem;
padding: 0.2rem 0.5rem;
}
}