/* =====================================================
   Amazon Affiliates Pro — Frontend Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Color Schemes ---- */
.aap-wrap.aap-scheme-amazon-orange { --aap-c-bg:#FF9900; --aap-c-text:#232F3E; --aap-c-btn-bg:#232F3E; --aap-c-btn-text:#fff; --aap-c-accent:#fff8ec; }
.aap-wrap.aap-scheme-dark          { --aap-c-bg:#232F3E; --aap-c-text:#ffffff; --aap-c-btn-bg:#FF9900; --aap-c-btn-text:#232F3E; --aap-c-accent:#2d3e50; }
.aap-wrap.aap-scheme-blue          { --aap-c-bg:#146EB4; --aap-c-text:#ffffff; --aap-c-btn-bg:#fff;    --aap-c-btn-text:#146EB4; --aap-c-accent:#1a7fc9; }
.aap-wrap.aap-scheme-green         { --aap-c-bg:#2E7D32; --aap-c-text:#ffffff; --aap-c-btn-bg:#fff;    --aap-c-btn-text:#2E7D32; --aap-c-accent:#388E3C; }
.aap-wrap.aap-scheme-custom        { --aap-c-bg:var(--aap-custom-bg,#FF9900); --aap-c-text:var(--aap-custom-text,#fff); --aap-c-btn-bg:rgba(0,0,0,.25); --aap-c-btn-text:#fff; --aap-c-accent:rgba(255,255,255,.08); }

/* ---- Base Wrap ---- */
.aap-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--aap-c-bg);
    color: var(--aap-c-text);
    border-radius: 14px;
    margin: 28px 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    position: relative;
}
.aap-inner { padding: 20px 22px; }

/* ---- Shared Button ---- */
.aap-btn {
    display: inline-block;
    background: var(--aap-c-btn-bg);
    color: var(--aap-c-btn-text) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
    font-family: inherit;
    border: none;
    cursor: pointer;
}
.aap-btn:hover { opacity: .88; transform: translateY(-1px); }
.aap-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---- Badge ---- */
.aap-wrap .aap-badge {
    background: rgba(255,255,255,.25);
    color: var(--aap-c-text);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.aap-scheme-amazon-orange .aap-badge { background: #fff; color: #FF9900; }

/* ---- Disclosure ---- */
.aap-disclosure {
    font-size: 10px;
    opacity: .55;
    margin-top: 12px;
    text-align: center;
    letter-spacing: .01em;
}

/* ======================================================
   STYLE: CARD
   ====================================================== */
.aap-style-card .aap-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.aap-card-item {
    flex: 1;
    min-width: 160px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    position: relative;
    transition: transform .15s;
}
.aap-card-item:hover { transform: translateY(-2px); }
.aap-card-icon { font-size: 32px; line-height: 1; }
.aap-card-title { font-size: 15px; font-weight: 800; margin: 0; }
.aap-card-desc  { font-size: 12px; opacity: .8; margin: 0; line-height: 1.4; flex: 1; }

/* ======================================================
   STYLE: BANNER STRIP
   ====================================================== */
.aap-banner-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.aap-banner-left { display: flex; align-items: center; gap: 14px; }
.aap-banner-icon { font-size: 38px; line-height: 1; flex-shrink: 0; }
.aap-banner-text { display: flex; flex-direction: column; gap: 3px; }
.aap-banner-text strong { font-size: 18px; font-weight: 800; }
.aap-banner-text span   { font-size: 13px; opacity: .8; }

/* ======================================================
   STYLE: CAROUSEL
   ====================================================== */
.aap-carousel { position: relative; overflow: hidden; }
.aap-carousel-track { position: relative; min-height: 140px; }
.aap-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 0;
    gap: 8px;
    animation: aapFadeIn .3s ease;
}
.aap-slide.aap-slide-active { display: flex; }
.aap-slide-icon { font-size: 36px; }
.aap-slide h3   { font-size: 18px; font-weight: 800; margin: 0; }
.aap-slide p    { font-size: 13px; opacity: .8; margin: 0; }
.aap-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.aap-carousel-prev,
.aap-carousel-next { background: rgba(255,255,255,.2); border: none; color: inherit; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; padding: 0; line-height: 1; }
.aap-carousel-prev:hover,
.aap-carousel-next:hover { background: rgba(255,255,255,.35); }
.aap-carousel-dots { display: flex; gap: 6px; }
.aap-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .15s; cursor: pointer; }
.aap-dot-active { background: var(--aap-c-btn-bg); }

@keyframes aapFadeIn { from { opacity:0; transform:translateX(10px) } to { opacity:1; transform:none } }

/* ======================================================
   STYLE: GRID
   ====================================================== */
.aap-grid-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.aap-grid-item {
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    position: relative;
}
.aap-grid-icon   { font-size: 26px; }
.aap-grid-item strong { font-size: 13px; font-weight: 800; }
.aap-grid-item p      { font-size: 11px; opacity: .8; margin: 0; flex: 1; line-height: 1.3; }

/* ======================================================
   STYLE: INLINE
   ====================================================== */
.aap-inline-wrap { display: flex; flex-direction: column; gap: 10px; }
.aap-inline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,.12);
    padding: 10px 14px;
    border-radius: 8px;
    flex-wrap: wrap;
}
.aap-inline-item > span { font-size: 14px; }

/* ======================================================
   STICKY BAR
   ====================================================== */
.aap-sticky-bar {
    position: fixed;
    left: 0; right: 0;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.18);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.aap-sticky-top    { top: 0; box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.aap-sticky-bottom { bottom: 0; }
.aap-sticky-inner  {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.aap-sticky-icon { font-size: 26px; flex-shrink: 0; }
.aap-sticky-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.aap-sticky-text strong { font-size: 15px; font-weight: 800; }
.aap-sticky-text span   { font-size: 12px; opacity: .8; }
.aap-sticky-close {
    background: rgba(255,255,255,.2); border: none; color: inherit;
    width: 28px; height: 28px; border-radius: 50%; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.aap-sticky-close:hover { background: rgba(255,255,255,.35); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 600px) {
    .aap-cards { flex-direction: column; }
    .aap-banner-strip { flex-direction: column; align-items: flex-start; }
    .aap-grid-wrap { grid-template-columns: 1fr 1fr; }
    .aap-sticky-inner { flex-wrap: wrap; }
}
