/*
* Optimaly s.r.o. - Blog Styles
* Unified styles for all blog pages
* Copyright (c) 2025 Optimaly s.r.o.
*/

/* ==========================================
   BLOG HEADER - Compact version
   ========================================== */

.blog-header {
    background: transparent;
    padding: 30px 0 40px 0;
    margin-top: 80px; /* Pro fixed navbar */
}

.blog-header .article-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.blog-header .article-category {
    font-weight: 600;
    color: var(--optimaly-gold, #ffd700);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
}

.blog-header .article-readtime {
    color: rgba(255,255,255,0.6);
    margin-left: 10px;
    font-size: 13px;
}

.blog-header h1 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.blog-header .lead {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
}

/* ==========================================
   BLOG ARTICLE CONTENT
   ========================================== */

.blog-article {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.blog-article h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 45px;
    margin-bottom: 20px;
}

.blog-article h2:first-child {
    margin-top: 0;
}

.blog-article h3 {
    font-size: 22px;
    font-weight: 600;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
}

.blog-article p {
    margin-bottom: 18px;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-article li {
    margin-bottom: 8px;
}

.blog-article strong {
    color: #2c3e50;
    font-weight: 600;
}

.blog-article a {
    color: var(--optimaly-blue, #2c3e50);
    text-decoration: underline;
}

.blog-article a:hover {
    color: #1a252f;
}

/* ==========================================
   BLOG CALLOUTS - Unified neutral style
   ========================================== */

.blog-article .alert,
.blog-article .blog-callout {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--optimaly-blue, #2c3e50);
    padding: 20px 25px;
    margin: 25px 0;
    background-color: #f8f9fa;
}

/* Override Bootstrap colored variants - all use neutral style */
.blog-article .alert-info,
.blog-article .alert-success,
.blog-article .alert-warning,
.blog-article .alert-danger {
    background-color: #f8f9fa;
    border-left-color: var(--optimaly-blue, #2c3e50);
    color: #333;
}

.blog-article .alert ul {
    margin-bottom: 0;
    margin-top: 10px;
}

/* ==========================================
   BLOG TABLES
   ========================================== */

.blog-article .table {
    border-collapse: collapse;
    margin: 25px 0;
}

.blog-article .table th,
.blog-article .table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
}

.blog-article .table thead th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* ==========================================
   BLOG COMPARISON CARDS
   ========================================== */

.blog-article .comparison-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.blog-article .comparison-card h4 {
    color: var(--optimaly-blue, #2c3e50);
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 18px;
}

.blog-article .comparison-card ul {
    margin: 0;
    padding-left: 20px;
}

.blog-article .comparison-card li {
    margin-bottom: 6px;
}

/* Highlighted variant (recommended option) */
.blog-article .comparison-card-highlight {
    background: var(--optimaly-blue, #2c3e50);
    border-color: var(--optimaly-blue, #2c3e50);
}

.blog-article .comparison-card-highlight h4 {
    color: white;
}

.blog-article .comparison-card-highlight li {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   BLOG CHECKLIST BOX
   ========================================== */

.blog-article .checklist-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--optimaly-blue, #2c3e50);
    margin: 30px 0;
}

.blog-article .checklist-box h4 {
    margin-bottom: 20px;
    margin-top: 0;
    color: var(--optimaly-blue, #2c3e50);
}

.blog-article .checklist-section {
    margin-bottom: 20px;
}

.blog-article .checklist-section:last-child {
    margin-bottom: 0;
}

.blog-article .checklist-section strong {
    color: var(--optimaly-blue, #2c3e50);
    display: block;
    margin-bottom: 10px;
}

.blog-article .checklist-section ul {
    margin: 0;
}

/* ==========================================
   BLOG STAT/PRICING CARDS
   ========================================== */

.blog-article .stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--optimaly-blue, #2c3e50);
    height: 100%;
}

.blog-article .stat-card h4 {
    color: var(--optimaly-blue, #2c3e50);
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 18px;
}

.blog-article .stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.blog-article .stat-card p {
    margin: 0;
    font-size: 15px;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-white-80 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px;
}

/* ==========================================
   BLOG CTA BOX
   ========================================== */

.blog-article .cta-box {
    background: var(--optimaly-blue, #2c3e50);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.blog-article .cta-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.blog-article .cta-box p {
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    margin-bottom: 25px;
}

/* ==========================================
   BLOG INDEX - Article Cards
   ========================================== */

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card-link .case-study-card {
    transition: all 0.3s ease;
}

.article-card-link:hover .case-study-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.article-category {
    font-weight: 600;
    color: var(--optimaly-orange, #ff6b35);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.article-readtime {
    color: #888;
    margin-left: 5px;
}

/* Karty článků - bílá barva na tmavém pozadí */
.case-study-header .article-meta,
.case-study-header .article-meta .article-category,
.case-study-header .article-meta .article-readtime,
.section-white .case-study-card .case-study-header h3,
#blog-articles .case-study-header h3 {
    color: white !important;
}

.article-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ==========================================
   RELATED ARTICLES
   ========================================== */

.blog-article hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 30px 0;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .blog-header .lead {
        font-size: 16px;
    }

    .blog-article {
        font-size: 16px;
    }

    .blog-article h2 {
        font-size: 24px;
        margin-top: 35px;
    }

    .blog-article h3 {
        font-size: 20px;
        margin-top: 25px;
    }

    .blog-article .cta-box {
        padding: 30px 20px;
    }

    .blog-article .cta-box h3 {
        font-size: 22px;
    }

    .blog-article .cta-box p {
        font-size: 15px;
    }

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

    .article-readtime {
        margin-left: 0;
        margin-top: 5px;
    }

    .table-responsive {
        font-size: 14px;
    }
}
