/* =============================================
   AMAZON AFFILIATE PRO — FRONTEND STYLES
   ============================================= */

/* ---- PRODUCT BOX ---- */
.aap-product-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 680px;
    margin: 24px auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
}
.aap-product-inner {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.aap-layout-wide .aap-product-inner { flex-direction: column; }
.aap-layout-minimal .aap-product-inner { padding: 12px; gap: 12px; }

/* BADGE */
.aap-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF9900;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 1;
}

/* IMAGE */
.aap-product-image {
    flex: 0 0 180px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.aap-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* IMAGE SLIDER */
.aap-image-slider { position: relative; }
.aap-image-slider .aap-slide { display: none; }
.aap-image-slider .aap-slide.active { display: block; }
.aap-slider-prev, .aap-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
}
.aap-slider-prev { left: 4px; }
.aap-slider-next { right: 4px; }

/* DETAILS */
.aap-product-details { flex: 1; min-width: 0; }
.aap-product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}
.aap-product-title a { color: #0073aa; text-decoration: none; }
.aap-product-title a:hover { text-decoration: underline; }
.aap-product-brand { font-size: 13px; color: #666; margin: 0 0 6px; }

/* STARS */
.aap-stars { color: #FF9900; font-size: 16px; letter-spacing: 1px; }
.aap-star.empty { color: #ddd; }
.aap-star.half { color: #FF9900; opacity: .5; }
.aap-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
}

/* PRICE */
.aap-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
}
.aap-price {
    font-size: 22px;
    font-weight: 700;
    color: #B12704;
}

/* PRIME BADGE */
.aap-prime-badge {
    background: #232F3E;
    color: #00A8E1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: .5px;
}

/* AVAILABILITY */
.aap-availability { font-size: 13px; color: #067D62; margin: 0 0 10px; }

/* FEATURES */
.aap-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 13px;
    color: #444;
}
.aap-features li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.5;
}
.aap-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #067D62;
    font-weight: 700;
}

/* BUTTONS */
.aap-button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    border: none;
}
.aap-button:active { transform: scale(.98); }
.aap-button-primary, .aap-button-orange {
    background: #FF9900;
    color: #fff;
}
.aap-button-primary:hover { filter: brightness(1.1); }
.aap-button-blue  { background: #0073aa; color: #fff; }
.aap-button-green { background: #067D62; color: #fff; }
.aap-button-black { background: #232F3E; color: #fff; }
.aap-button-blue:hover, .aap-button-green:hover, .aap-button-black:hover {
    filter: brightness(1.15);
}

/* DISCLOSURE */
.aap-disclosure {
    font-size: 11px;
    color: #999;
    margin: 8px 0 0;
    font-style: italic;
}

/* ---- COMPARISON TABLE ---- */
.aap-comparison-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.aap-comparison-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
}
.aap-comparison-table { display: table; width: 100%; border-collapse: collapse; }
.aap-compare-row { display: table-row; }
.aap-compare-row:nth-child(even) { background: #f9f9f9; }
.aap-compare-label, .aap-compare-cell {
    display: table-cell;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}
.aap-compare-label {
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    background: #f5f5f5;
    min-width: 120px;
}
.aap-compare-images img { max-width: 100px; height: auto; border-radius: 4px; }
.aap-compare-title { font-size: 12px; margin: 6px 0 0; line-height: 1.3; }

/* ---- PROS / CONS ---- */
.aap-pros-cons-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    max-width: 680px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
}
.aap-product-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.aap-product-mini img { width: 70px; height: auto; border-radius: 4px; }
.aap-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 480px) { .aap-pros-cons-grid { grid-template-columns: 1fr; } }
.aap-pros h4 { color: #067D62; margin: 0 0 8px; }
.aap-cons h4 { color: #c0392b; margin: 0 0 8px; }
.aap-pros ul, .aap-cons ul {
    margin: 0; padding: 0; list-style: none;
}
.aap-pros ul li { padding-left: 18px; position: relative; margin-bottom: 6px; font-size: 13px; }
.aap-pros ul li::before { content: "✅"; position: absolute; left: 0; font-size: 11px; top: 1px; }
.aap-cons ul li { padding-left: 18px; position: relative; margin-bottom: 6px; font-size: 13px; }
.aap-cons ul li::before { content: "❌"; position: absolute; left: 0; font-size: 11px; top: 1px; }
.aap-verdict {
    text-align: center;
    margin: 12px 0;
    font-size: 16px;
    font-weight: 700;
}
.aap-verdict-score {
    display: inline-block;
    background: #FF9900;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-left: 6px;
}

/* ---- TOP PRODUCTS ---- */
.aap-top-products {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.aap-top-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.aap-top-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}
.aap-top-rank {
    font-size: 24px;
    font-weight: 800;
    color: #FF9900;
    min-width: 40px;
    text-align: center;
}
.aap-top-image img { width: 70px; height: auto; border-radius: 4px; }
.aap-top-info { flex: 1; }
.aap-top-info h4 { margin: 0 0 6px; font-size: 14px; }
.aap-top-info h4 a { color: #0073aa; text-decoration: none; }
.aap-top-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aap-top-cta { flex: 0 0 auto; }

/* TEXT LINK */
.aap-text-link {
    color: #0073aa;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .aap-product-inner { flex-direction: column; }
    .aap-product-image { flex: none; width: 100%; text-align: center; }
    .aap-top-item { flex-wrap: wrap; }
    .aap-top-cta { width: 100%; }
    .aap-top-cta .aap-button { width: 100%; text-align: center; }
}