/**
 * Best Amazon Content Generator - Article Styles
 * 
 * Styles for generated buyer guide content on the frontend.
 */

:root {
    --bacg-primary: #FF9900;
    --bacg-primary-dark: #E88B00;
    --bacg-text: #232f3e;
    --bacg-text-light: #565959;
    --bacg-bg: #f7f7f7;
    --bacg-border: #ddd;
    --bacg-success: #007600;
    --bacg-white: #fff;
    --bp-number-bg: #f2f2f2;
    --bp-number-text: #ddd;
}

/* Intro Section */
.bacg-intro {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Top Picks Summary */
.bacg-top-picks-summary {
    background: #fffafa;
    /* Light warm background from screenshot */
    border: 1px solid var(--bacg-border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.bacg-top-picks-summary h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--bacg-text);
}

.bacg-top-picks-summary ol {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.bacg-top-picks-summary li {
    padding: 0.5rem 0;
    line-height: 1.6;
    font-size: 1.05rem;
}

.bacg-top-picks-summary .read-more {
    color: var(--bacg-text-light);
    text-decoration: none;
    font-style: italic;
    font-size: 0.9rem;
}

.bacg-top-picks-summary .read-more:hover {
    text-decoration: underline;
}

/* BP Product Block (New) */
.bp-product-block {
    position: relative;
    background: var(--bacg-white);
    border: 1px solid var(--bacg-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bp-number {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 6rem;
    font-weight: 700;
    color: var(--bp-number-bg);
    /* Faded number background */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.bp-layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr 180px;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.bp-image-col {
    text-align: center;
    padding-top: 1rem;
}

.bp-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* transition: transform 0.2s; */
}

/* .bp-main-image:hover { transform: scale(1.02); } */

.bp-content-col h2.bp-title {
    margin-top: 0;
    margin-bottom: 0.2rem;
    font-size: 1.6rem;
    color: #111;
}

.bp-brand {
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.bp-highlights {
    margin: 1rem 0;
}

.bp-highlights h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bp-highlights ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.bp-highlights li {
    margin-bottom: 0.3rem;
    color: #333;
}

.product-content h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.product-content ul {
    margin-top: 0;
}

/* Pros and Cons */
.product-content h3:contains("Pros"),
/* Fallback selector if text matches */
.product-content h3:nth-of-type(2) {
    /* Assuming order */
    /* color: var(--bacg-success); */
}

.bp-rating-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

.bp-amazon-logo {
    width: 80px;
    height: 24px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg') no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.bp-cta-button {
    background: #007185;
    /* Amazon Blue */
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: background 0.2s;
}

.bp-cta-button:hover {
    background: #005a6a;
}

/* Comparison Table */
.bacg-comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.bacg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid #eee;
}

.bacg-table th {
    background: #fdfdfd;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

.bacg-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.bacg-table tr:last-child td {
    border-bottom: none;
}

.bacg-table .cta-button {
    background: #007185;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

/* FAQs - Fix Spacing */
.bacg-faqs h3 {
    margin-bottom: 0.2rem;
    /* Reduced from default */
    font-size: 1.2rem;
    text-transform: none;
    /* Prevent initial caps from theme */
}

.bacg-faqs p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Verdict */
.bacg-verdict {
    background: var(--bacg-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

/* Highlights Toggle Removed */

/* Responsive */
@media (max-width: 900px) {
    .bp-layout-grid {
        grid-template-columns: 1fr;
    }

    .bp-image-col {
        order: -1;
    }

    .bp-rating-col {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        margin-top: 1rem;
    }
}