/* Charoite demo: landing page + dashboard */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

img {
  display: block;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

/* --------------------------------------------------------------- Header */

#header {
  background: #000;
  width: 100%;
  height: 100px;
  border-image: linear-gradient(to right, #cc2deb, #4467ff) 1;
  border-width: 0 0 4px 0;
  border-style: solid;
  position: absolute;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
}

.logo_header {
  width: 100%;
  max-width: 200px;
  position: absolute;
  left: 3%;
}

.logo_header img {
  width: 100%;
}

.demo_tag {
  position: absolute;
  left: calc(3% + 215px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 2px solid #cc2deb;
  border-radius: 8px 0 8px 8px;
}

#hamburger {
  width: 60px;
  height: 45px;
  position: absolute;
  right: 3%;
  cursor: pointer;
  display: none;
}

#hamburger span {
  display: block;
  position: absolute;
  height: 7px;
  width: 100%;
  background: linear-gradient(to right, #cc2deb, #4467ff);
  border-radius: 9px;
  left: 0;
  transition: .25s ease-in-out;
}

#hamburger span:nth-child(1) { top: 0; }
#hamburger span:nth-child(2),
#hamburger span:nth-child(3) { top: 18px; }
#hamburger span:nth-child(4) { top: 36px; }

#hamburger.open span:nth-child(1),
#hamburger.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#hamburger.open span:nth-child(2) { transform: rotate(45deg); }
#hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

#menu {
  position: absolute;
  right: 3%;
  display: flex;
  align-items: center;
}

.menu_item {
  color: #fff;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  transition: color 400ms;
}

.menu_item:hover {
  color: #cc2deb;
}

#menu_dash {
  margin: 0 17px;
  font-size: 20px;
}

#login_button {
  width: 150px;
  margin-left: 17px;
}

#login_button img {
  width: 100%;
}

#black_overlay {
  background: #000;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  display: none;
}

/* --------------------------------------------------------------- Intro */

#intro {
  height: 100vh;
  height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

.overlay-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay-inner {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.8;
}

.intro-content-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo_center {
  width: 29%;
  max-width: 438px;
  margin-right: 4%;
}

#intro_message {
  position: relative;
  padding-left: 1.05em;
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 400;
  line-height: 1.32;
}

/* Gradient bar on the left */
#intro_message::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(#4467ff, #cc2deb);
}

#intro_message b {
  font-weight: 700;
  background: linear-gradient(90deg, #4467ff, #cc2deb) 0 100% / 100% 3px no-repeat;
  padding-bottom: 0.04em;
}

#arrow {
  width: 78px;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 10%;
}

#arrow img {
  width: 100%;
}

/* --------------------------------------------------------------- About */

#about {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#about_inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 50px;
  position: relative;
}

#charoite_logo_bigc {
  max-width: 450px;
  margin-right: 70px;
}

#about_text_div {
  width: 100%;
  max-width: 850px;
}

.about_point {
  max-width: 600px;
  display: flex;
  align-items: center;
}

.about_point:not(:last-child) {
  margin-bottom: 40px;
}

.about_point p {
  font-size: 28px;
  margin-left: 50px;
}

.vert_line_big {
  max-height: 160px;
}

.data_sphere_1 {
  width: 702px;
  position: absolute;
  left: -178px;
  top: 78px;
}

.data_sphere_2 {
  width: 700px;
  position: absolute;
  right: -548px;
  top: 40px;
}

/* --------------------------------------------------------------- Login */

#login {
  background: #000 url("../assets/images/bg3.jpg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  perspective: 1200px;
}

#login_container {
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(to right, #cc2deb, #4467ff) border-box;
  width: 100%;
  max-width: 580px;
  border-radius: 30px 0 30px 30px;
  border: 4px solid transparent;
  margin: 0 40px;
  padding: 0 36px 44px;
  position: relative;
}

#login_header {
  width: 250px;
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  margin: 0 auto;
}

#message {
  font-size: 26px;
  text-align: center;
  font-weight: 500;
  margin: 90px 0 40px;
}

