/**
 * Blog Template CSS
 *
 * @package wp.plugin.svx
 * @version 1.0.0
 * @author SV Agency
 * @since 1.0.0
 *
 * Template-specific CSS for blog styling
 * Loaded conditionally when blog posts are present
 *
 * Usage:
 * This CSS file contains template-specific styling for the blog template.
 * It should be loaded only when blog posts are being displayed
 * to avoid CSS bloat on pages that don't need it.
 *
 * Dependencies:
 * - Requires svx-post.css to be loaded first for universal post styling
 *
 * CSS Class System:
 * - svx-blog: Template-specific class for blog styling
 *   * Contains all blog-specific visual styling
 *   * Includes hover effects, card layout, and typography
 *   * Married to blog template's unique design requirements
 *
 * Last Updated: 2025-01-27
 */

.svx-blog {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.svx-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.svx-blog .blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.svx-blog .blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.svx-blog .blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.svx-blog:hover .blog-overlay {
    opacity: 1;
}

.svx-blog:hover .blog-thumbnail {
    transform: scale(1.05);
}

.svx-blog .read-more {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.svx-blog .blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.svx-blog .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #868e96;
}

.svx-blog .blog-date {
    color: var(--primary-color-1);
    font-weight: 500;
}

.svx-blog .blog-author {
    font-style: italic;
}

.svx-blog .blog-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.svx-blog .blog-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.svx-blog .blog-title a:hover {
    color: var(--primary-color-1);
    text-decoration: none;
}

.svx-blog .blog-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.svx-blog .blog-footer {
    margin-top: auto;
}

.svx-blog .blog-link {
    color: var(--primary-color-1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.svx-blog .blog-link:hover {
    color: var(--primary-color-2);
    text-decoration: none;
    transform: translateX(3px);
}
