@import url("../font/style.css");
@import url("https://sybraxdesign.fr/api/github/version.css");

@keyframes popAnim {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

* {
  margin: 0;
  padding: 0;
  font-family: "Whitney", sans-serif;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
}

.tooltip {
  display: none;
  position: absolute;
  color: #1f2328;
  background: #ffffff;
  padding: 0.4rem;
  border-radius: 3px;
  max-width: 150px;
  width: max-content;
  font-size: 0.9rem;
  animation: popAnim 0.035s linear;
  z-index: 10;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
}

.tooltip-up {
  bottom: 42px;
}

.tooltip-up::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

.modal-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  background: #ffffff;
  padding: 15px;
  color: #1f2328;
  border-radius: 5px;
  animation: popAnim 0.035s linear;
}

.modal a {
  text-decoration: none;
  color: #4f46e5;
  transition-duration: 0.2s;
  border-bottom: 1px solid transparent;
}

.modal a:hover {
  color: #4338ca;
  border-bottom: 1px solid #4338ca;
}

.active {
  display: flex;
}

.card-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 1450px;
}

.card {
  background: #ffffff;
  width: 345px;
  max-height: 95%;
  height: max-content;
  border-radius: 9px;
  box-shadow: 0px 0px 16px 3px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0px 0px 16px 3px rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
}

.card::-webkit-scrollbar {
  display: none;
}

.card-header .banner {
  width: 100%;
  height: 60px;
  background: #ffb703;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
}

.card-header .banner-img {
  width: 100%;
  height: 120px;
  background-position: center !important;
  background-size: 100% auto !important;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
}

.card-body {
  padding: 15px;
  position: relative;
}

.card-body .profile-header {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  width: calc(100% - 30px);
  top: -50px;
}

.card-body .profile-header .profil-logo {
  position: relative;
  border: 6px solid #ffffff;
  border-radius: 50%;
}

.card-body .profile-header .profil-logo img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.card-body .profile-header .profil-logo::before {
  content: "See Profil";
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  color: #1f2328;
  background: #ffffffcc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  transition-duration: 0.15s;
}

.card-body .profile-header .profil-logo:hover::before {
  opacity: 1;
}

.card-body .profile-header .badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 150px;
  background: #eceff1;
  border-radius: 7px;
  padding: 3px;
}

.card-body .profile-header .badges-container .badge-item {
  position: relative;
  margin: 5px;
  width: 15px;
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.card-body .profile-header .badges-container .badge-item img {
  height: 100%;
}

.card-body .profile-header .badges-container .badge-item:hover > .tooltip {
  display: block;
}

.card-body .profile-body {
  background: #eceff1;
  border-radius: 7px;
  padding: 13px;
  margin-top: 40px;
}

.card-body .profile-body .username {
  color: #111827;
  margin-bottom: 13px;
  font-weight: 600;
  font-size: 1.3rem;
}

.card-body .profile-body .username span {
  color: #6b7280;
}

.card-body .profile-body hr {
  border: none;
  border-top: 0.5px solid #e5e7eb;
}

.card-body .profile-body .category-title {
  color: #374151;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.card-body .profile-body .basic-infos {
  margin-bottom: 14px;
  margin-top: 12px;
}

.card-body .profile-body .basic-infos p {
  color: #4b5563;
  font-size: 0.9rem;
}

.card-body .profile-body .roles {
  margin-bottom: 14px;
}

.card-body .profile-body .roles .roles-list {
  display: flex;
  flex-wrap: wrap;
}

.card-body .profile-body .roles .roles-list .role {
  background: #ffffff;
  color: #1f2328;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 3px 6px;
  margin-right: 4px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.card-body .profile-body .roles .roles-list .role .role-color {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 5px;
}

.card-body .profile-body .note textarea {
  border: none;
  outline: none;
  background: #ffffff;
  width: 100%;
  min-height: 30px;
  color: #1f2328;
  resize: none;
  font-size: 0.8rem;
  border-radius: 3px;
  padding: 5px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.card-body .profile-body .note textarea::-webkit-scrollbar {
  display: none;
}

.card-body .profile-body .note textarea::placeholder {
  font-size: 0.8rem;
  color: #9ca3af;
}

.card-body .profile-body .note textarea:focus::placeholder {
  opacity: 0;
}

.card-body .profile-body .message input {
  background: #ffffff;
  outline: none;
  border: 1.2px solid #d1d5db;
  padding: 13px;
  width: 100%;
  border-radius: 4px;
  color: #1f2328;
  margin-top: 14px;
}


.card-body .profile-header .profil-logo::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #3ba55d;
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.connections {
  margin-bottom: 14px;
}

.connection-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
  text-decoration: none;
  color: #1f2328;
  transition: background 0.15s ease;
}

.connection-item:hover {
  background: #e5e7eb;
}

.connection-item img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.connection-item span {
  font-size: 0.85rem;
}

.connection-item .external {
  margin-left: auto;
  color: #6b7280;
  font-size: 0.8rem;
}
