/* ============================================================
   VMFIN – Kompletný štýl témy
   Farby: Navy #0D1B3E | Gold #C9A84C | Cream #fdfcf8
   Fonty: Playfair Display (nadpisy) | DM Sans (text)
   ============================================================ */

/* ===== CSS PREMENNÉ ===== */
:root {
    --navy:        #0D1B3E;
    --navy-light:  #1a2d5a;
    --gold-400:    #C9A84C;
    --gold-300:    #dfc06e;
    --cream:       #fdfcf8;
    --cream-dark:  #f4f0e6;
    --text:        #1a1a2e;
    --text-muted:  #6b7280;
    --border:      rgba(0,0,0,0.08);
    --radius:      8px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
    --nav-h:       80px;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'DM Sans', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);
    overflow-x: hidden;
    width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-300); }
ul { list-style: none; }

.text-gradient {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAVIGÁCIA
   ============================================================ */
#vmfin-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(13,27,62,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    height: var(--nav-h);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.nav-logo:hover { color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 4px 0;
    border-radius: var(--radius);
    transition: color .2s;
    letter-spacing: 0.02em;
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold-400);
}
.nav-cta {
    margin-left: 8px;
    background: var(--gold-400) !important;
    color: var(--navy) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
}
.nav-cta:hover { background: var(--gold-300) !important; color: var(--navy) !important; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--navy);
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 16px 20px 24px;
    gap: 4px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color .2s;
}
#mobile-menu a:hover { color: var(--gold-400); }
.mobile-cta {
    margin-top: 8px !important;
    background: var(--gold-400);
    color: var(--navy) !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 12px 16px !important;
    border-radius: 6px;
    border: none !important;
}
.mobile-cta:hover { background: var(--gold-300); color: var(--navy) !important; }

/* ============================================================
   BLOG HEADER
   ============================================================ */
.blog-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: calc(var(--nav-h) + 60px) 20px 60px;
    text-align: center;
}
.blog-header-inner { max-width: 700px; margin: 0 auto; }
.blog-header-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 16px;
}
.blog-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   BLOG MAIN & GRID
   ============================================================ */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.category-filter a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    transition: all .2s;
}
.category-filter a:hover,
.category-filter a.current-cat {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============================================================
   KARTA ČLÁNKU
   ============================================================ */
article.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
article.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--cream-dark);
}
.post-thumb a { display: block; height: 100%; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
article.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-dark), #e8e0d0);
}
.post-thumb-placeholder svg { width: 48px; height: 48px; color: rgba(13,27,62,0.2); }

.post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.post-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 0;
}
.post-title a { color: var(--navy); transition: color .2s; }
.post-title a:hover { color: var(--gold-400); }

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.post-meta-sep::before { content: '·'; }

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 4px;
    transition: gap .2s, color .2s;
}
.post-read-more:hover { color: var(--gold-400); gap: 10px; }
.post-read-more svg { width: 16px; height: 16px; flex-shrink: 0; }

/* PAGINÁCIA */
.vmfin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.vmfin-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all .2s;
}
.vmfin-pagination .page-numbers:hover,
.vmfin-pagination .page-numbers.current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ============================================================
   SINGLE POST – HEADER
   ============================================================ */
.single-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: calc(var(--nav-h) + 60px) 20px 60px;
    text-align: center;
}
.single-header-inner { max-width: 800px; margin: 0 auto; }

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    transition: color .2s;
}
.back-to-blog:hover { color: var(--gold-400); }
.back-to-blog svg { width: 16px; height: 16px; }

.single-header .post-category { display: block; margin-bottom: 14px; }
.single-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}
.single-header .post-meta { justify-content: center; color: rgba(255,255,255,0.55); }

/* ============================================================
   SINGLE POST – OBSAH
   ============================================================ */
.vmfin-single-main {
    background: var(--cream);
    padding: 60px 20px 80px;
}
.single-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 60px;
    box-shadow: var(--shadow-sm);
}

.entry-content {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-serif);
    color: var(--navy);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 4px solid var(--gold-400);
    margin: 2em 0;
    padding: 16px 24px;
    background: var(--cream-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--navy);
}
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; box-shadow: var(--shadow-sm); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 0.9rem; }
.entry-content th,
.entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--navy); color: #fff; font-weight: 600; }
.entry-content tr:nth-child(even) td { background: var(--cream-dark); }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.post-tags a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--cream-dark);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
    transition: all .2s;
}
.post-tags a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.vmfin-cta-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 40px;
    text-align: center;
    margin-top: 50px;
}
.vmfin-cta-box h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 10px; }
.vmfin-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 0.95rem; }
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 6px;
    transition: opacity .2s, transform .2s;
}
.cta-button:hover { opacity: .9; transform: translateY(-1px); color: var(--navy); }

.post-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.post-author-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.post-author-info h4 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.post-author-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   SÚVISIACE ČLÁNKY
   ============================================================ */
.related-posts {
    background: var(--cream-dark);
    padding: 60px 20px;
    border-top: 1px solid var(--border);
}
.related-posts-inner { max-width: 1200px; margin: 0 auto; }
.related-posts h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 32px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-thumb-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-card:hover .related-thumb-wrap img { transform: scale(1.04); }
.related-card .post-body { padding: 20px; }
.related-card .post-title { font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#vmfin-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 20px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.footer-logo:hover { color: #fff; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 10px; max-width: 300px; }
.footer-legal { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--navy);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 900;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top svg { width: 20px; height: 20px; color: var(--gold-400); }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 20px 80px;
    gap: 16px;
}
.error-404-wrap h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--navy);
    line-height: 1;
}
.error-404-wrap p { color: var(--text-muted); font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-top > div:first-child { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE – MOBIL (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    #vmfin-nav { height: auto; min-height: var(--nav-h); }

    .blog-header { padding: calc(var(--nav-h) + 40px) 16px 40px; }
    .blog-main { padding: 32px 16px 60px; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }

    .single-header { padding: calc(var(--nav-h) + 40px) 16px 40px; }
    .single-header h1 { font-size: 1.75rem; }
    .vmfin-single-main { padding: 24px 16px 60px; }
    .single-content-wrap { padding: 28px 20px; }
    .vmfin-cta-box { padding: 28px 20px; }
    .vmfin-cta-box h3 { font-size: 1.25rem; }
    .post-author-box { flex-direction: column; padding: 20px; }

    .related-posts { padding: 40px 16px; }
    .related-grid { grid-template-columns: 1fr; gap: 16px; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE – MALÝ MOBIL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
    .single-content-wrap { padding: 20px 16px; }
    .entry-content { font-size: 1rem; }
}
