/* Стили для плагина Stylish Posts Grid */
/* Минималистичный техно-стиль: светлый фон, тёмно-синие акценты, hover-эффекты */

.stylish-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.scroll-enabled {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #f7fafc;
}

.scroll-enabled::-webkit-scrollbar {
    width: 6px;
}

.scroll-enabled::-webkit-scrollbar-track {
    background: #f7fafc;
}

.scroll-enabled::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.read-more {
    background: #2d3748;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #4a5568;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-card-title a {
    color: #2d3748;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #4a90e2; /* Акцентный синий для ссылок */
}

.post-card-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

.category {
    background: linear-gradient(135deg, #667eea, #764ba2); /* Градиент для IT-стиля */
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stylish-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-content {
        padding: 1rem;
    }
}