/* vcreate-blog-detail — vytaženo ze sections/vcreate-blog-detail.php */
/* ==================== VARIABLES ==================== */
.vcreate-blog-detail {
    --bd-bg: #0a0a0f;
    --bd-bg-secondary: #0e0e14;
    --bd-bg-card: #111118;
    --bd-accent: #ff3c3c;
    --bd-accent-secondary: #ff6b35;
    --bd-text: #f0f0f5;
    --bd-text-muted: #7a7a8c;
    --bd-text-dim: rgba(240, 240, 245, 0.35);
    --bd-border: rgba(255, 255, 255, 0.06);
    --bd-glass: rgba(255, 255, 255, 0.03);
    --bd-glass-border: rgba(255, 255, 255, 0.08);
    --bd-font-display: 'Syne', sans-serif;
    --bd-font-body: 'Inter', sans-serif;
    --bd-font-mono: 'Space Mono', monospace;
    --bd-container: 1400px;
    --bd-content: 780px;

    font-family: var(--bd-font-body);
    background: var(--bd-bg);
    color: var(--bd-text);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: clip;
}

.vcreate-blog-detail *,
.vcreate-blog-detail *::before,
.vcreate-blog-detail *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.vcreate-blog-detail a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.vbd-container {
    max-width: var(--bd-container);
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 3;
}

.vbd-narrow {
    max-width: var(--bd-content);
    margin: 0 auto;
}

/* ==================== NOISE ==================== */
.vbd-noise {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

/* ==================== READING PROGRESS ==================== */
.vbd-reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-secondary));
    z-index: 100000;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
}

/* ==================== CUSTOM CURSOR ==================== */
@media (min-width: 769px) {
    .vcreate-blog-detail { cursor: none; }
}

.vcreate-blog-detail .vbd-cursor {
    width: 20px; height: 20px;
    border: 2px solid var(--bd-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
}

.vcreate-blog-detail .vbd-cursor-dot {
    width: 6px; height: 6px;
    background: var(--bd-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.vcreate-blog-detail .vbd-cursor.hover {
    transform: scale(2.5);
    background: var(--bd-accent);
    mix-blend-mode: normal;
}

@media (max-width: 768px) {
    .vcreate-blog-detail .vbd-cursor,
    .vcreate-blog-detail .vbd-cursor-dot { display: none !important; }
    .vcreate-blog-detail { cursor: auto !important; }
}

/* ==================== HERO ==================== */
.vbd-hero {
    padding: 10rem 0 0;
    position: relative;
    overflow: hidden;
}

.vbd-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.vbd-hero-gradient {
    position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
}

.vbd-hero-gradient-1 { top: -300px; right: -200px; background: var(--bd-accent); }
.vbd-hero-gradient-2 { bottom: -400px; left: -300px; background: var(--bd-accent-secondary); }

.vbd-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

/* Breadcrumb */
.vbd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--bd-text-dim);
    margin-bottom: 2rem;
}

.vbd-breadcrumb a {
    color: var(--bd-text-muted);
}

.vbd-breadcrumb a:hover {
    color: var(--bd-accent);
}

.vbd-breadcrumb-sep {
    color: var(--bd-text-dim);
    font-size: 0.65rem;
}

/* Category pill */
.vbd-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.15);
    border-radius: 100px;
    padding: 5px 14px;
    font-family: var(--bd-font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bd-accent);
    margin-bottom: 1.5rem;
    cursor: default;
}

/* Title */
.vbd-title {
    font-family: var(--bd-font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--bd-text);
    margin-bottom: 2rem;
}

/* Meta row */
.vbd-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.vbd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--bd-text-muted);
}

.vbd-meta-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.vbd-meta-sep {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--bd-border);
}

/* ==================== FEATURED IMAGE ==================== */
.vbd-featured {
    margin-top: 3.5rem;
    position: relative;
    z-index: 3;
}

.vbd-featured-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.vbd-featured-img img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.vbd-featured-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bd-bg), transparent);
    pointer-events: none;
}

/* ==================== ARTICLE BODY ==================== */
.vbd-article {
    padding: 4rem 0;
    position: relative;
    z-index: 3;
}