#continue_with_tiktok_btn {
  background: #fff;
  width: 100%;
  max-width: 400px;
  height: 60px;
  color: #161823;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  margin: 0 auto;
  user-select: none;
}

.tiktok_icon {
  position: absolute;
  left: 20px;
  width: 24px;
}

#demo_note {
  font-size: 14px;
  text-align: center;
  color: #b9a7d9;
  margin-top: 18px;
}

#data_note {
  font-size: 13px;
  text-align: center;
  color: #b9a7d9;
  margin: 0 16px 40px;
}

/* --------------------------------------------------------------- Footer */

#footer {
  background: #000;
  width: 100%;
  height: 100px;
  border-image: linear-gradient(to right, #cc2deb, #4467ff) 1;
  border-width: 4px 0 0 0;
  border-style: solid;
  position: relative;
  display: flex;
  align-items: center;
}

.tagline {
  width: 100%;
  max-width: 460px;
  position: absolute;
  left: 3%;
}

.footer_links {
  position: absolute;
  right: 3%;
  display: flex;
  align-items: center;
}

.footer_links_inner {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 25px;
}

.vert_line {
  height: 43px;
}

/* --------------------------------------------------------------- Dashboard: profile */

#user_info_container {
  position: relative;
}

#user_info_container_inner {
  padding: 200px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1199px;
  margin: 0 auto;
}

#user_info_container_underline {
  position: absolute;
  width: 100%;
  background: linear-gradient(90deg, #cc2deb 0%, #4467ff 55%);
  height: 4px;
  bottom: 0;
  left: 0;
}

#avatar_url {
  width: 270px;
  height: 270px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc2deb, #4467ff) center / cover;
  margin-right: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#user_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#user_info_top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#username {
  font-size: 27px;
  line-height: 36px;
  font-weight: 600;
  position: relative;
}

#username_underline {
  position: absolute;
  width: 100%;
  background: linear-gradient(90deg, #cc2deb 0%, #4467ff 55%);
  height: 2px;
  bottom: -2px;
  left: 0;
}

#verified_icon {
  width: 24px;
  margin-left: 8px;
}

#display_name {
  font-size: 22px;
  line-height: 29px;
  margin-left: 15px;
}

#user_info_middle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 28px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat p {
  font-size: 21px;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
}

.stat img {
  height: 20px;
  width: auto;
}

/* following.svg is taller because of the g descender: scale it to match the others, then let the descender hang below */
.stat img.descender {
  height: 25.2px;
  margin-bottom: -5.2px;
}

#bio_description {
  font-size: 19px;
  line-height: 24px;
  max-width: 640px;
  margin-top: 28px;
}

/* --------------------------------------------------------------- Dashboard: video grid */

#show_more_container {
  display: grid;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px 28px;
  padding: 60px 20px 40px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tiktok-card {
  background: #121212;
  border-radius: 12px;
}

.tiktok-card-cover {
  position: relative;
}

.tiktok-card-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.tiktok-card-thumbnail.placeholder {
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.tiktok-card-thumbnail.placeholder span {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tiktok-card-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .55);
}

.tiktok-card-title {
  overflow-y: auto;
  margin: 22px 32px;
  font-size: 13px;
  line-height: 22px;
  height: 66px;
}

.tiktok-card-info {
  background: #262626;
  padding: 4px 10px;
  margin: 0 12px 12px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tiktok-card-info_inner {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tiktok-card-info-icon {
  height: 22px;
  width: auto;
}

.tiktok-card-info-item {
  font-size: 22px;
  line-height: 28px;
  margin-left: 14px;
}

.tiktok-card-actions {
  padding: 0 12px;
}

.tiktok-button {
  cursor: pointer;
  width: 100%;
  background: linear-gradient(90deg, #cc2deb 0%, #4467ff 55%);
  border-radius: 12px 0 12px 12px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.tiktok-button:hover {
  background: #e61a3c;
}

.tiktok-button:active {
  box-shadow: inset 0 0 20px #fff;
}

.view_on_tiktok {
  width: 100%;
  max-width: 170px;
}

.export {
  width: 100%;
  max-width: 140px;
}

#show_more_button {
  display: block;
  margin: 0 auto 100px;
  padding: 16px 40px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 2px solid #cc2deb;
  border-radius: 12px 0 12px 12px;
  transition: background-color 300ms;
}

#show_more_button:hover {
  background: #cc2deb;
}

#show_more_button:disabled {
  opacity: .6;
  cursor: wait;
}

#show_more_button[hidden] {
  display: none;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  translate: -50% 0;
  z-index: 200;
  background: #121212;
  border: 2px solid #4467ff;
  border-radius: 12px 0 12px 12px;
  padding: 14px 22px;
  font-size: 15px;
  visibility: hidden;
  max-width: calc(100% - 32px);
}

