/* Blog CSS Styles - Fulnio */

/* Root Variables */
:root {
    --blog-primary: #F47216;
    --blog-dark: #152E48;
    --blog-text: #444444;
    --blog-heading: #273d4e;
    --blog-light-bg: #f1f4fa;
    --blog-border: #e0e0e0;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--blog-text);
    line-height: 1.6;
    background-color: #ffffff;
}

/* Site Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--blog-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header img {
    height: 45px;
    display: block;
}

/* Main Content */
main {
    min-height: 60vh;
}

/* Article Wrapper */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 30px;
    color: var(--blog-text);
}

.breadcrumb a {
    color: var(--blog-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--blog-dark);
}

.breadcrumb span {
    color: var(--blog-text);
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--blog-heading);
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--blog-heading);
    margin: 40px 0 20px;
    line-height: 1.3;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--blog-heading);
    margin: 30px 0 15px;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--blog-border);
}

.article-meta span {
    display: inline-block;
}

/* Article Perex */
.article-perex {
    font-size: 18px;
    line-height: 1.7;
    color: var(--blog-text);
    margin-bottom: 30px;
    padding: 20px;
    background: var(--blog-light-bg);
    border-left: 4px solid var(--blog-primary);
    border-radius: 4px;
}

.article-featured-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Article Content */
.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 600;
    color: var(--blog-heading);
}

.article-content a {
    color: var(--blog-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-bottom-color: var(--blog-primary);
}

/* Table of Contents */
.toc a {
    color: var(--blog-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--blog-dark);
}

/* Highlight Box */
.highlight-box {
    background: #fff3e0;
    border-left: 4px solid var(--blog-primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.highlight-box strong {
    color: var(--blog-primary);
}

/* Article Layout */
.article-layout {
    margin-top: 30px;
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--blog-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Tags */
.tag {
    display: inline-block;
    background: var(--blog-light-bg);
    color: var(--blog-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    transition: background 0.3s;
}

.tag:hover {
    background: var(--blog-primary);
    color: white;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 40px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--blog-dark);
}

/* Blog List Page */
.blog-list {
    display: grid;
    gap: 45px;
    /* Zväčšená medzera medzi článkami z 30px na 45px */
    margin-top: 40px;
}

.blog-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    /* Liquid glass base */
    backdrop-filter: blur(12px);
    /* Apple glassmorphism blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    /* Hladšie, viac zaoblené rohy */
    padding: 25px;
    gap: 35px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04);
    /* Jemnejší, hlboký tieň */
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Zosilnený tieň pri hoveri bez zmeny border-color */
    background: rgba(255, 255, 255, 0.8);
}

.blog-card-img {
    width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    /* Ostrejšie vnútorné zaoblenie ladiace s vonkajším */
    display: block;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    /* Jemný tieň obrázka oddelujúci od skla */
}

.blog-card-inner {
    flex: 1;
    z-index: 1;
    /* Keep text above the glass effects if needed */
}

.blog-card h2 {
    font-size: 22px;
    color: var(--blog-heading);
    margin: 0 0 15px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-meta {
    font-size: 13px;
    color: #888;
}

/* Footer */
.footer {
    background: var(--blog-light-bg);
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--blog-border);
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--blog-text);
}

.footer a {
    color: var(--blog-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--blog-dark);
}

.sitename {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .article-wrapper {
        padding: 30px 15px 60px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-perex {
        font-size: 16px;
        padding: 15px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-card-img {
        width: 100%;
        height: 180px;
    }

    .blog-card h2 {
        font-size: 18px;
    }

    .site-header img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .article-wrapper {
        padding: 20px 10px 40px;
    }
}
/* ── Blog z CMS (blog.php, clanok.php) ─────────────────────────── */
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--blog-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--blog-primary); }
.site-nav .site-nav-cta { background: var(--blog-primary); color: #fff; padding: 9px 18px; border-radius: 10px; }
.site-nav .site-nav-cta:hover { color: #fff; background: #db6110; }
@media (max-width: 560px) {
    .site-nav a:not(.site-nav-cta) { display: none; }
}

.blog-titulok { margin-bottom: 6px; }

.article-hero { width: 100%; height: auto; border-radius: 14px; margin: 10px 0 30px; display: block; }

.toc { background: var(--blog-light-bg); border-radius: 10px; padding: 20px 24px; margin: 0 0 30px; }
.toc-title { font-weight: 700; color: var(--blog-heading); margin-bottom: 10px; }
.toc ul { list-style: none; }
.toc li { margin: 6px 0; }

.article-content h2 { scroll-margin-top: 100px; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; }
blockquote.highlight-box { font-style: normal; }

.blog-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--blog-dark); color: #fff; border-radius: 16px; padding: 28px 30px; margin: 50px 0 10px;
}
.blog-cta strong { display: block; font-size: 19px; margin-bottom: 6px; color: #fff; }
.blog-cta p { margin: 0; color: #d6dde6; font-size: 15px; }
.blog-cta-btn {
    background: var(--blog-primary); color: #fff; text-decoration: none; font-weight: 700;
    padding: 14px 26px; border-radius: 12px; white-space: nowrap;
}
.blog-cta-btn:hover { background: #db6110; }

.blog-dalsie { margin-top: 50px; }
.blog-dalsie h2 { font-size: 22px; margin-bottom: 18px; }
.blog-dalsie-mriezka { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.blog-dalsie-mriezka a { text-decoration: none; color: var(--blog-heading); font-weight: 600; font-size: 15px; line-height: 1.4; }
.blog-dalsie-mriezka img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 8px; }
.blog-dalsie-mriezka a:hover span { color: var(--blog-primary); }

.blog-strankovanie { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.blog-strankovanie a, .blog-strankovanie span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--blog-border); text-decoration: none; color: var(--blog-dark); font-weight: 600;
}
.blog-strankovanie span { background: var(--blog-primary); border-color: var(--blog-primary); color: #fff; }

/* odkazy na služby pod článkom */
.blog-sluzby { margin: 30px 0 10px; }
.blog-sluzby-nadpis { font-weight: 700; color: var(--blog-heading); margin-bottom: 12px; }
.blog-sluzby a { display: block; border: 1px solid var(--blog-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; text-decoration: none; transition: border-color .2s, transform .2s; }
.blog-sluzby a:hover { border-color: var(--blog-primary); transform: translateX(4px); }
.blog-sluzby strong { display: block; color: var(--blog-dark); }
.blog-sluzby span { color: var(--blog-text); font-size: 14px; }
