/* ========================================
   AFFILIATE CARDS — EDITORIAL STYLE
   Sistema de blocos de afiliado estáticos
   ======================================== */

.affiliate-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4CAF50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.affiliate-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ========================================
   HEADER
   ======================================== */

.affiliate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.affiliate-badge {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.affiliate-marketplace {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   BODY
   ======================================== */

.affiliate-card-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    .affiliate-card-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.affiliate-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.affiliate-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.affiliate-title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #1a202c;
    margin: 0;
    font-weight: 600;
}

.affiliate-description {
    font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.affiliate-price {
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
}

.affiliate-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.affiliate-cta:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: white;
}

.affiliate-icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   FOOTER
   ======================================== */

.affiliate-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.affiliate-disclaimer {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #718096;
    margin: 0;
    font-style: italic;
}

/* ========================================
   FALLBACK
   ======================================== */

.affiliate-fallback {
    padding: 1rem;
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.affiliate-fallback a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

.affiliate-fallback a:hover {
    text-decoration: underline;
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
    .affiliate-card {
        padding: 1.25rem;
        margin: 2rem 0;
    }
    
    .affiliate-title {
        font-size: 1.125rem;
    }
    
    .affiliate-price {
        font-size: 1.25rem;
    }
    
    .affiliate-cta {
        width: 100%;
        justify-content: center;
    }
    
    .affiliate-image-wrapper {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ========================================
   MARKETPLACE-SPECIFIC COLORS (OPTIONAL)
   ======================================== */

.affiliate-card[data-marketplace="mercadolivre"] {
    border-left-color: #FFE600;
}

.affiliate-card[data-marketplace="mercadolivre"] .affiliate-badge {
    color: #2D3277;
    background: rgba(255, 230, 0, 0.2);
}

.affiliate-card[data-marketplace="amazon"] {
    border-left-color: #FF9900;
}

.affiliate-card[data-marketplace="amazon"] .affiliate-badge {
    color: #FF9900;
    background: rgba(255, 153, 0, 0.1);
}

.affiliate-card[data-marketplace="shopee"] {
    border-left-color: #EE4D2D;
}

.affiliate-card[data-marketplace="shopee"] .affiliate-badge {
    color: #EE4D2D;
    background: rgba(238, 77, 45, 0.1);
}

.affiliate-card[data-marketplace="magalu"] {
    border-left-color: #0086FF;
}

.affiliate-card[data-marketplace="magalu"] .affiliate-badge {
    color: #0086FF;
    background: rgba(0, 134, 255, 0.1);
}
