/* Blog: citatelnost clanku a vyzva na konci (includes/kodeo-blog.php). */

/* Tema dava clanok bez bocneho panela na celu sirku kontajnera (1110 px) - riadky
   by boli prilis dlhe na citanie. */
.blog-post-single .single-article-container {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-single .single-article-container .post-image img {
    width: 100%;
    border-radius: 12px;
}

.single-article-page {
    font-size: 17px;
    line-height: 1.75;
}

.single-article-page h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 40px 0 14px;
}

.single-article-page h3 {
    font-size: 21px;
    line-height: 1.35;
    margin: 28px 0 10px;
}

.single-article-page ul,
.single-article-page ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.single-article-page li {
    margin-bottom: 8px;
}

.single-article-page .kodeo-semafor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
}

.single-article-page .kodeo-semafor li {
    margin: 0;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.55;
}

.single-article-page .kodeo-semafor strong {
    display: block;
    margin-bottom: 4px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    color: #323a48;
}

.single-article-page .kodeo-semafor .is-green { background: #eef6e4; }
.single-article-page .kodeo-semafor .is-orange { background: #fdf2e2; }
.single-article-page .kodeo-semafor .is-red { background: #fbe7e5; }

.kodeo-blog-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: center;
    justify-content: space-between;
    margin: 48px 0 8px;
    padding: 28px 32px;
    background: #f1f7e9;
    border-radius: 14px;
}

.kodeo-blog-cta__text {
    flex: 1 1 380px;
    min-width: 0;
}

.kodeo-blog-cta__text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4a525e;
}

.kodeo-blog-cta__text .kodeo-blog-cta__title {
    margin: 0 0 6px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.3;
    color: #323a48;
}

body .kodeo-blog-cta .kodeo-btn {
    color: #fff;
    flex: none;
}

@media (max-width: 767px) {
    .single-article-page .kodeo-semafor {
        grid-template-columns: minmax(0, 1fr);
    }

    .kodeo-blog-cta {
        padding: 22px 20px;
    }
}

/* Zoznam clankov: rovnake dlazdice 3 v riadku (layout temy 3col_grid). */
/* Rovnaka vyska dlazdic cez flex stlpca, nie height: 100% - to prehliadac pocital
   z height atributu obrazka a dlazdice boli o ~100 px vyssie, nez obsah. */
.blog-3col-grid .row > [class*="col-"] {
    display: flex;
}

.blog-3col-grid .blog-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.blog-3col-grid .row > [class*="col-"] {
    margin-bottom: 30px;
}

.blog-3col-grid .blog-item .post-image {
    margin: 0;
}

.blog-3col-grid .blog-item .post-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f2f2f2;
}

.blog-3col-grid .post-holder {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 24px;
}

.blog-3col-grid .article-title {
    font-size: 19px;
    line-height: 1.35;
    margin: 6px 0 10px;
}

.blog-3col-grid .article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

body .blog-3col-grid .view-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 12px;
}

/* Strankovanie a stitky v zelenej namiesto modrej z temy. */
.prev-next .page-numbers:hover,
.prev-next .current-page,
.tags-single-page a:hover,
.kodeo-post-tags a:hover {
    background: #93c45a;
    border-color: #93c45a;
    color: #fff;
}

.prev-next .nav-page a {
    color: #557a24;
}

/* Detail clanku: stitky a zdielanie nad vyzvou. Temovy blok so stitkami skryjeme. */
.kodeo-post .tags-single-page {
    display: none;
}

.kodeo-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 36px 0 0;
}

.kodeo-post-tags a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #323a48;
    background: #f2f2f2;
    border-radius: 999px;
    text-decoration: none;
}

.kodeo-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 20px 0 0;
    padding: 16px 0;
    border-top: 1px solid #e3e7eb;
    border-bottom: 1px solid #e3e7eb;
}

.kodeo-share__label {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #557a24;
    margin-right: 4px;
}

.single-article-page .kodeo-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-article-page .kodeo-share__list li {
    margin: 0;
}

.kodeo-share__list a,
.kodeo-share__copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #557a24;
    background: #f1f7e9;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.kodeo-share__list a:hover,
.kodeo-share__list a:focus,
.kodeo-share__copy:hover,
.kodeo-share__copy:focus {
    color: #fff;
    background: #93c45a;
}

.kodeo-share__copied {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: #557a24;
}

/* Dlazdica clanku (sablona temy layout-3col_grid.php): obrazok, kategoria, nadpis,
   kratky uvod, dole datum a zdielanie. Cela dlazdica je klikatelna cez nadpis. */
.kodeo-tiles .kodeo-tile {
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}

.kodeo-tiles .kodeo-tile:hover {
    box-shadow: 0 10px 28px rgba(50, 58, 72, .10);
    transform: translateY(-2px);
}

.kodeo-tile__img {
    display: block;
}

.kodeo-tile__img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f2f2f2;
}

.kodeo-tile__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
}

.kodeo-tile__cat {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #557a24;
    text-decoration: none;
}

.kodeo-tile__cat:hover {
    color: #3f5c1a;
}

.kodeo-tiles .kodeo-tile__title {
    margin: 0 0 10px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.kodeo-tile__title a {
    color: #323a48;
    text-decoration: none;
}

.kodeo-tile__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.kodeo-tile:hover .kodeo-tile__title a {
    color: #557a24;
}

.kodeo-tile__excerpt {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #737b84;
}

.kodeo-tile__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #737b84;
}

.kodeo-tile-share {
    position: relative;
    z-index: 2;
}

.kodeo-tile-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #557a24;
    background: #f1f7e9;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.kodeo-tile-share__btn:hover,
.kodeo-tile-share__btn:focus,
.kodeo-tile-share__btn[aria-expanded="true"] {
    color: #fff;
    background: #93c45a;
}

.kodeo-tile-share__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 200px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(50, 58, 72, .14);
}

.kodeo-tile-share__menu[hidden] {
    display: none;
}

.kodeo-tile-share__menu a,
.kodeo-tile-share__menu button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    color: #323a48;
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.kodeo-tile-share__menu a:hover,
.kodeo-tile-share__menu button:hover {
    background: #f1f7e9;
    color: #3f5c1a;
}

.kodeo-tile-share__menu svg {
    color: #557a24;
    flex: none;
}

.kodeo-tile-share__copy .kodeo-share__copied {
    position: static;
    transform: none;
    margin-left: auto;
}
