/* FILE: assets/css/blog.css */

.blog-container {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 960px;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-post-tile {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 240px;
}

.post-tile-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-tile-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    height: 80px;
    overflow: hidden;
}

.post-tile-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.15rem 0;
    line-height: 1.1;
    flex-shrink: 0;
}

.post-tile-content p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin: 0;
    display: none;
}

.post-tile-meta {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: auto;
    border-top: none;
    padding-top: 0;
    flex-shrink: 0;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .blog-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-posts-container {
        grid-template-columns: 1fr;
    }
}
