@import url('https://fonts.googleapis.com/css2?family=Almendra+SC&family=Almendra:ital,wght@0,400;0,700;1,400;1,700&family=Londrina+Shadow&family=Pirata+One&display=swap');

:root {

  --glass-bg-1: hsla(0, 0%, 100%, .1);
  --glass-bg-2: hsla(0, 0%, 100%, .05);

}

.text-gradient {

  background: var(--bg-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.img-circle {

  --size: 3rem;
  --bg-color: #000;

  width: var(--size);
  height: var(--size);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;

  &.img-circle-bg {
    padding: 0.2rem;
    background: var(--bg-color);
  }

}

.img-user {

  --bg-color: #ffd1a0;

  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  margin-block: 1rem 2rem;
  background: var(--bg-color);

  h3 {
    font-size: 1rem;
    line-height: 1.3rem;
    font-weight: 500;
    color: #a93d19;
  }

  p {
    font-size: 80%;
    font-weight: 400;
    color: #333;
  }

}

.avatar-container {

  position: relative;
  display: inline-block;

  .hat {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
  }

}

.img-div-gradient {

  --bg-grad: linear-gradient(135deg, #667eea, #764ba2);

  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;

  &::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background: var(--bg-grad);
    z-index: 1;
  }

}

.tags {

  margin-bottom: 0.5rem;

  & > div {
    display: inline-block;
    white-space: normal;
    font-size: 0.9rem;
    font-weight: 400;
    margin-block: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    padding: 0.2rem 0.5rem;
    color: #000;
    background: #fedb82;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  & > div.grey {
    background: #f0f0f0;
  }

  i {
    margin-right: 0.3rem;
  }

  img {
    height: 1rem;
  }

}

.btn-pirate-action {

  color: #fff !important;
  background: #5c263b;

  &:hover {
    filter: brightness(0.9);
  }

}

.btn-linkedin {

  color: #fff !important;
  background: #0077B5;

  &:hover {
    color: #0077B5 !important;
    background: #fff;
  }

}

.badge-rank {

  img {
    width: 4rem;
  }

  div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 500;
    color: #000;
  }

}

.badge-cover-rank {
  position: relative;
  text-shadow: none;
}

.pirate-crews-header {

  --br-rad: 2rem;

  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--br-rad);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

  & > img {
    display: block;
    width: 100%;
    min-height: 24rem;
    max-height: 26rem;
    object-fit: cover;
    object-position: center;
    border-radius: var(--br-rad);
  }

  .content {

    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border-radius: 1rem;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;

    img {
      display: block;
      margin: 0 auto;
    }

  }

  h1 {
    font-family: "Almendra SC", serif;
    font-size: 3rem;
    font-weight: bold;
    color: #fec639;
    text-align: center;
  }

  .team-cover-stats {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    .crew-stats {

      margin-bottom: 0;

      img {
        width: 3rem;
      }

      p {
        font-size: 1.5rem;
        color: #fff26f;
      }

    }

  }

}

.pirate-sub-heading {
  font-family: "Almendra";
  color: #3a172d;
}

.pirate-section {
  padding: 1rem 1rem 0 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: #333;
  background: #cec9dd;
}

.pirate-team-card {

  margin-top: 1rem;
  border-radius: 1rem;
  color: #333;
  background: #ffe7c1;
  border: 1px solid #b94229;

  .header, .body {
    padding: 1rem;
  }

  .header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 4rem;
    color: #fff;
    background: #88373c;
    border-radius: 0.9rem 0.9rem 0 0;
  }

  .badge-team-rank {
    position: absolute;
    top: -1.5rem;
    right: 0.5rem;
  }

  .heading {
    font-size: 1.2rem;
    font-weight: 500;
  }

  .btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

}

.pirate-crew-card {

  height: 100%;
  padding: 1rem;
  border-radius: 1rem;

  .img-user {
    height: 3rem;
  }

  &.light {

    background: #fff;

    .img-user {
      --bg-color: #fff;
    }

  }

  &.dark {
    background: #ffe7c1;
  }

  &.team-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    background: #88373c;
  }

}

.crew-stats {

  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;

  img {
    width: 1.5rem;
  }

  p {
    font-size: 0.9rem;
    color: #333;
  }

}

.captain-actions {

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #ffe7c1;

  .crew-stats {
    margin-bottom: 0;
  }

}

.pirate-captain-note {
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: #d0f6fe;
}

.pirate-captain-card {

  --bg-color: linear-gradient(0deg, #2e1616, #45241d, #2e1616);

  height: 100%;
  position: relative;
  border-radius: 1rem;
  background: var(--bg-color);
  overflow: hidden;

  & > img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(to bottom, #f21028, #1a1826);
  }

  .img-overlay {
    position: absolute;
    width: 12rem;
    height: auto;
    bottom: -3rem;
    right: -3rem;
    opacity: 0.1;
  }

  .content {
    position: relative;
    padding: 1rem;
  }

  .btn-linkedin {
    position: absolute;
    top: -1.2rem;
    right: 1rem;
    border-radius: 50%;
  }

  h3 {
    font-size: 1.8rem;
    font-family: "Almendra";
    color: #fec639;
    margin-bottom: 0.4rem;
  }

  h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.8rem;
  }

  p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
  }

}

.college-icon-text {

  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;

  img {
    width: 3rem;
  }

  p {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-left: 0.2rem;
  }

}

/* .pirate-captains {
  & > .col-md-4:nth-child(3n) .pirate-captain-card {
    background: linear-gradient(0deg, #170736, #311166, #170736);
  }
  & > .col-md-4:nth-child(3n-1) .pirate-captain-card {
    --bg-color: linear-gradient(0deg, #291222, #381b2f, #291222);
  }
  & > .col-md-4:nth-child(3n-2) .pirate-captain-card {
    --bg-color: linear-gradient(0deg, #19022e, #3d0c43, #19022e);
  }
} */
