/* Blog-specific styling - leverages baseof.css for typography, colors, and spacing */

/* Blog post container */
.blog-post {
    max-width: 800px;
    margin: 0;
    padding: 20px 20px 40px 0;
}

/* Post header */
.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

/* Post metadata */
.post-meta {
    font-size: 16px;
    margin-bottom: 1rem;
}

.meta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blog post content - only override what's truly different */
.post-content {
    font-size: 18px;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Blog post content heading styles - only spacing, not typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
    margin-top: 0;
}

/* Blog card styling */
.blog-card {
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    color: var(--text-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 44px;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.blog-card h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-display);
}

.blog-card .date {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 12px;
}

.blog-card .excerpt {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-card .excerpt img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
}

.blog-card .excerpt figure {
    margin: 12px 0;
}

.blog-card .excerpt figcaption {
    font-size: 0.9em;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.blog-card:hover .read-more {
    color: var(--accent-hover);
}

/* Blog card link styles */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover {
    text-decoration: none;
}

/* Create an overlay that covers the entire card and makes it clickable */
.blog-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Ensure the card is positioned for the overlay */
.blog-card-link {
    position: relative;
}

/* Responsive design - only blog-specific adjustments */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 18px;
        padding: 16px;
    }

    .blog-card h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .blog-card .excerpt {
        font-size: 14px;
    }

    .meta-content {
        gap: 12px;
    }

    .blog-post {
        padding: 8px 0 16px 0;
    }

    .post-header {
        margin-bottom: 1.5rem;
    }

    .post-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .post-meta {
        font-size: 14px;
    }

    .post-content p {
        margin-bottom: 1rem;
    }

    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .post-header h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    /* Aside boxes on mobile */
    aside {
        width: 90% !important;
        padding: 0.9rem !important;
        margin: 0.9rem auto !important;
        font-size: 13px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .blog-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .blog-card h2 {
        font-size: 14px;
    }

    .blog-card .excerpt {
        font-size: 13px;
    }

    .blog-post {
        padding: 8px 0 16px 0;
    }

    .post-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .post-content p {
        margin-bottom: 0.875rem;
    }

    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        margin-top: 1.25rem;
        margin-bottom: 0.625rem;
    }

    .post-header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .post-meta {
        font-size: 13px;
    }

    /* Aside boxes on small mobile */
    aside {
        width: 95% !important;
        padding: 0.8rem !important;
        font-size: 12px !important;
    }
}