/**
 * Sekcja Pikniki - Styling
 */

.piknik-section {
    background: var(--section-bg-light, #f8f9fa);
}

.piknik-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Featured post zajmuje 2 kolumny */
.piknik-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.piknik-post.featured .post-thumbnail {
    height: 100%;
    min-height: 350px;
}

.piknik-post.featured .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.piknik-post.featured .post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.piknik-post.featured .post-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 1rem 0;
}

.piknik-post.featured .post-title a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.piknik-post.featured .post-title a:hover {
    color: var(--color-primary, #8bc34a);
}

.piknik-post.featured .post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.piknik-post.featured .post-meta .separator {
    color: #ddd;
}

.piknik-post.featured .post-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.piknik-post.featured .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Regular posts (grid items) */
.piknik-post:not(.featured) {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.piknik-post:not(.featured):hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.piknik-post:not(.featured) .post-thumbnail {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.piknik-post:not(.featured) .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.piknik-post:not(.featured):hover .post-thumbnail img {
    transform: scale(1.05);
}

.piknik-post:not(.featured) .post-content {
    padding: 1.5rem;
}

.piknik-post:not(.featured) .post-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.piknik-post:not(.featured) .post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
}

.piknik-post:not(.featured) .post-title a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.piknik-post:not(.featured) .post-title a:hover {
    color: var(--color-primary, #8bc34a);
}

/* Section footer */
.piknik-section .section-footer {
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .piknik-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .piknik-post.featured {
        grid-template-columns: 1fr;
    }
    
    .piknik-post.featured .post-thumbnail {
        min-height: 250px;
    }
    
    .piknik-post.featured .post-content {
        padding: 1.5rem;
    }
    
    .piknik-post.featured .post-title {
        font-size: 1.5rem;
    }
}
