/*
 * Blog — zalozky kategorii nad vypisem (/clanky/ + archivy kategorii)
 * a stitky kategorii na obrazcich karet. Nacita functions.php
 * (jvm_blog_categories_enqueue_style). Samostatny soubor: ASE odstranuje
 * ?ver= z URL stylu, nova URL = navstevnici nedostanou starou verzi z cache.
 */

/* Zalozky kategorii */
.jvm-blog-tabs {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    min-width: 0;
}

.jvm-blog-tabs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jvm-blog-tabs li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jvm-blog-tabs li:before {
    display: none;
}

.jvm-blog-tabs a {
    background: #fff;
    border: 1px solid #e5e7f2;
    border-radius: 4px;
    color: #1f1f1f;
    display: inline-block;
    font-size: 15px;
    line-height: 1.3;
    padding: 9px 16px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.jvm-blog-tabs a:hover,
.jvm-blog-tabs a:focus-visible {
    border-color: #ED6500;
    color: #ED6500;
}

.jvm-blog-tabs li.is-active a {
    background: #ED6500;
    border-color: #ED6500;
    color: #fff;
}

@media (max-width: 767px) {
    .jvm-blog-tabs ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .jvm-blog-tabs a {
        font-size: 14px;
        padding: 8px 14px;
        white-space: nowrap;
    }
}

/* Stitky kategorii na obrazku karty */
#posts-content .post .entry-image {
    position: relative;
}

.jvm-post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
}

#posts-content .post .entry-image .jvm-post-badges a.jvm-post-badge {
    background: #ED6500;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    color: #fff;
    display: inline-block !important;
    font-size: 12px;
    font-weight: 600;
    height: auto !important;
    letter-spacing: .03em;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 10px;
    pointer-events: auto;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: uppercase;
    transition: background-color .2s ease;
    white-space: nowrap;
    width: auto !important;
}

#posts-content .post .entry-image .jvm-post-badges a.jvm-post-badge:hover,
#posts-content .post .entry-image .jvm-post-badges a.jvm-post-badge:focus-visible {
    background: #c45400;
    color: #fff;
}
