﻿.profile-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  background-color: #f6f6f6;
  z-index: 1;
}

  .profile-container:before {
    font-size: 26px;
    top: 25%;
  }

  .profile-container .prev img {
    width: 100%;
    max-width: 100%;
  }

  .profile-container:hover .prev {
    opacity: 0;
  }

.profile-wrapper::after {
  content: '';
  position: absolute;
  bottom: -91%;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 100%, rgba(255, 255, 255, 0.1) 0%);
  transform: rotateZ(80deg) translateX(25%);
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 3;
}

.profile-container:hover .profile-wrapper::after {
  transform: rotateZ(50deg) translateX(-150%);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
}

.profile-container:hover .next {
  transform: scale(0);
  opacity: 0;
}

.profile-card {
  top: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 10px;
  opacity: 0;
  background-color: #fff;
  transition: all 0.3s ease;
}

.profile-container:hover .profile-card {
  opacity: 1;
  transition: all 0.3s ease;
  transition-delay: 0.2s;
}

.profile-container .next {
  top: 71%;
  right: 15px;
  opacity: 1;
  transform: scale(1);
  z-index: 4;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.profile-card .profile-img-small {
  display: block;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1rem 0;
  border: 2px solid transparent;
  background-image: linear-gradient(#f6f6f6, #f6f6f6), linear-gradient(to right, #35a5ca, #f49700);
  background-origin: border-box;
  background-clip: content-box, border-box;
  position: relative;
}

.profile-card h1,
.profile-container .next h1 {
  font-size: 0.9rem;
}

.profile-card h2,
.profile-container .next h2 {
  font-size: 0.8rem;
  color: #888;
}

.profile-card .address,
.profile-card .tel > a {
  line-height: 1.2;
  display: inline-flex;
  text-align: right;
}

.profile-card .tel > a {
  cursor: pointer;
  text-decoration: underline;
  color: #35a5ca;
}

.profile-card .view {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  height: 38px;
  white-space: nowrap;
  color: #fff;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* Profile Icons */
.profile-card .link-share {
  display: flex;
  width: 100%;
  max-height: 25px;
  justify-content: space-evenly;
  bottom: 20px;
  position: absolute;
}

  .profile-card .link-share a {
    cursor: pointer;
  }

    .profile-card .link-share a > svg {
      fill: #666;
      transform: scale(1);
      transition: all 0.1s ease-in-out;
    }

      .profile-card .link-share a > svg:hover {
        fill: #222;
        transform: scale(1.3);
      }

.profile-card .icons i:hover {
  background-color: #222;
  font-size: 20px;
  cursor: pointer;
}

@media screen and (max-width: 1200px) {
  .profile-card .profile-img-small {
    width: 90px;
    height: 90px;
    margin: 0.9rem 0;
  }

  .profile-card .view {
    height: 33px;
    margin-top: 15px;
    padding: 0 12px;
  }
}

@media screen and (max-width: 1140px) {
  .profile-card .profile-img-small {
    width: 75px;
    height: 75px;
    margin: 0.7rem 0;
  }

  .profile-card .view {
    height: 30px;
    margin-top: 12px;
    padding: 0 10px;
  }
}

@media screen and (max-width: 540px) {
  .profile-container:before {
    font-size: 24px;
  }
}