.vbd-article-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Sidebar / TOC */
.vbd-sidebar {
    position: sticky;
    top: 50px;
    align-self: start;
}

.vbd-toc {
}

.vbd-toc-title {
    font-family: var(--bd-font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bd-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vbd-toc-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 60, 60, 0.3), transparent);
}

.vbd-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vbd-toc-list a {
    display: block;
    font-size: 0.75rem;
    color: var(--bd-text-dim);
    padding: 0.4rem 0 0.4rem 0.75rem;
    border-left: 2px solid var(--bd-border);
    line-height: 1.4;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.vbd-toc-list a:hover,
.vbd-toc-list a.active {
    color: var(--bd-text);
    border-color: var(--bd-accent);
}

/* Share buttons (sidebar) */
.vbd-share {
    margin-top: 2.5rem;
}

.vbd-share-title {
    font-family: var(--bd-font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bd-text-dim);
    margin-bottom: 0.75rem;
}

.vbd-share-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vbd-share-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--bd-glass);
    border: 1px solid var(--bd-glass-border);
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--bd-text-muted);
    transition: all 0.3s ease;
}

.vbd-share-btn:hover {
    border-color: rgba(255, 60, 60, 0.2);
    color: var(--bd-text);
    background: rgba(255, 60, 60, 0.04);
}

.vbd-share-btn svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
}

/* Content area */
.vbd-content {
    min-width: 0;
}

/* WordPress content styling */
.vbd-content h2 {
    font-family: var(--bd-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--bd-text);
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
    scroll-margin-top: 100px;
}

.vbd-content h2:first-child {
    margin-top: 0;
}

.vbd-content h3 {
    font-family: var(--bd-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-text);
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 100px;
}

.vbd-content h4 {
    font-family: var(--bd-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bd-text);
    margin: 2rem 0 0.75rem;
}

.vbd-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--bd-text-muted);
    margin-bottom: 1.5rem;
}

.vbd-content a {
    color: var(--bd-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 60, 60, 0.3);
}

.vbd-content a:hover {
    text-decoration-color: var(--bd-accent);
}

.vbd-content strong {
    color: var(--bd-text);
    font-weight: 600;
}

.vbd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 2rem 0;
    display: block;
}

.vbd-content ul,
.vbd-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--bd-text-muted);
}

.vbd-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.vbd-content li::marker {
    color: var(--bd-accent);
}

.vbd-content blockquote {
    border-left: 3px solid var(--bd-accent);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: var(--bd-glass);
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    color: var(--bd-text);
    font-style: italic;
}

.vbd-content blockquote p {
    color: var(--bd-text);
    margin-bottom: 0;
}

.vbd-content pre {
    background: var(--bd-bg-secondary);
    border: 1px solid var(--bd-glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: var(--bd-font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--bd-text-muted);
}

.vbd-content code {
    background: rgba(255, 60, 60, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--bd-font-mono);
    font-size: 0.85em;
    color: var(--bd-accent);
}

.vbd-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.vbd-content hr {
    border: none;
    height: 1px;
    background: var(--bd-border);
    margin: 3rem 0;
}

.vbd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.vbd-content th,
.vbd-content td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bd-border);
}

.vbd-content th {
    font-weight: 600;
    color: var(--bd-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vbd-content td {
    color: var(--bd-text-muted);
}

.vbd-content figure {
    margin: 2rem 0;
}

.vbd-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--bd-text-dim);
    margin-top: 0.75rem;
}

/* ==================== TAGS ==================== */
.vbd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--bd-border);
}

.vbd-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--bd-glass);
    border: 1px solid var(--bd-glass-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--bd-text-muted);
    transition: all 0.3s ease;
}

.vbd-tag:hover {
    border-color: rgba(255, 60, 60, 0.2);
    color: var(--bd-text);
}

/* ==================== PREV / NEXT ==================== */
.vbd-nav {
    padding: 0 0 5rem;
    position: relative;
    z-index: 3;
}

