/**
 * Modern Blog Design
 * Beautiful, clean blog post cards and layouts
 */

/* Modern Post Card */
.hvn-theme-post-card {
    background: var(--hvn-theme-color-white);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--hvn-theme-border-color-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hvn-theme-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Post Card Image */
.hvn-theme-post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--hvn-theme-color-gray-100);
}

.hvn-theme-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hvn-theme-post-card:hover .hvn-theme-post-card-image img {
    transform: scale(1.05);
}

/* Category Badge Overlay */
.hvn-theme-post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.hvn-theme-post-category a {
    display: inline-block;
    background: var(--hvn-theme-brand-primary);
    color: var(--hvn-theme-color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hvn-theme-post-category a:hover {
    background: var(--hvn-theme-brand-primary-dark);
    transform: translateY(-1px);
}

/* Post Card Content */
.hvn-theme-post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Post Meta */
.hvn-theme-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--hvn-theme-text-muted);
}

.hvn-theme-post-card-meta .posted-on,
.hvn-theme-post-card-meta .byline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hvn-theme-post-card-meta svg {
    width: 14px;
    height: 14px;
}

.hvn-theme-post-card-meta a {
    color: var(--hvn-theme-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hvn-theme-post-card-meta a:hover {
    color: var(--hvn-theme-brand-primary);
}

/* Post Title */
.hvn-theme-post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.hvn-theme-post-card-title a {
    color: var(--hvn-theme-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hvn-theme-post-card-title a:hover {
    color: var(--hvn-theme-brand-primary);
}

/* Post Excerpt */
.hvn-theme-post-card-excerpt {
    color: var(--hvn-theme-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Card Footer */
.hvn-theme-post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--hvn-theme-border-color-light);
}

/* Read More Link */
.hvn-theme-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hvn-theme-brand-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.hvn-theme-read-more:hover {
    gap: 0.75rem;
    color: var(--hvn-theme-brand-primary-dark);
}

.hvn-theme-read-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.hvn-theme-read-more:hover::after {
    transform: translateX(2px);
}

/* Comments Link */
.hvn-theme-post-card-footer .comments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--hvn-theme-text-muted);
}

.hvn-theme-post-card-footer .comments-link a {
    color: var(--hvn-theme-text-muted);
    text-decoration: none;
}

.hvn-theme-post-card-footer .comments-link a:hover {
    color: var(--hvn-theme-brand-primary);
}

/* List Layout - Overrides will be applied via inline CSS from functions.php */

/* Featured Post (Sticky) */
.hvn-theme-sticky {
    background: linear-gradient(135deg, rgba(108, 96, 254, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 1px solid rgba(108, 96, 254, 0.2);
}

.hvn-theme-sticky .hvn-theme-post-card-title::before {
    content: "📌";
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* No Posts Found */
.hvn-theme-no-results {
    text-align: center;
    padding: var(--hvn-theme-space-3xl) var(--hvn-theme-space-lg);
    background: var(--hvn-theme-color-white);
    border-radius: 1rem;
    box-shadow: var(--hvn-theme-shadow-card);
}

.hvn-theme-no-results-icon {
    margin-bottom: var(--hvn-theme-space-lg);
}

.hvn-theme-no-results-title {
    font-size: 1.5rem;
    margin-bottom: var(--hvn-theme-space-md);
}

.hvn-theme-no-results-message {
    color: var(--hvn-theme-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}