/* ================================================
   BLOG CONTENT STYLES (Bootstrap 5)
   ================================================ */

/* Table styling for blog content */
.blog-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-collapse: collapse;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-content table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
}

.blog-content table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #dee2e6;
}

.blog-content table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.15s ease-in-out;
}

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

.blog-content table tbody tr:hover {
    background-color: #e7f1ff !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.blog-content table tbody td {
    padding: 0.75rem 1rem;
    color: #212529;
}

/* Responsive tables */
@media (max-width: 768px) {
    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-content table thead {
        display: none;
    }
    
    .blog-content table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .blog-content table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .blog-content table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #212529;
    }
    
    .blog-content table tbody td:last-child {
        border-bottom: none;
    }
}

/* Blog content typography */
/* H1 inside content should look like H2 to avoid duplicate main heading visually */
.blog-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.7;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 0.5rem;
    color: #212529;
    line-height: 1.6;
}

.blog-content ul li {
    list-style-type: disc;
}

.blog-content ol li {
    list-style-type: decimal;
}

.blog-content a {
    color: #0d6efd;
    text-decoration: none;
}

.blog-content a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.blog-content img {
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.blog-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    font-style: italic;
    color: #6c757d;
    margin: 1.5rem 0;
}

.blog-content code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.blog-content pre {
    background-color: #212529;
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background-color: transparent;
    color: #f8f9fa;
    padding: 0;
}

/* ================================================
   ARTICOL BLOG — ANTET, INTRODUCERE, CUPRINS, CTA
   ================================================ */

/* Antet articol */
.blog-article-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin: 0.5rem 0 1rem;
}

@media (max-width: 768px) {
    .blog-article-title {
        font-size: 1.8rem;
    }
}

.blog-article-meta {
    font-size: 0.9rem;
    gap: 0.25rem 0;
}

.blog-article-meta i {
    color: #0d6efd;
}

/* Imagine principală (hero) */
.blog-article-hero {
    margin: 0;
}

.blog-article-hero img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

/* Introducere / lead */
.blog-article-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #344054;
    padding: 1rem 1.25rem;
    background: #f8f9fb;
    border-left: 4px solid #0d6efd;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Cuprins (Table of Contents) */
.blog-toc {
    background: #f8f9fb;
    border: 1px solid #e7eaf0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.blog-toc-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a202c;
    margin: 0 0 0.75rem;
}

.blog-toc-title i {
    color: #0d6efd;
}

.blog-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.blog-toc ol li {
    margin-bottom: 0.4rem;
    color: #475467;
}

.blog-toc ol li a {
    color: #0d6efd;
    text-decoration: none;
}

.blog-toc ol li a:hover {
    text-decoration: underline;
}

/* Ancorele din cuprins nu trebuie ascunse sub header-ul fix */
.blog-content h2[id] {
    scroll-margin-top: 90px;
}

/* Caseta CTA — îndeamnă spre serviciul/produsul promovat */
.blog-cta {
    background: linear-gradient(135deg, #eef2ff 0%, #f8f9fb 100%);
    border: 1px solid #dfe3ff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    text-align: center;
}

.blog-cta-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 0.5rem;
}

.blog-cta-text {
    font-size: 1.05rem;
    color: #475467;
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.blog-cta-actions .btn-cta-primary,
.blog-cta-actions .btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-cta-actions .btn-cta-primary {
    background: linear-gradient(135deg, #ff4073 0%, #ff6b96 100%);
    color: #fff !important;
    box-shadow: 0 0.35rem 0.9rem rgba(255, 64, 115, 0.35);
}

.blog-cta-actions .btn-cta-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.2rem rgba(255, 64, 115, 0.45);
}

.blog-cta-actions .btn-cta-outline {
    background: #1bc5bd;
    color: #fff !important;
}

.blog-cta-actions .btn-cta-outline:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.2rem rgba(27, 197, 189, 0.35);
}

/* Taguri articol */
.blog-article-tags .badge {
    font-weight: 500;
    font-size: 0.85rem;
}

/* Carduri produse / articole similare */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}