/* Scrollbars */

* {
  scrollbar-color: #63c7c7 #666;
  scrollbar-width: thin;
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 1200px) {
  .intro-content-inner {
    flex-direction: column;
  }

  #logo_center {
    width: 100%;
    max-width: 300px;
    margin: 0 0 100px;
  }

  #intro_message {
    font-size: clamp(21px, 6vw, 47px);
  }

  #about {
    padding: 50px 0;
  }

  #charoite_logo_bigc {
    display: none;
  }

  .vert_line_big {
    max-height: 140px;
  }

  .about_point p {
    font-size: 24px;
  }

  .data_sphere_1 {
    left: -592px;
    top: -16px;
  }

  .data_sphere_2 {
    right: -610px;
    top: -12px;
  }
}

@media (max-width: 900px) {
  #header {
    height: 80px;
  }

  .logo_header {
    max-width: 150px;
  }

  .demo_tag {
    left: calc(3% + 162px);
  }

  #hamburger {
    display: block;
  }

  #menu {
    background: #000;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
  }

  #menu.open {
    display: flex;
  }

  .menu_item {
    border-image: linear-gradient(to right, #cc2deb, #4467ff) 1;
    border-width: 0 0 4px 0;
    border-style: solid;
    width: 100%;
    text-align: center;
    padding: 20px 0;
  }

  #menu_dash {
    display: none;
  }

  #login_button {
    margin: 0;
    padding: 20px 0;
  }

  #black_overlay.open {
    display: block;
    opacity: .7;
    pointer-events: auto;
  }

  #login_header {
    top: -34px;
    width: 220px;
  }

  .footer_links_inner {
    font-size: 15px;
    line-height: 20px;
  }

  .tagline {
    max-width: 360px;
  }

  .vert_line {
    height: 33px;
  }

  #user_info_container_inner {
    flex-direction: column;
    text-align: center;
    padding: 140px 24px 60px;
  }

  #avatar_url {
    width: 180px;
    height: 180px;
    font-size: 64px;
    margin: 0 0 30px;
  }

  #user_info {
    align-items: center;
  }

  #user_info_top,
  #user_info_middle {
    justify-content: center;
  }

  #show_more_container {
    padding-top: 60px;
  }
}

@media (max-width: 600px) {
  #logo_center {
    max-width: 270px;
    margin-bottom: 80px;
  }

  #arrow {
    width: 70px;
  }

  .vert_line_big {
    max-height: 120px;
  }

  .about_point p {
    font-size: 20px;
    margin-left: 30px;
  }

  #about_inner {
    padding: 0 24px;
  }

  .data_sphere_1 {
    left: -605px;
    top: 27px;
  }

  .data_sphere_2 {
    right: -606px;
    top: 20px;
  }

  #login_container {
    margin: 0 16px;
    padding: 0 20px 36px;
  }

  #message {
    font-size: 22px;
  }

  #continue_with_tiktok_btn {
    font-size: 18px;
  }

  #footer {
    height: auto;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .tagline,
  .footer_links {
    position: static;
  }

  .tagline {
    max-width: 300px;
  }

  #username {
    font-size: 22px;
  }

  #display_name {
    font-size: 18px;
    width: 100%;
    margin: 8px 0 0;
  }

  #bio_description {
    font-size: 16px;
  }
}
