/* Importação de fontes */
@import url("https://fonts.googleapis.com/css2?family=Agbalumo&family=Courgette&family=Elsie:wght@400;900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis CSS para cores */
:root {
  --primary: #ff010b;
  --dark: #121212;
  --darker: #0c0c0c;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-700: #374151;
}
/* Estilos base */
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  font-family: "Montserrat", sans-serif;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--dark);
  color: var(--white);
  position: fixed;
  max-width: 100vw;
}

/* Estilos para páginas */
.app-page {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  max-width: 786px;
  margin: auto;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.app-page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: flex;
}

/* Cabeçalho das páginas */
.page-header {
  background-color: var(--darker);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header p {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}

.profile-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon {
  width: 20px;
  height: auto;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.container h1 {
  font-size: 50px;
  font-weight: 600;
  margin-bottom: 36px;
  text-align: center;
  font-family: "Agbalumo", system-ui;
}

/* Conteúdo das páginas */
.page-content {
  flex: 1;
  background-color: var(--dark);
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100% - 120px); /* Ajuste para evitar overflow */
}

/* Rodapé das páginas */
.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: var(--darker);
}

/* Botões */
.btn {
  padding: 12px;
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  text-align: center;
  position: relative;
  min-width: 120px;
}

.btn-primary {
  background-color: var(--white);
}

.btn-secondary {
  background-color: var(--gray-400);
}

/* Sobre */
.main {
  margin-bottom: 4px;
  margin-top: 4px;
}

.main img {
  width: 100%;
}

.spacer {
  width: 100%;
  margin-top: -80px;
  height: 80px;
  background-image: linear-gradient(
    to top,
    var(--dark),
    rgba(18, 18, 18, 0.8),
    rgba(18, 18, 18, 0.6),
    rgba(18, 18, 18, 0.4),
    rgba(18, 18, 18, 0.2),
    transparent
  );
  position: relative;
  z-index: 50;
}

.names {
  font-family: "Agbalumo", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  color: var(--white);
  text-align: center;
}

.love-phrase {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--white);
}

.infos {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
  justify-content: space-between;
  align-items: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.info-square {
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.infos img {
  margin-bottom: 12px;
}

.infos p {
  font-size: 20px;
}

.buttons {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.moments {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.moments-title {
  width: fit-content;
  font-size: 22px;
  font-weight: semi-bold;
  color: var(--white);
}

.line {
  height: 2px;
  background-color: var(--primary);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.music {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.player {
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}

.play-pause {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 24px;
}

.progress-bar {
  width: 85%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 2.5s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.5s ease infinite;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-out-right {
  animation: slideOutRight 1s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.slide-down {
  animation: slideDown 0.3s ease forwards;
}

/* Animação para carregamento da página */
.app-container {
  opacity: 0;
  transform: translateX(10px);
  animation: appLoad 0.5s ease forwards 0.2s;
}

@keyframes appLoad {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estilos para scrollbar */
.app-page::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 4px;
}

.app-page::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.5);
}

.app-page::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
