/*!
 * affiliate.css -http://kodester.com/
 * Version - 2.5.0
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2026 Kasanova
 */

/* ===== HERO BANNER ===== */
.aff-hero {
  position: relative;
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aff-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.aff-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aff-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.aff-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
}
.aff-hero-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.aff-hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  max-width: 520px;
  margin: 0 auto 6px;
  line-height: 1.5;
}
.aff-hero-tag {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
}

/* ===== DESCRIPTION ===== */
.aff-desc {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 22px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.aff-desc p {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== SECTION HEADER (shared) ===== */
.aff-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.aff-section-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
}

/* ===== CREATING AFFILIATE LINKS ===== */
.aff-icon-foto {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--grng);
  color: var(--grn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aff-links {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.aff-links-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grng);
  color: var(--grn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aff-links-text {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.aff-links-tip {
  background: var(--s3);
  border: 1px solid var(--bd);
  border-radius: var(--r2);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.aff-links-tip-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grn);
}
.aff-links-tip-code {
  font-size: .8rem;
  color: var(--tx2);
  line-height: 1.6;
  text-align: center;
}
.aff-links-tip-code code {
  background: var(--s4);
  border: 1px solid var(--bd2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--grn);
  font-family: 'Courier New', Courier, monospace;
}
.aff-links-examples {
  padding-top: 16px;
  border-top: 1px solid var(--bd);
}
.aff-links-examples-title {
  font-size: .84rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 12px;
  text-align: center;
}
.aff-url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--s3);
  border-radius: var(--r);
  border: 1px solid var(--bd);
  margin-bottom: 8px;
}
.aff-url-row:last-child {
  margin-bottom: 0;
}
.aff-url-label {
  font-size: .74rem;
  font-weight: 600;
  color: var(--tx);
  white-space: nowrap;
  min-width: 110px;
  flex-shrink: 0;
}
.aff-url-value {
  font-size: .7rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--grn);
  background: var(--s4);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--bd2);
  word-break: break-all;
  line-height: 1.4;
  flex: 1;
}

/* ===== SOCIAL SHARING ===== */
.aff-social {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.aff-social-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(234,179,8,.1);
  color: var(--ylw);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aff-social-text {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 16px;
}
.aff-social-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.aff-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  font-size: .74rem;
  font-weight: 600;
  color: #fff;
  border-radius: var(--r);
  transition: .2s;
  text-decoration: none;
  white-space: nowrap;
}
.aff-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.aff-share-btn i {
  font-size: .82rem;
}
.aff-share-btn.fb { background: #1877f2; }
.aff-share-btn.fb:hover { background: #166fe5; }
.aff-share-btn.tw { background: #1da1f2; }
.aff-share-btn.tw:hover { background: #1a8cd8; }
.aff-share-btn.li { background: #0a66c2; }
.aff-share-btn.li:hover { background: #095bae; }
.aff-share-btn.pi { background: #e60023; }
.aff-share-btn.pi:hover { background: #cc001f; }
.aff-share-btn.wa { background: #25d366; }
.aff-share-btn.wa:hover { background: #1ebe5d; }
.aff-share-btn.em { background: #6c757d; }
.aff-share-btn.em:hover { background: #5a6268; }

/* ===== BANNERS ===== */
.aff-banners {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.aff-banners h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 16px;
  text-align: center;
}
.aff-banners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.aff-banners-img {
  flex-shrink: 0;
  width: 220px;
  background: var(--s3);
  border-radius: var(--r);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
}
.aff-banners-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.aff-banners-info {
  flex: 1;
  min-width: 0;
  max-width: 400px;
}
.aff-banners-info p {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.aff-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  background: var(--grn);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--r);
  text-decoration: none;
  transition: .2s;
}
.aff-btn-download:hover {
  background: var(--grn2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ===== LOGOS ===== */
.aff-logos-img {
    width: 180px;
  }
.aff-logos-img {
  flex-shrink: 0;
  width: 220px;
  background: var(--s3);
  border-radius: var(--r);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
}
.aff-logos-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.aff-logos {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 24px 20px;
  margin-bottom: 20px;
}
.aff-logos h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 16px;
  text-align: center;
}
.aff-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.aff-logos-preview {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
}
.aff-logos-preview .aff-logo-dark,
.aff-logos-preview .aff-logo-light {
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
}
/* Logo dark = black text, shown on light bg */
.aff-logos-preview .aff-logo-dark {
  background: #f0f0f0;
}
[data-theme="light"] .aff-logos-preview .aff-logo-dark {
  background: #fff;
}
/* Logo light = white text, shown on dark bg */
.aff-logos-preview .aff-logo-light {
  background: #1a1a1a;
}
[data-theme="light"] .aff-logos-preview .aff-logo-light {
  background: #2a2a2a;
}
.aff-logos-preview .aff-logo-dark img,
.aff-logos-preview .aff-logo-light img {
  height: 22px;
  width: auto;
  display: block;
}
.aff-logos-info {
  flex: 1;
  min-width: 0;
  max-width: 400px;
}
.aff-logos-info p {
  font-size: .84rem;
  color: var(--tx2);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .aff-hero {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .aff-hero {
    min-height: 170px;
  }
  .aff-hero-content {
    padding: 28px 16px;
  }
  .aff-hero-content h1 {
    font-size: 1.2rem;
  }
  .aff-hero-sub {
    font-size: .82rem;
  }
  .aff-hero-tag {
    font-size: .76rem;
  }
  .aff-banners-row,
  .aff-logos-row {
    flex-direction: column;
    align-items: center;
  }
  .aff-banners-info,
  .aff-logos-info {
    max-width: 100%;
    text-align: center;
  }
  .aff-logos-preview {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
  .aff-url-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .aff-url-label {
    min-width: auto;
  }
  .aff-social-btns {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .aff-hero {
    min-height: 150px;
  }
  .aff-hero-content {
    padding: 20px 12px;
  }
  .aff-hero-content h1 {
    font-size: 1rem;
  }
  .aff-hero-sub {
    font-size: .78rem;
  }
  .aff-hero-tag {
    font-size: .72rem;
  }
  .aff-desc {
    padding: 16px 14px;
  }
  .aff-desc p {
    font-size: .78rem;
  }
  .aff-links {
    padding: 18px 14px;
  }
  .aff-links-text {
    font-size: .78rem;
  }
  .aff-links-tip-code {
    font-size: .74rem;
  }
  .aff-banners-img {
    width: 180px;
  }
  .aff-logos-preview {
    flex-direction: column;
    width: 100%;
  }
  .aff-btn-download {
    height: 34px;
    padding: 0 16px;
    font-size: .74rem;
  }
  .aff-share-btn {
    height: 30px;
    padding: 0 10px;
    font-size: .68rem;
  }
}
