/* APRG Best Article Styles */
.aprg-product-image {
    display: block;
    margin: 30px auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.aprg-button-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

/* Vertical Bar for Product Headings (Matching Reference Image) */
h2[data-aprg-injected="true"] {
    border-left: 6px solid #008080; /* Teal/Green bar */
    padding-left: 18px;
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    color: #1a202c;
}

/* =========================================
   Product Summary Card (New Design)
   ========================================= */
.aprg-product-card {
    display: flex;
    flex-direction: row;
    gap: 24px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.aprg-card-image {
    flex: 0 0 200px;
    max-width: 200px;
}

.aprg-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.aprg-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aprg-card-title {
    font-size: 1.25em;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.4;
    display: block;
}

.aprg-card-title:hover {
    color: #7f52ff;
}

.aprg-card-score {
    font-size: 1.1em;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aprg-card-score span {
    color: #8a2be2; /* Purple Score */
    font-weight: 800;
    font-size: 1.2em;
}

/* Updated Amazon Button (Purple to match reference) */
.aprg-btn-amazon {
    display: inline-block;
    background-color: #7f52ff; /* Purple */
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 10px; /* Rounded corners */
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
    border: none;
    box-shadow: 0 4px 12px rgba(127, 82, 255, 0.2);
}

.aprg-btn-amazon:hover {
    background-color: #6938ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(127, 82, 255, 0.3);
    color: #fff !important;
}

/* =========================================
   Pros & Cons Table Styling
   ========================================= */
table.aprg-pros-cons-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    table-layout: fixed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

table.aprg-pros-cons-table th,
table.aprg-pros-cons-table td {
    padding: 20px;
    vertical-align: top;
    border: 1px solid #e0e0e0;
}

table.aprg-pros-cons-table th {
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 50%;
}

/* Green Header for Pros */
table.aprg-pros-cons-table th:first-child {
    background-color: #e8f5e9; /* Light Green */
    color: #2e7d32;
    border-bottom: 3px solid #66bb6a;
}

/* Red Header for Cons */
table.aprg-pros-cons-table th:last-child {
    background-color: #ffebee; /* Light Red */
    color: #c62828;
    border-bottom: 3px solid #ef5350;
}

table.aprg-pros-cons-table td ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

table.aprg-pros-cons-table td li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Verdict box style */
.aprg-verdict {
    margin-top: 20px;
    font-size: 1.05em;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #7f52ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .aprg-product-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .aprg-card-image {
        flex: 0 0 auto;
        margin-bottom: 16px;
    }

    .aprg-card-content {
        width: 100%;
        align-items: center;
    }

    .aprg-btn-amazon {
        width: 100%;
        max-width: 250px;
    }

    table.aprg-pros-cons-table,
    table.aprg-pros-cons-table tbody,
    table.aprg-pros-cons-table tr,
    table.aprg-pros-cons-table th,
    table.aprg-pros-cons-table td {
        display: block;
        width: 100%;
    }

    table.aprg-pros-cons-table tr {
        margin-bottom: 20px;
    }
    
    table.aprg-pros-cons-table th {
        border-bottom-width: 2px;
    }
}