﻿:root {
    --bg: #0a0a0a;
    --fg: #eaeaea;
    --muted: #9ca3af;
    --card: #121212;
    --accent: #d1d5db;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem
}

.site-header, .site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #1f2937
}

.site-footer {
    border-top: 1px solid #1f2937;
    border-bottom: none;
    margin-top: 2rem;
    color: var(--muted)
}

.brand a {
    color: var(--fg);
    text-decoration: none
}

.nav a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 1rem
}

    .nav a:hover {
        opacity: .8
    }

.gallery {
    column-count: 1;
    column-gap: 1rem
}

@media (min-width:700px) {
    .gallery {
        column-count: 2
    }
}

@media (min-width:1000px) {
    .gallery {
        column-count: 3
    }
}

.tile {
    background: none;
    border: 0;
    padding: 0;
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    cursor: pointer
}

    .tile img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        background: #111;
        box-shadow: 0 2px 18px rgba(0,0,0,.45)
    }

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0
}

    .filters label {
        color: var(--accent);
        display: flex;
        align-items: center;
        gap: .5rem
    }

    .filters select {
        background: var(--card);
        color: var(--fg);
        border: 1px solid #1f2937;
        padding: .4rem .6rem;
        border-radius: 8px
    }

.about {
    margin: 3rem 0
}

    .about h2 {
        margin: 0 0 .5rem
    }

    .about p {
        color: var(--accent)
    }

.hero {
    margin: 3rem 0 2rem;
    text-align: center;
}

    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin: 0 0 .5rem;
    }

    .hero .lead {
        color: var(--accent);
        margin: 0 auto 1.5rem;
        max-width: 56ch;
    }

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .cta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid #1f2937;
    text-decoration: none;
    color: var(--fg);
    transition: transform .15s ease, border-color .15s ease;
}

    .card:hover {
        transform: translateY(-2px);
        border-color: #334155;
    }

    .card h3 {
        margin: 0;
        font-size: 1.25rem;
    }

    .card p {
        margin: 0;
        color: var(--accent);
    }

    .card .btn {
        margin-top: .5rem;
        display: inline-block;
        padding: .4rem .7rem;
        border-radius: 10px;
        background: #111418;
        border: 1px solid #232b35;
        font-size: .95rem;
    }

.post-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.post-empty {
    color: var(--muted);
}


.post {
    max-width: 820px;
    margin: 2rem auto;
}

.post-head {
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--muted);
    margin: 0 0 .25rem;
}

.post-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.post-cover {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,.45);
}

.post-body {
    margin-top: 1rem;
}

    .post-body h2 {
        margin: 1.5rem 0 .5rem;
    }

    .post-body p {
        margin: .5rem 0;
        color: var(--fg);
    }

    .post-body ul {
        padding-left: 1.2rem;
    }

    .post-body figure {
        margin: 1rem 0;
    }

        .post-body figure img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            background: #111;
            box-shadow: 0 2px 16px rgba(0,0,0,.35);
        }

    .post-body figcaption {
        color: var(--muted);
        font-size: .9rem;
        margin-top: .35rem;
    }

.post-cta {
    margin: 1.5rem 0;
}

    .post-cta .btn {
        display: inline-block;
        padding: .5rem .8rem;
        border-radius: 10px;
        background: #111418;
        border: 1px solid #232b35;
        text-decoration: none;
        color: var(--fg);
    }

.post-foot {
    margin-top: 2rem;
}

    .post-foot .back {
        color: var(--accent);
        text-decoration: none;
    }

        .post-foot .back:hover {
            opacity: .85;
        }

.post-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 1rem
}

.post-card a {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: .7rem;
    border: 1px solid #1f2937;
    border-radius: 12px;
    text-decoration: none;
    color: var(--fg);
    background: var(--card)
}

.post-card img {
    width: 120px;
    height: auto;
    border-radius: 8px;
}

.post-card .meta .date {
    color: var(--muted);
    font-size: .9rem
}

.post-card .meta h3 {
    margin: .2rem 0;
    font-size: 1.05rem
}

.post-card .meta p {
    margin: 0;
    color: var(--accent)
}

@media (max-width:640px) {
    .post-card a {
        grid-template-columns: 1fr
    }

    .post-card img {
        width: 100%;
    }
}

.post img,
.post-body img {
    cursor: zoom-in;
}

.contact {
    max-width: 720px;
    margin: 2rem auto;
}

.contact-card {
    background: var(--card);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 1rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: .6rem;
    align-items: center;
}

    .contact-row .k {
        color: var(--muted);
    }

    .contact-row .v {
        color: var(--fg);
        word-break: break-all;
    }

.safe-mail {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed #475569;
}

    .safe-mail:hover {
        opacity: .9;
    }

.btn.small {
    padding: .4rem .6rem;
    border-radius: 8px;
    border: 1px solid #232b35;
    background: #111418;
    color: var(--fg);
    cursor: pointer;
    font-size: .9rem;
}

.muted.tip {
    color: var(--muted);
    font-size: .9rem;
    margin: .5rem 0 0;
}

.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* Blog: všetky obrázky v tele článku responsive, nie len tie vo <figure> */
.post-body img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
    margin: 1rem 0;
}

/* zachovaj existujúce figcaption */
.post-body figure {
    margin: 1rem 0;
}

.post-body figcaption {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .35rem;
}

/* Základný button */
.btn {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: 10px;
    border: 1px solid #232b35;
    background: #111418;
    color: var(--fg);
    text-decoration: none;
    line-height: 1;
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

    .btn:hover {
        transform: translateY(-1px);
        border-color: #334155;
        box-shadow: 0 6px 20px rgba(0,0,0,.35);
    }

/* Variácie */
.btn-primary {
    background: linear-gradient(180deg,#1a202c,#0f141b);
    border-color: #2b3543;
}

.btn-outline {
    background: transparent;
    border-color: #334155;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
}

/* Šípka vpravo (voliteľné) – pridaj triedu .btn-arrow */
.btn-arrow::after {
    content: "→";
    display: inline-block;
    margin-left: .45rem;
    transform: translateY(1px);
}

/* Väčšia verzia (voliteľné) */
.btn-lg {
    padding: .7rem 1.05rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* V článku: aby tlačidlá pekne sedeli v texte */
.post-body a.btn {
    margin: .5rem 0;
}

.post-cta {
    margin: 1.5rem 0;
}

    .post-cta a { /* autoštýl pre všetky odkazy v .post-cta */
        display: inline-block;
        padding: .55rem .9rem;
        border-radius: 10px;
        border: 1px solid #232b35;
        background: #111418;
        color: var(--fg);
        text-decoration: none;
        line-height: 1;
        transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,.25);
    }

        .post-cta a:hover {
            transform: translateY(-1px);
            border-color: #334155;
            box-shadow: 0 6px 20px rgba(0,0,0,.35);
        }