/* ============================================================
   Sponsor Overview card (/#username or ?referrer=username)
   Markup is rendered into #homesponsersectwo by
   bitcointaf-plugin/js/homesponsordetails.js.
   Self-contained: fonts and images live in the child theme.
   ============================================================ */

@font-face {
  font-family: "btaf-sponsor-poppins";
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins/Poppins-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "btaf-sponsor-poppins";
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins/Poppins-SemiBold.woff2) format("woff2");
}
@font-face {
  font-family: "btaf-sponsor-poppins";
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins/Poppins-Bold.woff2) format("woff2");
}

#homesponsersectwo .profile-main {
  width: 100%;
  background-color: #f2f2f2;
  padding-top: 60px;
  padding-bottom: 60px;
  font-family: "btaf-sponsor-poppins", sans-serif;
  font-weight: 400;
}

#homesponsersectwo .profile-card-title {
  text-align: center;
  font-size: 26px;
  font-family: "btaf-sponsor-poppins", sans-serif;
  font-weight: 600;
  color: #522e91;
  margin-bottom: 25px;
  text-transform: capitalize;
}

#homesponsersectwo .profile-card {
  display: flex;
  width: 610px;
  max-width: 100%;
  column-gap: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* Left card: purple top, white bottom, round avatar */
#homesponsersectwo .avatar-container {
  background-color: #522e91;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
#homesponsersectwo .avatar-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/sponsor/bitcoinTaf-profile-bg.png);
  background-repeat: no-repeat;
  background-size: 137%;
  background-position: center top -25px;
  opacity: 0.1;
}
#homesponsersectwo .avatar-container::after {
  content: "";
  position: absolute;
  background-color: #fff;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 50%;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#homesponsersectwo .avatar-container .avatar {
  display: block;
  width: 120px;
  height: 120px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  position: relative;
  z-index: 1;
}
#homesponsersectwo .avatar-container .rankIcon {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 64px;
  width: 30px;
  height: auto;
  margin-right: 10px;
}

/* Right card: name, handle, rank, socials */
#homesponsersectwo .info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  height: 220px;
  padding: 0 30px;
  column-gap: 20px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 0;
}
#homesponsersectwo .info-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/sponsor/bitcoinTaf-profile-bg.png);
  background-repeat: no-repeat;
  background-size: 75%;
  background-position: right -100px bottom 15px;
  z-index: -1;
}
#homesponsersectwo .sponsorname {
  font-family: "btaf-sponsor-poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #000;
  margin-bottom: 10px;
}
#homesponsersectwo .handle {
  margin: 5px 0;
  color: #666;
  font-size: 16px;
}
#homesponsersectwo .badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 0;
  margin: 10px 0;
  border-radius: 20px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #333;
}
#homesponsersectwo .star {
  color: #6b48ff;
  margin-right: 5px;
}
#homesponsersectwo .star img {
  display: block;
  width: 30px;
  height: auto;
}
#homesponsersectwo .social-icons {
  display: flex;
  gap: 10px;
}
#homesponsersectwo .social-icons a img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #522e91;
  padding: 10px;
}

@media (max-width: 768px) {
  #homesponsersectwo .profile-card {
    flex-direction: column;
    width: auto;
    align-items: center;
    row-gap: 20px;
  }
  #homesponsersectwo .info-container {
    flex: none;
    width: 410px;
    max-width: 100%;
    height: auto;
    min-height: 220px;
    padding: 30px;
  }
}

@media (max-width: 468px) {
  #homesponsersectwo .info-container {
    width: 100%;
    align-items: center;
  }
  #homesponsersectwo .badge {
    align-self: center;
  }
  #homesponsersectwo .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
}
