/* ==============================================
   Flavor Affiliate Engine — Native Ad Widgets
   RevContent/MGID/Taboola Style
   ============================================== */

/* Reset */
.fae-widget { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; box-sizing: border-box; direction: ltr !important; text-align: left !important; unicode-bidi: embed; margin: 32px 0; }
.fae-widget *, .fae-widget *::before, .fae-widget *::after { box-sizing: border-box; }
.fae-widget a { text-decoration: none; color: inherit; }
.fae-widget img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NATIVE AD GRID — "Content you may like"
   ============================================= */
.fae-native-grid {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}
.fae-native-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.fae-native-header-text {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.fae-native-header-badge {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fae-native-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.fae-native-card {
    position: relative;
    border-left: 1px solid #eee;
    transition: background 0.15s;
}
.fae-native-card:first-child { border-left: none; }
.fae-native-card:hover { background: #f8f8f8; }
.fae-native-link { display: block; }
.fae-native-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.fae-native-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.fae-native-card:hover .fae-native-image { transform: scale(1.05); }
.fae-native-content {
    padding: 12px 14px 16px;
}
.fae-native-headline {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fae-native-card:hover .fae-native-headline { color: #0066cc; }
.fae-native-sponsor {
    position: absolute;
    bottom: 8px;
    left: 14px;
    font-size: 10px;
    color: #aaa;
    letter-spacing: 0.3px;
}

/* =============================================
   HERO BANNER — Full-width atmospheric
   ============================================= */
.fae-hero-banner { border-radius: 6px; overflow: hidden; }
.fae-hero-link { display: block; }
.fae-hero-image-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
}
.fae-hero-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.fae-hero-banner:hover .fae-hero-image { transform: scale(1.03); }
.fae-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.fae-hero-content {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 28px 24px;
    color: #333;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
}
.fae-hero-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f0f0f0;
    color: #666;
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.fae-hero-headline {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
    text-shadow: none;
}
.fae-hero-desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0 0 14px;
    max-width: 600px;
}
.fae-hero-cta {
    display: inline-block;
    background: #ff6b00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 4px;
    transition: background 0.15s;
}
.fae-hero-banner:hover .fae-hero-cta { background: #e55d00; }

/* =============================================
   SIDEBAR WIDGET — Pinterest stack
   ============================================= */
.fae-side-widget {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}
.fae-side-header {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: #fff;
    text-align: center;
}
.fae-side-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background 0.15s;
    align-items: center;
}
.fae-side-item:last-child { border-bottom: none; }
.fae-side-item:hover { background: #fafafa; }
.fae-side-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.fae-side-info { flex: 1; min-width: 0; }
.fae-side-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 4px;
}
.fae-side-item:hover .fae-side-title { color: #0066cc; }
.fae-side-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}
.fae-side-badge {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 9px;
    color: #bbb;
}

/* =============================================
   ANIMATION
   ============================================= */
.fae-widget {
    opacity: 0;
    transform: translateY(16px);
    animation: faeSlideIn 0.5s ease 0.1s forwards;
}
@keyframes faeSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
    .fae-native-cards { grid-template-columns: 1fr; }
    .fae-native-card { border-left: none; border-bottom: 1px solid #eee; }
    .fae-native-card:last-child { border-bottom: none; }
    .fae-native-image-wrap { padding-top: 52%; }
    .fae-hero-headline { font-size: 18px; }
    .fae-hero-image, .fae-hero-image-wrap { min-height: 200px; }
    .fae-hero-content { padding: 20px 16px; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .fae-native-cards { grid-template-columns: repeat(2, 1fr); }
}
