/* Modern RoboPol Blog Styles - 2025 PREMIUM WIDE Edition */
/* Author: Ing. Róbert Polák - RoboPol.sk */

/* Background atmosphere - TEAL only */
body {
    background-color: var(--background);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(10, 186, 181, 0.12), transparent 50%),
        radial-gradient(circle at 0% 80%, rgba(10, 186, 181, 0.08), transparent 50%);
    background-attachment: fixed;
}

.blog-post {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    min-height: 100vh;
}

.blog-post>.container {
    position: relative;
    max-width: 1400px;
}

/* Language Switcher */
.language-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 100;
    background: rgba(11, 17, 33, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(10, 186, 181, 0.4);
}

/* ====================================================
   GLASSMORPHISM ARTICLE CONTAINER - WIDE
   ==================================================== */
.blog-content {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(11, 17, 33, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.blog-content:hover {
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(10, 186, 181, 0.08);
    border-color: rgba(10, 186, 181, 0.2);
}

/* Top accent line */
.blog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

/* Article Title */
.blog-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Meta Info Pills */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.post-meta span:hover {
    border-color: rgba(10, 186, 181, 0.3);
    background: rgba(10, 186, 181, 0.1);
}

.post-meta i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Featured Image */
.featured-image {
    margin: 0 -4rem 2.5rem -4rem;
    height: 450px;
    width: calc(100% + 8rem);
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-image:hover img {
    transform: scale(1.03);
}

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(11, 17, 33, 0.95));
    pointer-events: none;
}

/* Lead paragraph */
.lead {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #fff;
    margin-bottom: 2.5rem;
    font-weight: 400;
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    font-style: italic;
    box-shadow: -4px 0 20px rgba(10, 186, 181, 0.2);
}

/* ====================================================
   BLOG POST IMAGES
   ==================================================== */
.blog-post-feature-image-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
    background-image: none !important;
}

.blog-post-feature-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
}

/* ====================================================
   MAIN TEXT CONTENT
   ==================================================== */
.content p {
    margin-bottom: 1.75rem;
    line-height: 2;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.content h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--primary-color);
    flex-shrink: 0;
}

.content h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content ul,
.content ol {
    margin-bottom: 2rem;
    padding-left: 0;
}

.content li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.9;
    list-style: none;
}

.content li::before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
    text-shadow: 0 0 10px var(--primary-color);
}

.content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.content a:hover {
    border-bottom-color: var(--primary-color);
    text-shadow: 0 0 10px rgba(10, 186, 181, 0.5);
}

/* ====================================================
   INFO BOX
   ==================================================== */
.info-box {
    background: linear-gradient(135deg, rgba(10, 186, 181, 0.12) 0%, transparent 100%);
    border: 1px solid rgba(10, 186, 181, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: rgba(10, 186, 181, 0.5);
    box-shadow: 0 0 30px rgba(10, 186, 181, 0.1);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.info-box p {
    margin: 0;
    font-size: 1rem;
}

/* ====================================================
   CTA BOX
   ==================================================== */
.cta-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.cta-box:hover {
    border-color: rgba(10, 186, 181, 0.3);
    box-shadow: 0 0 30px rgba(10, 186, 181, 0.1);
}

/* Back Button */
.back-to-blog {
    text-align: center;
    margin-top: 3.5rem;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.05rem;
    padding: 14px 28px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-to-blog a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(10, 186, 181, 0.1);
    transform: translateX(-8px);
    box-shadow: 0 0 20px rgba(10, 186, 181, 0.2);
}

/* ====================================================
   CODE BLOCKS
   ==================================================== */
.content pre,
.content code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
}

.content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.content code {
    padding: 0.2rem 0.5rem;
}

/* ====================================================
   RESPONSIVE STYLES
   ==================================================== */
@media screen and (max-width: 1200px) {
    .blog-content {
        max-width: 95%;
        padding: 3rem;
    }

    .featured-image {
        margin: 0 -3rem 2rem -3rem;
        width: calc(100% + 6rem);
    }
}

@media screen and (max-width: 768px) {
    .blog-post {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .blog-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }

    .blog-content h1 {
        font-size: 1.6rem;
    }

    .featured-image {
        margin: 0 -1.5rem 1.5rem -1.5rem;
        width: calc(100% + 3rem);
        height: 220px;
    }

    .language-toggle {
        top: 70px;
        right: 10px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    .content h3 {
        font-size: 1.15rem;
    }

    .content p {
        font-size: 1rem;
    }

    .post-meta {
        gap: 8px;
    }

    .post-meta span {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .lead {
        font-size: 1rem;
        padding-left: 1.25rem;
    }

    .info-box {
        padding: 1.25rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .back-to-blog {
        margin-top: 2rem;
    }

    .back-to-blog a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-post {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .blog-content {
        padding: 1rem;
        margin: 0 0.25rem;
        border-radius: 12px;
    }

    .blog-content h1 {
        font-size: 1.4rem;
    }

    .featured-image {
        margin: 0 -1rem 1rem -1rem;
        width: calc(100% + 2rem);
        height: 180px;
    }

    .language-toggle {
        top: 60px;
        right: 8px;
        padding: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .content h2 {
        font-size: 1.2rem;
    }

    .content h3 {
        font-size: 1.05rem;
    }

    .content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .content li {
        font-size: 0.95rem;
    }
}

/* ====================================================
   LANGUAGE SWITCHING
   ==================================================== */
.blog-content [data-lang],
.back-to-blog [data-lang],
footer [data-lang] {
    display: none !important;
}

html[lang="sk"] .blog-content [data-lang="sk"],
html[lang="sk"] .back-to-blog [data-lang="sk"],
html[lang="sk"] footer [data-lang="sk"] {
    display: block !important;
}

html[lang="en"] .blog-content [data-lang="en"],
html[lang="en"] .back-to-blog [data-lang="en"],
html[lang="en"] footer [data-lang="en"] {
    display: block !important;
}

html[lang="sk"] .blog-content span[data-lang="sk"],
html[lang="en"] .blog-content span[data-lang="en"] {
    display: flex !important;
}

html[lang="sk"] .back-to-blog a[data-lang="sk"],
html[lang="en"] .back-to-blog a[data-lang="en"] {
    display: inline-flex !important;
}

.language-toggle .lang-btn {
    display: inline-block !important;
}