@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');
@import url('cores.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg-site);
  font-family: "Urbanist", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  gap: 20px;
}

.container .content-perfil,
.content-atividade-unificada,
.content-redes-social {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.entrar .container .content-perfil {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.20s;
}

.entrar .content-atividade-unificada {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.entrar .content-redes-social {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cards);
  box-shadow: var(--box-shadow);
  color: var(--letras);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.content-perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.foto-joaquim {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.atividade-titulo-container{
  display: flex;
  flex-direction: column;
  width: 82%;
  min-width: 0;
  flex: 1;
}

.content-titulos {
  text-align: center;
}

.content-titulos h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.content-titulos h3 {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.8;
}

.content-atividade-unificada {
  display: flex;
  gap: 15px;
}

.secao-discord,
.secao-atividade {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  max-height: 100px;
}

.discord-content {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.discord-avatar-container {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.discord-avatar {
  height: 70px;
  width: 70px;
  border-radius: 50%;
}

.status {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 23px;
  width: 23px;
  background: var(--cards);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status img {
  height: 15px;
  width: 15px;
}

.discord-info {
  min-width: 0;
  flex: 1;
}

.discord-username {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
}

.discord-username:hover .tooltip {
  opacity: 1;
  transform: translateY(-5px);
}

.tooltip {
  position: absolute;
  bottom: 100%;
  background: var(--cards);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
  z-index: 10;
}

.discord-status {
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  display: flex;
}

.estado-vazio {
  text-align: center;
  padding: 30px 20px;
  opacity: 0.6;
  font-size: 15px;
  width: 100%;
}

.atividade-content {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.atividade-imagem {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.atividade-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onda {
  position: fixed;
  top: 50%;
  left: 35px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  z-index: 9999;
  animation: expandirOnda 1.2s ease-out forwards;
}

@keyframes expandirOnda {
  0% {
    transform: scale(0);
    opacity: 0.7;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    transform: scale(80);
    opacity: 0;
  }
}

.atividade-info {
  display: flex;
  flex-direction: column;
  height: 68px;
  width: 100%;
  margin-bottom: 2px;
  overflow: hidden;
}

.atividade-titulo,
.atividade-subtitulo {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.atividade-titulo {
  font-size: 18px;
  font-weight: 600;
}

.atividade-titulo .campo2 {
  font-size: 18px;
  font-weight: 600;
}

.atividade-subtitulo {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.atividade-subtitulo .campo2 {
  font-size: 14px;
}

.atividade-tempo {
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
}

.atividade-icone {
  position: absolute;
  right: 20px;
  top: 16px;
}

.atividade-icone img {
  width: 30px;
  height: 30px;
}

.atividade-icone img.pulsar {
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

.atividade-icone a {
  display: block;
  transition: transform 0.3s ease;
}

.atividade-icone a:hover {
  transform: scale(1.1);
}

@keyframes pulse-shadow {
  0%, 100% { filter: var(--drop-shadow-1); }
  50% { filter: var(--drop-shadow-2); }
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.progress-bar-container span {
  display: flex;
  min-width: 30px;
  flex-shrink: 0;
  align-items: self-start;
}

#tempoTotal {
  text-align: right;
}

.progress-bar {
  flex: 1;
  height: 7.5px;
  background: var(--bg-barra);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--progresso-barra);
  transition: width 0.5s ease;
  border-radius: 4px;
}

.campo1 {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.campo2 {
  display: block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.marquee {
  animation: marquee-animation var(--duracao-marquee, 15s) linear infinite;
  animation-delay: var(--marquee-delay, 0s);
  white-space: nowrap;
  display: inline-block;
}

@keyframes marquee-animation {
  0% { transform: translateX(0px); }
  20% { transform: translateX(0px); }
  50% { transform: translateX(var(--offset-marquee)); }
  70% { transform: translateX(var(--offset-marquee)); }
  100% { transform: translateX(0px); }
}

.content-redes-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 16px;
  background: var(--cards);
  box-shadow: var(--box-shadow);
  color: var(--letras);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--animation-botao);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.btn-social img {
  height: 28px;
  width: 28px;
}

#servico {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 20px auto;
  text-align: center;
  max-width: 760px;
  font-size: 13px;
  color: var(--letras);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

#servico.visivel {
  opacity: 1;
}

@media (max-width: 880px) {
  .container {
    max-width: 370px;
  }

  .content-atividade-unificada {
    flex-direction: column;
  }

  .content-redes-social {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .container {
    gap: 15px;
  }

  .foto-joaquim {
    height: 120px;
    width: 120px;
  }

  .content-titulos h1 {
    font-size: 28px;
  }

  .content-titulos h3 {
    font-size: 18px;
  }

  .discord-avatar {
    height: 60px;
    width: 60px;
  }

  .status {
    height: 20px;
    width: 20px;
  }

  .status img {
    height: 12px;
    width: 12px;
  }

  .discord-username {
    font-size: 18px;
  }

  .discord-status {
    font-size: 15px;
  }

  .atividade-imagem {
    height: 60px;
    width: 60px;
  }

  .atividade-titulo,
  .atividade-titulo .campo2 {
    font-size: 16px;
  }

  .atividade-subtitulo,
  .atividade-subtitulo .campo2 {
    font-size: 13px;
  }

  .atividade-icone {
    top: 15px;
  }

  .atividade-icone img {
    width: 25px;
    height: 25px;
  }

  .atividade-tempo {
    font-size: 12px;
  }

  .progress-bar-container {
    font-size: 11px;
  }

  .progress-bar-container span {
    min-width: 27px;
  }

  .btn-social {
    font-size: 15px;
    padding: 12px;
  }

  .btn-social img {
    height: 24px;
    width: 24px;
  }

  .tooltip {
    font-size: 12px;
  }

  .discord-username{
    width: 92px;
  }

  #servico {
    font-size: 12px;
    margin: 10px auto;
  }

  .estado-vazio {
    padding: 25px 15px;
    font-size: 14px;
  }

  .atividade-info {
    height: 58px;
  }

  .secao-discord,
  .secao-atividade {
    max-height: 85px;
  }
}

@media (max-width: 400px) {
  .container {
    max-width: 300px;
  }
}