/* =======================================
   1. SWIPER VE KART ANA İSKELETİ
   ======================================= */
.aff-swipe-container {
    width: 100%;
    max-width: 420px; /* Görsel çok yer kaplamasın diye hafif daraltıldı */
    height: 85vh; 
    min-height: 650px; /* Butonlara garanti yer açmak için artırıldı */
    max-height: 800px;
    margin: 20px auto;
    overflow: hidden; 
}

.swiper-slide {
    height: 100% !important; 
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important; 
    background: transparent !important;
    padding: 10px;
    box-sizing: border-box;
}

.aff-swipe-card {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important; /* Kartın yüksekliğini sabitler */
    max-height: 100% !important;
}

/* =======================================
   2. MEDYA ALANI (KARE FORMAT)
   ======================================= */
.aff-media-container {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; 
    background: #f0f0f0 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important; 
}

.aff-media-container video, 
.aff-media-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    position: static !important; 
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* =======================================
   3. İÇERİK VE SABİT BUTONLAR ALANI
   ======================================= */
.aff-content-section {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important; /* Kalan tüm boşluğu doldurur */
    padding: 15px !important; /* Boşluklar optimize edildi */
    background: #fff !important;
    overflow: hidden !important; /* Ana kaydırmayı kilitler */
}

/* Sadece metin uzunsa bu kısım kendi içinde kayar */
.aff-slide-info {
    flex-grow: 1 !important; 
    overflow-y: auto !important; 
    margin-bottom: 12px !important;
    padding-right: 5px !important;
}

/* Kaydırma çubuğunu şıklaştırma (İnce ve zarif) */
.aff-slide-info::-webkit-scrollbar { width: 4px; }
.aff-slide-info::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.aff-slide-info h4 {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    color: #111 !important;
    font-weight: bold !important;
    text-align: left !important;
}

.aff-slide-info p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* Butonları saran yapıyı büzülmekten koru ve alta sabitle */
.aff-actions-wrapper {
    flex-shrink: 0 !important; 
}

/* İndir Butonu */
.aff-download-btn {
    width: 100% !important;
    padding: 12px !important; /* Yükseklik hafif kısıldı */
    background: #2271b1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 0.3s !important;
    margin-bottom: 0 !important;
}

.aff-download-btn:hover {
    background: #135e96 !important;
}

/* Sosyal Medya İkonları */
.aff-social-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.aff-social-buttons.locked {
    opacity: 0.3 !important;
    pointer-events: none !important;
    filter: grayscale(100%) !important;
}

.aff-social-buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important; /* İkonlar daha zarif yapıldı */
    height: 38px !important;
    border-radius: 50% !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    position: static !important;
    margin: 0 !important; 
    padding: 0 !important; 
    box-sizing: border-box !important;
}

.aff-social-buttons a:hover { transform: translateY(-3px) !important; }
.aff-social-buttons a.whatsapp:hover { background-color: #25D366 !important; color: #fff !important; }
.aff-social-buttons a.facebook:hover { background-color: #1877F2 !important; color: #fff !important; }
.aff-social-buttons a.twitter:hover { background-color: #000 !important; color: #fff !important; }
.aff-social-buttons a.telegram:hover { background-color: #0088cc !important; color: #fff !important; }
.aff-social-buttons a.pinterest:hover { background-color: #E60023 !important; color: #fff !important; }
.aff-social-buttons a.linkedin:hover { background-color: #0A66C2 !important; color: #fff !important; }

.aff-social-buttons a svg { 
    width: 18px !important; 
    height: 18px !important; 
    display: block !important;
    margin: 0 !important;
}