/* ===================================
   STALOWY BECHTA - Blog CSS
   Wersja: 1.0
   Data: 2026
   =================================== */

/* === Blog Article Layout === */
.blog-header {
    background: var(--gradient-dark);
    padding: 140px 0 60px;
    color: var(--white);
    text-align: center;
}

.blog-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.blog-header .breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.blog-header .breadcrumb a:hover {
    color: var(--accent-red);
}

.blog-header .breadcrumb .separator {
    color: var(--text-light);
    opacity: 0.5;
}

.blog-header .breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

.blog-header h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 900px;
    margin: 0 auto 1rem;
    letter-spacing: -1px;
}

.blog-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-header .article-meta i {
    margin-right: 0.4rem;
    color: var(--accent-red);
}

/* === Article Content === */
.article-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.article-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-steel);
}

.article-content p {
    margin-bottom: 1.2rem;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #444;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content strong {
    color: var(--primary-dark);
}

.article-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-decoration-color: rgba(231, 76, 60, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

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

/* === Article Figures === */
.article-content figure {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-content figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-content figure:hover img {
    transform: scale(1.02);
}

.article-content figcaption {
    background: var(--light-gray);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* === Comparison Table === */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 500px;
}

.comparison-table thead th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.comparison-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background: #eef2f5;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* === Pros/Cons Lists === */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.pros,
.cons {
    padding: 1.5rem;
    border-radius: 8px;
}

.pros {
    background: #e8f5e9;
    border-left: 4px solid var(--success-green);
}

.cons {
    background: #fce4ec;
    border-left: 4px solid var(--accent-red);
}

.pros h4,
.cons h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.pros h4 {
    color: var(--success-green);
}

.cons h4 {
    color: var(--accent-red);
}

.pros ul,
.cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros li,
.cons li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pros li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-size: 0.8rem;
}

.cons li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.8rem;
}

/* === Tip/Info Boxes === */
.tip-box {
    background: linear-gradient(135deg, #e3f2fd, #e8eaf6);
    border-left: 4px solid var(--info-blue);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.tip-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--info-blue);
}

/* === FAQ Section === */
.faq-section {
    margin-top: 2.5rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #eef2f5;
}

.faq-question i {
    color: var(--accent-red);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem 1.25rem;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* === Author Box === */
.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--light-gray);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-red);
}

.author-box .author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--primary-dark);
}

.author-box .author-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* === Related Articles === */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.related-articles h3 {
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    transition: var(--transition);
    border: 1px solid transparent;
}

.related-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.related-card i {
    font-size: 1.5rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

.related-card span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* === Article CTA === */
.article-cta {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.article-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-red);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--accent-red);
}

.article-cta .btn-primary:hover {
    background: transparent;
    color: var(--accent-red);
    transform: translateY(-2px);
}

.article-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.article-cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* === Responsive === */
@media (max-width: 768px) {
    .blog-header {
        padding: 110px 1rem 40px;
    }

    .blog-header h1 {
        font-size: 1.5rem;
    }

    .blog-header .article-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .article-container {
        padding: 2rem 1rem 3rem;
    }

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

    .pros-cons {
        grid-template-columns: 1fr;
    }

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

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
    }

    .article-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .comparison-table {
        font-size: 0.85rem;
    }
}
