/**
 * Frontend styles for BotFlow Blog AI generated posts
 */

/* Main Container Scoping */
.bbai-blog-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.8;
}

/* AI Quick Summary Box */
.bbai-blog-container .bbai-summary-box {
    box-shadow: 0 10px 30px rgba(255, 61, 110, 0.05);
    border-radius: 8px !important;
    border-left: 5px solid #ff3d6e !important;
    padding: 20px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    font-size: 1.05rem;
}
.bbai-blog-container .bbai-summary-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 61, 110, 0.1);
}
.bbai-blog-container .bbai-summary-box strong {
    color: #ff3d6e;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 8px;
}

/* Expert Tip Box */
.bbai-blog-container .bbai-expert-tip-box {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border-radius: 6px !important;
    border-left: 4px solid #ff3d6e !important;
    padding: 16px !important;
    background-color: #fafafa !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    font-size: 0.98rem;
    line-height: 1.6;
}
.bbai-blog-container .bbai-expert-tip-box:hover {
    transform: translateX(4px);
    background-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}
.bbai-blog-container .bbai-expert-tip-box strong {
    color: #ff3d6e;
}

/* CTA Buttons */
.bbai-blog-container .bbai-cta-button {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.bbai-blog-container .bbai-cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.95;
}

/* Product Comparison Table - Container & Table */
.bbai-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.bbai-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    font-size: 15px;
    text-align: left;
    background: #ffffff;
}

.bbai-comparison-table th {
    background-color: #fafbfe;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 18px 24px;
    border-bottom: 2px solid #eaeaea;
}

.bbai-comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #444444;
    vertical-align: middle;
    line-height: 1.6;
}

.bbai-comparison-table tr:last-child td {
    border-bottom: none;
}

.bbai-comparison-table tr:hover {
    background-color: #fafbfc;
}

.bbai-comparison-table tr:nth-child(even) {
    background-color: #fcfdfe;
}

.bbai-comparison-table tr:nth-child(even):hover {
    background-color: #fafbfc;
}

/* Product Images hover interaction */
.bbai-blog-container .bbai-product-image img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
}
.bbai-blog-container .bbai-product-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    /* Main container adjustments */
    .bbai-blog-container {
        padding: 0 5px !important;
        font-size: 16px !important;
    }

    /* Summary boxes padding adjustments - override inline styles */
    .bbai-blog-container .bbai-summary-box {
        padding: 16px !important;
        margin: 15px 0 !important;
        border-radius: 6px !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    /* Expert tip padding adjustments - override inline styles */
    .bbai-blog-container .bbai-expert-tip-box {
        padding: 14px !important;
        margin: 12px 0 !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* CTA button adjustments for mobile */
    .bbai-blog-container .bbai-cta-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Product images responsive */
    .bbai-blog-container .bbai-product-image img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    /* Headings responsive sizing */
    .bbai-blog-container h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin: 25px 0 15px !important;
    }

    .bbai-blog-container h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin: 20px 0 10px !important;
    }

    /* Paragraph adjustments */
    .bbai-blog-container p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    /* Convert table to cards layout for visual clarity and accessibility on mobile */
    .bbai-table-container {
        box-shadow: none !important;
        border: none !important;
        margin: 20px 0 !important;
        overflow-x: visible !important;
    }

    .bbai-comparison-table,
    .bbai-comparison-table thead,
    .bbai-comparison-table tbody,
    .bbai-comparison-table th,
    .bbai-comparison-table td,
    .bbai-comparison-table tr {
        display: block !important;
        width: 100% !important;
    }

    .bbai-comparison-table thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .bbai-comparison-table tr {
        margin-bottom: 25px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 20px 16px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03) !important;
    }
    
    .bbai-comparison-table tr:nth-child(even) {
        background-color: #fbfcfe !important;
    }

    .bbai-comparison-table td {
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 12px 4px !important;
        position: relative !important;
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .bbai-comparison-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .bbai-comparison-table td:first-child {
        padding-top: 0 !important;
    }

    /* Column titles dynamically generated by data-label attribute */
    .bbai-comparison-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        color: #ff3d6e !important;
        letter-spacing: 0.08em;
        margin-bottom: 6px;
        line-height: 1;
    }

    /* List adjustments */
    .bbai-blog-container ul,
    .bbai-blog-container ol {
        padding-left: 20px !important;
        margin-bottom: 15px !important;
    }

    .bbai-blog-container li {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 8px !important;
    }
}

/* Extra small devices (phones, less than 480px) */
@media screen and (max-width: 480px) {
    .bbai-blog-container {
        padding: 0 !important;
        font-size: 15px !important;
    }

    .bbai-blog-container .bbai-summary-box {
        padding: 14px !important;
        margin: 12px 0 !important;
        font-size: 14px !important;
    }
    
    .bbai-blog-container .bbai-expert-tip-box {
        padding: 12px !important;
        margin: 10px 0 !important;
        font-size: 13px !important;
    }

    .bbai-blog-container h2 {
        font-size: 20px !important;
    }

    .bbai-blog-container h3 {
        font-size: 17px !important;
    }

    .bbai-blog-container p {
        font-size: 15px !important;
    }

    .bbai-comparison-table tr {
        padding: 16px 12px !important;
        margin-bottom: 20px !important;
    }

    .bbai-comparison-table td {
        font-size: 13px !important;
        padding: 10px 2px !important;
    }
}