.vbd-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.vbd-nav-item {
    background: var(--bd-glass);
    border: 1px solid var(--bd-glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.vbd-nav-item:hover {
    border-color: rgba(255, 60, 60, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.vbd-nav-item--next {
    text-align: right;
}

.vbd-nav-label {
    font-family: var(--bd-font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bd-text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vbd-nav-item--next .vbd-nav-label {
    justify-content: flex-end;
}

.vbd-nav-label svg {
    width: 12px; height: 12px;
}

.vbd-nav-title {
    font-family: var(--bd-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bd-text-muted);
    line-height: 1.35;
    transition: color 0.3s ease;
}

.vbd-nav-item:hover .vbd-nav-title {
    color: var(--bd-text);
}

/* ==================== RELATED POSTS ==================== */
.vbd-related {
    padding: 0 0 5rem;
    position: relative;
    z-index: 3;
}

.vbd-section-title {
    font-family: var(--bd-font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--bd-text) !important;
}

.vbd-section-subtitle {
    font-size: 1rem;
    color: var(--bd-text-muted);
    margin-bottom: 2.5rem;
}

.vbd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vbd-related-card {
    background: var(--bd-glass);
    border: 1px solid var(--bd-glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.vbd-related-card:hover {
    border-color: rgba(255, 60, 60, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.vbd-related-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.vbd-related-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vbd-related-card:hover .vbd-related-img img {
    transform: scale(1.05);
}

.vbd-related-img--empty {
    background: var(--bd-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vbd-related-img--empty svg {
    width: 32px; height: 32px;
    color: var(--bd-text-dim);
}

.vbd-related-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vbd-related-date {
    font-family: var(--bd-font-mono);
    font-size: 0.65rem;
    color: var(--bd-text-dim);
    margin-bottom: 0.5rem;
}

.vbd-related-title {
    font-family: var(--bd-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bd-text);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.vbd-related-card:hover .vbd-related-title {
    color: var(--bd-accent);
}

.vbd-related-excerpt {
    font-size: 0.82rem;
    color: var(--bd-text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== CTA ==================== */
.vbd-cta {
    padding: 0 0 6rem;
    position: relative;
    z-index: 3;
}

.vbd-cta-card {
    background: linear-gradient(135deg, var(--bd-accent) 0%, var(--bd-accent-secondary) 100%);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vbd-cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0v2M10 18v2M0 10h2M18 10h2' stroke='white' stroke-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 20px 20px;
    pointer-events: none;
}

.vbd-cta-content { position: relative; z-index: 1; }

.vbd-cta-title {
    font-family: var(--bd-font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.vbd-cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.vbd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--bd-accent) !important;
    font-family: var(--bd-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.vbd-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: var(--bd-accent) !important;
}

.vbd-cta-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.vbd-cta-btn:hover svg { transform: translateX(3px); }

.vbd-cta-contact {
    position: relative; z-index: 1;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 2rem;
}

.vbd-cta-contact-label {
    font-family: var(--bd-font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
}

.vbd-cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.vbd-cta-contact-item:hover { color: #fff; }

/* ==================== REVEAL ==================== */
.vbd-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vbd-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.vbd-reveal-delay-1 { transition-delay: 0.1s; }
.vbd-reveal-delay-2 { transition-delay: 0.2s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .vbd-container { padding: 0 2rem; }

    .vbd-article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vbd-sidebar {
        position: static;
        order: -1;
    }

    .vbd-toc {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .vbd-toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .vbd-toc-list a {
        border-left: none;
        border-bottom: 2px solid var(--bd-border);
        padding: 0.35rem 0.75rem;
        white-space: nowrap;
    }

    .vbd-share {
        margin-top: 0;
    }

    .vbd-share-links {
        flex-direction: row;
    }

    .vbd-cta-card {
        grid-template-columns: 1fr;
        padding: 3rem;
    }

    .vbd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vbd-container { padding: 0 1.5rem; }

    .vbd-hero { padding: 7rem 0 0; }

    .vbd-title {
        font-size: 1.8rem !important;
    }

    .vbd-meta {
        gap: 0.75rem;
    }

    .vbd-nav-grid {
        grid-template-columns: 1fr;
    }

    .vbd-nav-item--next {
        text-align: left;
    }

    .vbd-nav-item--next .vbd-nav-label {
        justify-content: flex-start;
    }

    .vbd-related-grid {
        grid-template-columns: 1fr;
    }

    .vbd-cta-card { padding: 2.5rem; }

    .vbd-featured-img img {
        max-height: 300px;
    }
}
