/* ============================================================
   Amazon Affiliate Auto Writer v4 — Post Styles
   ============================================================ */

/* INTRO BOX */
.aaaw-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #fff8ee 0%, #fff3e0 100%);
    border: 1px solid #ffc56a;
    border-left: 5px solid #ff9900;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 36px;
}
.aaaw-intro-icon { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.aaaw-intro-text p { margin: 0; font-size: 16px; line-height: 1.7; color: #333; font-weight: 500; }

/* SECTION TITLES */
.aaaw-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff9900;
    display: inline-block;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.aaaw-table-wrap {
    overflow-x: auto;
    margin-bottom: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.aaaw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
.aaaw-table thead tr {
    background: #232f3e;
    color: #fff;
}
.aaaw-table th {
    padding: 13px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.aaaw-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.aaaw-table tbody tr:last-child { border-bottom: none; }
.aaaw-table tbody tr:hover { background: #fffbf2; }

.aaaw-td-num {
    font-weight: 800;
    color: #bbb;
    font-size: 15px;
    padding: 10px 14px;
    text-align: center;
}
.aaaw-td-img {
    padding: 6px 10px;
    width: 62px;
}
.aaaw-td-img img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    background: #f7f7f7;
}
.aaaw-td-title {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}
.aaaw-table td:last-child { padding: 8px 14px; }

/* Check Price buttons */
.aaaw-btn-small {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.aaaw-btn-small:hover { background: #e68a00; color: #fff !important; }

/* ============================================================
   PRODUCT BOXES
   ============================================================ */
.aaaw-products {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 44px;
}

.aaaw-product-box {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.aaaw-product-box:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.aaaw-product-box:first-child {
    border-color: #ff9900;
    border-width: 2px;
}

/* Number badge */
.aaaw-product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #232f3e;
    color: #ff9900;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Editor's pick label */
.aaaw-best-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff9900;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 0 12px 0 10px;
    letter-spacing: 0.3px;
    z-index: 3;
}

.aaaw-product-inner { display: flex; }

/* Product image panel */
.aaaw-product-image {
    width: 260px;
    min-width: 240px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    border-right: 1px solid #f0f0f0;
}
.aaaw-product-image img {
    width: 100%;
    max-width: 200px;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.25s;
}
.aaaw-product-image:hover img { transform: scale(1.07); }

/* Product info panel */
.aaaw-product-info {
    flex: 1;
    padding: 22px 26px 22px 22px;
    display: flex;
    flex-direction: column;
}

.aaaw-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.45;
}

.aaaw-features-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
}

.aaaw-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex: 1;
}
.aaaw-features li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px solid #f5f5f5;
}
.aaaw-features li:last-child { border-bottom: none; }
.aaaw-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: #ff9900;
    font-weight: 900;
    font-size: 14px;
}

/* CTA Button */
.aaaw-check-price-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900 0%, #ff7a00 100%);
    color: #fff !important;
    padding: 13px 28px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.35);
    transition: all 0.2s;
    letter-spacing: 0.2px;
}
.aaaw-check-price-btn:hover {
    background: linear-gradient(135deg, #e68a00 0%, #cc6600 100%);
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(255, 153, 0, 0.45);
    transform: translateY(-1px);
}

/* Disclaimer */
.aaaw-disclaimer {
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: slightly reduce image panel */
@media (max-width: 768px) {
    .aaaw-product-image {
        width: 220px;
        min-width: 200px;
        padding: 24px 18px;
    }
    .aaaw-product-image img {
        max-width: 170px;
        max-height: 200px;
    }
}

/* Mobile: stack vertically, BIG image on top */
@media (max-width: 600px) {
    .aaaw-intro { flex-direction: column; gap: 8px; }
    .aaaw-section-title { font-size: 18px; }

    /* Stack image on top, text below */
    .aaaw-product-inner { flex-direction: column; }

    .aaaw-product-image {
        width: 100%;
        min-width: 100%;
        height: 240px;          /* Fixed tall image panel */
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        background: linear-gradient(135deg, #f2f2f2 0%, #e8e8e8 100%);
    }
    .aaaw-product-image img {
        width: auto;
        max-width: 100%;
        max-height: 200px;      /* Bigger image on mobile */
        object-fit: contain;
    }

    .aaaw-product-info { padding: 18px 16px 22px; }
    .aaaw-product-title { font-size: 15px; }
    .aaaw-check-price-btn { width: 100%; text-align: center; display: block; font-size: 16px; padding: 14px; }

    /* Table scroll on mobile */
    .aaaw-table-wrap { border-radius: 6px; }
    .aaaw-td-title { font-size: 13px; }
}
