/**
 * SuperPatch Blog - Modern UI/UX Styles
 * Professional design matching homepage
 */

/* 🧭 Blog Navigation */
.blog-navigation {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.blog-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.blog-nav-logo:hover {
    transform: scale(1.05);
}

.blog-nav-logo img {
    height: 35px;
}

.blog-nav-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.blog-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-nav-link:hover {
    color: #FF8C42;
}

.blog-nav-link svg {
    stroke-width: 2.5;
}

/* 🎨 Blog Hero Section */
.blog-hero-section {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE6CC 100%);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 💧 Opakujúci sa Pattern v pozadí */
.blog-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.pattern-text {
    font-family: 'Poppins', sans-serif;
    font-size: 70px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 140, 66, 0.12);
    text-stroke: 2px rgba(255, 140, 66, 0.12);
    white-space: nowrap;
    letter-spacing: 15px;
    text-align: center;
    animation: pattern-slide 30s linear infinite;
}

.pattern-text:nth-child(1) {
    animation-delay: 0s;
}

.pattern-text:nth-child(2) {
    animation-delay: -6s;
    transform: translateX(-20%);
}

.pattern-text:nth-child(3) {
    animation-delay: -12s;
}

.pattern-text:nth-child(4) {
    animation-delay: -18s;
    transform: translateX(-20%);
}

.pattern-text:nth-child(5) {
    animation-delay: -24s;
}

@keyframes pattern-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-10%); }
}

@media (max-width: 1200px) {
    .pattern-text {
        font-size: 60px;
        letter-spacing: 10px;
    }
}

@media (max-width: 768px) {
    .blog-nav-title {
        display: none;
    }
    
    .blog-nav-links {
        gap: 15px;
    }
    
    .blog-nav-link span {
        display: none;
    }
    
    .pattern-text {
        font-size: 30px;
        letter-spacing: 5px;
        -webkit-text-stroke: 1px rgba(255, 140, 66, 0.08);
        text-stroke: 1px rgba(255, 140, 66, 0.08);
    }
}

.blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.blog-hero-seo-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #888;
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.7;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 2px solid rgba(255, 140, 66, 0.15);
    backdrop-filter: blur(5px);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* 📰 Blog Articles Grid */
.blog-articles-section {
    padding: 100px 20px;
    background: #f8f9fa !important;
    min-height: 500px;
    position: relative;
    z-index: 10;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 20;
}

/* 🎴 Blog Card - MODERN UI (SAME AS HOMEPAGE) */
.blog-card {
    background: white !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease !important;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none !important;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1) !important;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #FF8C42;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white !important;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
    font-family: 'Open Sans', sans-serif;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #FF8C42;
}

.blog-card-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 25px;
    background: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%);
    color: white !important;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.25);
    margin-top: auto;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #FF2222 0%, #FF5555 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 68, 68, 0.35);
}

/* 📄 Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: #666;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.3);
}

.blog-pagination .current {
    cursor: default;
}

/* 📭 No Posts */
.no-posts {
    text-align: center;
    padding: 100px 20px;
}

.no-posts-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-posts h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.no-posts p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 36px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 🎯 Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   📄 Single Post Styles
   ============================================================ */

/* Article Hero (rovnaký dizajn ako blog hero) */
.article-hero {
    min-height: 250px;
    padding: 60px 20px 40px;
    position: relative;
}

.article-hero .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.article-breadcrumb {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    max-width: fit-content;
}

.article-breadcrumb a {
    color: #FF8C42;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.article-breadcrumb a:hover {
    color: #FFB84D;
    transform: translateX(2px);
}

.breadcrumb-separator {
    color: #FF8C42;
    font-weight: 400;
}

.breadcrumb-current {
    color: #333;
    font-weight: 700;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-content {
    background: #FFFFFF;
    padding: 80px 20px;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.article-category {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta-info {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: #999;
    font-family: 'Open Sans', sans-serif;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-info svg {
    stroke-width: 2;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    margin-bottom: 30px;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

/* Remove emoji from content */
.article-body img.emoji {
    display: none !important;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.article-body h2 {
    font-size: 32px;
    color: #222;
    border-left: 5px solid #FF8C42;
    padding-left: 20px;
    margin-top: 60px;
}

.article-body h3 {
    font-size: 26px;
    color: #333;
}

.article-body h4 {
    font-size: 22px;
    color: #444;
}

.article-body p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-body strong {
    font-weight: 700;
    color: #222;
}

.article-body ul,
.article-body ol {
    margin-bottom: 30px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-body a {
    color: #FF8C42;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 140, 66, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.article-body a:hover {
    color: #FFB84D;
    border-bottom-color: #FF8C42;
}

.article-body blockquote {
    background: #FFF3E0;
    border-left: 5px solid #FF8C42;
    padding: 25px 30px;
    margin: 40px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 12px 12px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.article-body table th {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

.article-body table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.article-body table tr:hover {
    background: #FFF3E0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body blockquote {
    border-left: 5px solid #FF8C42;
    background: #FFF3E0;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
    color: #555;
}

.article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.article-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: #FF8C42;
    color: white;
}

.related-articles {
    background: #f8f9fa;
    padding: 80px 20px;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 28px;
    }
    
    .article-body h3 {
        font-size: 22px;
    }
    
    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   📝 SEO Article Styles
   ============================================================ */

/* Perex úvod */
.perex-intro {
    font-size: 20px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    background: #FFF3E0;
    padding: 25px 30px;
    border-left: 5px solid #FF8C42;
    border-radius: 10px;
    margin-bottom: 30px !important;
}

/* Disclaimer */
.disclaimer {
    font-size: 15px !important;
    color: #999 !important;
    font-style: italic;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Tip box */
.tip-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE6CC 100%) !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    border-left: 5px solid #FFB84D !important;
    font-size: 17px !important;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.15) !important;
}

/* SuperPatch Selector Table */
.superpatch-selector {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0 !important;
}

.superpatch-selector td {
    padding: 15px 20px !important;
    border: 1px solid #eee;
    font-size: 16px;
}

.superpatch-selector tr:first-child td {
    border-top: 2px solid #FF8C42;
}

.superpatch-selector tr:last-child td {
    border-bottom: 2px solid #FF8C42;
}

.superpatch-selector tr:hover {
    background: #FFF3E0;
}

.superpatch-selector td:first-child {
    font-weight: 600;
    color: #333;
    width: 60%;
}

.superpatch-selector td:last-child {
    color: #FF8C42;
    font-weight: 700;
    text-align: right;
}

/* WordPress Buttons styling */
.wp-block-button__link {
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3) !important;
}

/* Blockquotes (recenzie) */
.article-body blockquote,
.wp-block-quote {
    border-left: 5px solid #FF8C42 !important;
    background: #FFF3E0 !important;
    padding: 25px 30px !important;
    margin: 25px 0 !important;
    border-radius: 10px !important;
    font-style: italic !important;
    color: #555 !important;
}

.wp-block-quote cite {
    color: #FF8C42;
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: 10px;
}

/* Columns pre CTA */
.wp-block-columns {
    margin: 40px 0 !important;
}

.wp-block-column h4 {
    color: #FF8C42 !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

/* Separator */
.wp-block-separator {
    margin: 50px 0 !important;
    border-top: 2px solid rgba(255, 140, 66, 0.2) !important;
}
