/* ==========================================================
   Affiliate banner - Theme Overrides
  ========================================================== */

/* Θεματικό προφίλ για Sponsor Proteinstar */
.aff-ad-banner--proteinstar {
  --aff-accent-color: #ffee03;
  --aff-btn-bg: #d32f2f;
  --aff-btn-hover: #b71c1c;
  --aff-bullet-color: #ffee03;
  --aff-bg: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 100%), 
            url('assets/proteinstar/bg-ps.jpg') center right / cover no-repeat;
  
  --logo-max-w: 300px; 
}

/* Θεματικό προφίλ για Sponsor Ekdromi */
.aff-ad-banner--ekdromi {
  --aff-accent-color: #96c83a;
  --aff-btn-bg: #dd2186;
  --aff-btn-hover: #ae0962;
  --aff-bullet-color: #96c83a;
  --aff-bg: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 100%), 
            url('assets/ekdromi/bg-ekdromi.jpg') center right / cover no-repeat;
  
  --logo-max-w: 300px; 
}


/* ---------- Dual Banners Layout Only ---------- */

.dual-ad-wrap {
  width: 100%;
  margin: 2rem auto;
}

.dual-ad-wrap .aff-dual-banners {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
}

.dual-ad-wrap .aff-banner-card {
  width: 300px !important;
  height: 250px !important;
  min-width: 300px !important;
  min-height: 250px !important;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e4e4e7;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.dual-ad-wrap .aff-banner-card iframe {
  width: 300px !important;
  height: 250px !important;
  border: none !important;
  display: block !important;
}

/* Responsive */
@media (max-width: 680px) {
  .dual-ad-wrap .aff-dual-banners {
    flex-direction: column !important;
    gap: 16px !important;
  }
}

/* ==========================================================
   Base Structure
  ========================================================== */

.aff-ad-wrap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.aff-ad-banner {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 32px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: var(--aff-bg);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aff-ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.aff-ad-title {
  margin: 0;
  font-size: clamp(1.35rem, 0.8rem + 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}

.aff-ad-title span {
  font-style: italic;
  color: var(--aff-accent-color);
}

/* Flex layout για το σώμα του banner */
.aff-ad-body {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

/* Οπτική περιοχή (Logos & Προϊόντα) */
.aff-ad-media {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  flex-shrink: 0; 
}

/* ΜΕΓΑΛΑ LOGOS */
.aff-ad-logo {
  width: auto;
  max-width: var(--logo-max-w, 180px);
  height: auto;
  max-height: clamp(75px, 8vw, 110px); 
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

/* ΜΕΓΑΛΑ ΠΡΟΪΟΝΤΑ */
.aff-ad-products {
  width: auto;
  max-width: clamp(160px, 25vw, 260px);
  height: clamp(90px, 12vw, 140px);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

/* Περιοχή CTA & Features */
.aff-ad-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.aff-ad-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.aff-ad-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.95rem, 0.75rem + 1vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.aff-ad-features li::before {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--aff-bullet-color);
  box-shadow: 0 0 8px var(--aff-bullet-color);
}

.aff-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 24px;
  margin-top: 4px;
  border-radius: 6px;
  background-color: var(--aff-btn-bg);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.aff-ad-banner:hover .aff-ad-btn {
  background-color: var(--aff-btn-hover);
  transform: scale(1.02);
}
.aff-ad-wrap .aff-banner-card {
  background-color: #f4f4f5; 
}

.aff-banner-card {
  position: relative !important;
  background-color: #f4f4f5 !important;
}

.aff-banner-card {
  position: relative;
  overflow: hidden;
}

.aff-banner-card::before {
  content: "Το calcme.gr παραμένει δωρεάν χάρη στις διαφημίσεις. Αν σας αρέσει η εφαρμογή, υποστηρίξτε μας απενεργοποιώντας το AdBlocker! ❤️";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  font-size: 0.825rem;
  color: #52525b;
  line-height: 1.4;
  font-weight: 500;
  z-index: 1;
}

.aff-banner-card iframe,
.aff-banner-card a,
.aff-banner-card img {
  position: relative;
  z-index: 2;
  display: block;
}

.aff-banner-card a,
.aff-banner-card img,
.aff-banner-card iframe {
  position: relative;
  z-index: 2;
  display: block;
  cursor: pointer;
}

/* ==========================================================
   MOBILE VIEW (max-width: 640px)
  ========================================================== */
@media (max-width: 640px) {

  .aff-ad-banner {
    padding: 20px 16px;
  }

  .aff-ad-body {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .aff-ad-title {
    text-align: center;
    padding-top: 10px; /* Χώρος κάτω από το Sponsor badge */
  }

  /* Στο Mobile τα media μπαίνουν σε δική τους σειρά και είναι ΜΕΓΑΛΑ */
  .aff-ad-media {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 26px; 
  }

  .aff-ad-logo {
    max-width: clamp(220px, 75vw, 320px); 
    max-height: 110px;                  
    object-position: center;
    margin: 20px 0;
  }

  .aff-ad-products {
    max-width: clamp(200px, 70vw, 280px); /* Μεγαλύτερο πλάτος */
    height: auto;
    max-height: 150px;                  /* Αυξημένο ύψος για να φαίνονται επιβλητικά */
  }

  .aff-ad-cta {
    align-items: center;
    width: 100%;
  }

  .aff-ad-features {
    align-items: flex-start;
  }

  .aff-ad-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 8px;
  }
}