/* Blog Page Styles - Card enhancements only */
/* Uses page-header, section, content-grid, content-card from ai-native.css */

/* ============================================
   Blog Card Enhancements
   ============================================ */

/* Card layout adjustments */
.content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(94, 255, 94, 0.2);
    border-color: rgba(94, 255, 94, 0.3);
}

/* Post Image */
.post-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--dark-lighter);
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .post-image img {
    transform: scale(1.05);
}

/* If no image, show gradient placeholder */
.post-image:empty::before {
    content: '📝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

/* Post Content */
.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-content h2 a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    color: var(--primary);
}

/* Post Subtitle */
.post-subtitle {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Post Excerpt */
.post-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--gray);
}

.post-author,
.post-date,
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author::before {
    content: '✍️';
    font-size: 1rem;
}

.post-date::before {
    content: '📅';
    font-size: 1rem;
}

.reading-time::before {
    content: '⏱️';
    font-size: 1rem;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(94, 255, 94, 0.1);
    color: var(--primary);
    border: 1px solid rgba(94, 255, 94, 0.2);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Empty State */
.content-grid:empty::after {
    content: 'No blog posts available yet. Check back soon!';
    display: block;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: 1.25rem;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-card {
        max-width: 100%;
    }

    .post-content {
        padding: 1.5rem;
    }

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

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .post-tags {
        gap: 0.375rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
}
