/* Article Styles for bestlivecamsite.com blog CPT articles
   Scoped under .blog-post to avoid leaking into theme.
   Color scheme: dark red #8e0205 to match site brand. */

/* === Summary Table === */
.blog-post .summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5em 0 2em;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    font-size: 0.92em;
}

.blog-post .summary-table thead th {
    background: #8e0205;
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
}

.blog-post .summary-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
    border-right: none;
    vertical-align: top;
}

.blog-post .summary-table tbody tr:last-child td {
    border-bottom: none;
}

.blog-post .summary-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.blog-post .summary-table tbody tr:hover td {
    background: #fff5f5;
}

/* === Badges === */
.blog-post .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    margin-bottom: 8px;
    color: #fff;
}

.blog-post .badge-best { background: #8e0205; }
.blog-post .badge-runner-up { background: #b91c1c; }
.blog-post .badge-budget { background: #059669; }
.blog-post .badge-premium { background: #7c3aed; }
.blog-post .badge-compact { background: #0891b2; }
.blog-post .badge-value { background: #65a30d; }
.blog-post .badge-pets { background: #ea580c; }

/* === Product Cards === */
.blog-post .product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 1.8em 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.blog-post .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
}

.blog-post .product-card h3 {
    margin-top: 0;
    font-size: 1.25em;
    color: #1a1a1a;
}

.blog-post .product-card .badge {
    margin-bottom: 10px;
}

/* === Verdict Box === */
.blog-post .verdict-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-left: 4px solid #8e0205;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.blog-post .verdict-box strong {
    color: #8e0205;
}

/* === Pros / Cons Lists === */
.blog-post .pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 1.2em 0;
}

.blog-post .pros-list,
.blog-post .cons-list {
    list-style: none;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 0;
}

.blog-post .pros-list {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.blog-post .cons-list {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.blog-post .pros-list li,
.blog-post .cons-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.93em;
    line-height: 1.5;
}

.blog-post .pros-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #16a34a;
    font-size: 1.1em;
}

.blog-post .cons-list li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #dc2626;
    font-size: 1.1em;
}

/* === Key Takeaways === */
.blog-post .key-takeaways {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-left: 4px solid #8e0205;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 1.5em 0 2em;
}

.blog-post .key-takeaways h2 {
    font-size: 1.1em;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    color: #8e0205;
}

.blog-post .key-takeaways ul {
    margin: 0;
    padding-left: 1.4em;
}

.blog-post .key-takeaways li {
    margin: 6px 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #374151;
}

/* === Table of Contents === */
.blog-post .toc {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.5em 0 2em;
}

.blog-post .toc h2 {
    font-size: 1.1em;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    color: #8e0205;
}

.blog-post .toc ol {
    margin: 0;
    padding-left: 1.4em;
}

.blog-post .toc li {
    margin: 6px 0;
    font-size: 0.93em;
}

.blog-post .toc a {
    color: #8e0205;
    text-decoration: none;
}

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

/* === Star Ratings === */
.blog-post .star-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.blog-post .star-rating .stars {
    color: #f59e0b;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.blog-post .star-rating .score {
    font-weight: 600;
    color: #374151;
    font-size: 0.9em;
}

/* === Price Tags === */
.blog-post .price-tag {
    font-weight: 700;
    color: #059669;
    font-size: 1.05em;
}

/* === Updated Date Badge === */
.blog-post .updated-date-wrapper {
    margin-bottom: 0.5em;
}

.blog-post .updated-date {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 500;
    margin-bottom: 1em;
}

/* === Trust Badges === */
.blog-post .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1em 0 1.5em;
}

.blog-post .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 500;
    color: #374151;
}

/* === Intro Highlight === */
.blog-post .intro p:first-of-type {
    font-size: 1.08em;
    color: #374151;
    line-height: 1.8;
}

/* === Author Bio === */
.blog-post .author-bio {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin: 2em 0;
}

.blog-post .author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #8e0205;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}

.blog-post .author-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post .author-info {
    flex: 1;
}

.blog-post .author-info .author-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.blog-post .author-info .author-desc {
    font-size: 0.88em;
    color: #6b7280;
    line-height: 1.6;
}

/* === Final Verdict Box === */
.blog-post .final-verdict {
    background: #8e0205;
    color: #fff;
    border-radius: 12px;
    padding: 28px;
    margin: 2em 0;
}

.blog-post .final-verdict h2 {
    color: #fff;
    border-bottom: none;
    margin-top: 0;
    font-size: 1.3em;
}

.blog-post .final-verdict p {
    color: #fecaca;
    line-height: 1.7;
}

.blog-post .final-verdict strong {
    color: #fff;
}

/* === FAQ Section === */
.blog-post .faq-section h3 {
    color: #8e0205;
    font-size: 1.05em;
    margin-top: 1.3em;
    padding-top: 1em;
    border-top: 1px solid #f0f0f0;
}

.blog-post .faq-section h3:first-child {
    border-top: none;
    padding-top: 0;
}

/* === FAQ Accordion === */
.blog-post .faq-accordion details {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.blog-post .faq-accordion details:last-child {
    border-bottom: none;
}

.blog-post .faq-accordion summary {
    font-weight: 600;
    color: #8e0205;
    font-size: 1.05em;
    cursor: pointer;
    padding: 14px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-post .faq-accordion summary::before {
    content: "+";
    font-size: 1.2em;
    font-weight: 700;
    color: #8e0205;
    min-width: 20px;
    transition: transform 0.2s;
}

.blog-post .faq-accordion details[open] summary::before {
    content: "\2212";
}

.blog-post .faq-accordion summary::-webkit-details-marker {
    display: none;
}

.blog-post .faq-accordion details p {
    margin: 0 0 14px 28px;
    color: #4b5563;
    line-height: 1.7;
}

/* === CTA Buttons (new articles) === */
.blog-post .cta-button {
    display: inline-block;
    background: #8e0205;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.2s;
    margin: 12px 0;
}

.blog-post .cta-button:hover {
    background: #6e0104;
    text-decoration: none;
    color: #fff;
}

/* === Customer Reviews === */
.blog-post .customer-review {
    border-left: 3px solid #8e0205;
    padding: 16px 20px;
    margin: 1.2em 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.blog-post .customer-review .review-text {
    font-style: italic;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 8px;
}

.blog-post .customer-review .review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: #6b7280;
}

.blog-post .customer-review .review-meta .stars {
    color: #f59e0b;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Tables: horizontal scroll */
    .blog-post .summary-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-post .summary-table thead th,
    .blog-post .summary-table tbody td {
        padding: 10px 12px;
        font-size: 0.85em;
        white-space: nowrap;
    }

    /* Product cards: tighter */
    .blog-post .product-card {
        padding: 16px;
        margin: 1.2em 0;
    }

    /* Pros/Cons: stack */
    .blog-post .pros-cons {
        grid-template-columns: 1fr;
    }

    /* Verdict box */
    .blog-post .verdict-box {
        padding: 16px;
    }

    /* Key takeaways */
    .blog-post .key-takeaways {
        padding: 16px;
    }

    /* TOC */
    .blog-post .toc {
        padding: 16px;
    }

    /* Trust badges */
    .blog-post .trust-badges {
        gap: 6px;
    }

    .blog-post .trust-badge {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    /* Author bio: stack */
    .blog-post .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Badges */
    .blog-post .badge {
        font-size: 0.72em;
        padding: 3px 10px;
    }

    /* Final verdict */
    .blog-post .final-verdict {
        padding: 20px;
    }

    /* Customer review */
    .blog-post .customer-review {
        padding: 12px 14px;
    }

    /* CTA buttons: full width */
    .blog-post .cta-button {
        display: block;
        text-align: center;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    /* Extra small: relax table nowrap so narrow tables can wrap */
    .blog-post .summary-table thead th,
    .blog-post .summary-table tbody td {
        white-space: normal;
        min-width: 100px;
    }
}
