/**
 * SRZ News Pattern Styles
 *
 * Veľké stojate karty noviniek s farbami okruhov
 * CSS premenná --okruh-color sa nastavuje inline pre každý príspevok
 */

/* Wrapper */
.srz-news-posts-wrapper {
    margin-top: 50px !important;
}

/* Posts Grid - 3 stĺpce na PC */
.srz-news-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .srz-news-posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .srz-news-posts-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Post Item - veľká stojatá karta */
.srz-news-post-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.srz-news-post-item:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
}

/* Thumbnail - veľký obrázok */
.srz-news-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.srz-news-post-thumbnail a {
    display: block;
}

.srz-news-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 1400px) {
    .srz-news-post-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .srz-news-post-image {
        height: 240px;
    }
}

.srz-news-post-item:hover .srz-news-post-image {
    transform: scale(1.08);
}

/* No image placeholder */
.srz-news-post-no-image {
    display: block;
    width: 100%;
}

.srz-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f9f8 0%, #e8f2ef 100%);
    transition: all 0.3s ease;
}

@media (min-width: 1400px) {
    .srz-news-placeholder {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .srz-news-placeholder {
        height: 240px;
    }
}

.srz-news-placeholder-logo {
    max-width: 140px;
    max-height: 120px;
    width: auto;
    height: auto;
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.srz-news-post-item:hover .srz-news-placeholder {
    background: linear-gradient(135deg, #e8f2ef 0%, #d8ebe5 100%);
}

.srz-news-post-item:hover .srz-news-placeholder-logo {
    opacity: 0.4;
    transform: scale(1.1);
}

/* Content */
.srz-news-post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 20px 20px;
    border-top: 5px solid var(--okruh-color, #018763);
}

@media (max-width: 768px) {
    .srz-news-post-content {
        padding: 24px 20px 20px;
    }
}

/* Title */
.srz-news-post-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .srz-news-post-title {
        font-size: 20px;
    }
}

.srz-news-post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.srz-news-post-title a:hover {
    color: var(--okruh-color, #018763);
}

/* Meta */
.srz-news-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #777;
}

.srz-news-post-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.srz-news-post-date {
    display: flex;
    align-items: center;
}

.srz-news-post-category {
    display: flex;
    align-items: center;
}

.srz-news-post-category a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.srz-news-post-category a:hover {
    opacity: 0.8;
}

/* Excerpt */
.srz-news-post-excerpt {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .srz-news-post-excerpt {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
}

/* Read More */
.srz-news-post-readmore {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--okruh-color, #018763);
    text-decoration: none;
    transition: filter 0.2s ease;
    margin-top: auto;
}

.srz-news-post-readmore:hover {
    filter: brightness(0.85);
}

/* No Posts */
.srz-news-no-posts {
    grid-column: 1 / -1;
    padding: 100px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 20px;
}

.srz-news-no-posts p {
    margin: 0;
    font-size: 18px;
    color: #666;
}
