@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* =========================================================
   ========== BASE LAYOUT / RESET STYLES ==========
   ========================================================= */

body {
  margin: 0;
  background: #0d0d13;
  color: #fff;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
}

.app {
  width: 360px;
  min-height: 100vh;
  background: #0d0d13;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px; /* espaço para o player */
}

* {
  box-sizing: border-box;
}

/* =========================================================
   ========== HEADER / HERO ==========
   ========================================================= */

.top-bar,
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.welcome {
  font-size: 1.1rem;
  font-weight: 500;
}
.lokk-logo {
  width: 85px;
}

/* ==== HERO CARD ==== */
.card.gradient {
  margin: 25px 20px;
  padding: 24px 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, #00b3c5, #00cf94);
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 25px rgba(155, 107, 255, 0.3);
}
.card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-main {
  font-size: 2rem;
}
.section-title {
  margin: 0;
  font-weight: 600;
}
.subtitle {
  margin: 4px 0 10px;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* =========================================================
   ========== BUTTONS ==========
   ========================================================= */

.btn.small-btn {
  background: linear-gradient(90deg, #00b3c5, #00cf94);
  border: none;
  color: #fff;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.btn.small-btn:hover {
  opacity: 0.85;
}
.cancel {
  background: #333;
}

/* =========================================================
   ========== SEARCH BAR ==========
   ========================================================= */
.search-container {
  margin: 10px 20px;
  background: #1b1b24;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
}
.search-container i {
  color: #999;
}
.search-container input {
  background: none;
  border: none;
  color: #fff;
  flex: 1;
  outline: none;
  margin-left: 8px;
}

/* =========================================================
   ========== FAVORITES & PLAYLISTS SECTIONS ==========
   ========================================================= */

.voices {
  margin: 20px;
}
.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.voice-header .section-title {
  font-weight: 600;
  font-size: 1rem;
}
.voice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b1b24;
  border-radius: 12px;
  padding: 10px 15px;
  transition: transform 0.15s ease;
}
.voice-item:hover {
  transform: scale(1.02);
}

.voice-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-icon.circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #2a2a34;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00cf94;
}
.voice-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.voice-lang {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.6;
}
.voice-play {
  background: #2a2a34;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.voice-play:hover {
  background: #3c3c4f;
  transform: scale(1.05);
}

/* =========================================================
   ========== MODALS (GENERIC) ==========
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #1b1b24;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* =========================================================
   ========== UPLOAD / CREATE PLAYLIST MODAL ==========
   ========================================================= */

.upload-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upload-modal h3 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-icon {
  color: #00cf94;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-group label {
  font-size: 0.85rem;
  opacity: 0.85;
}
.input-group input[type="text"] {
  background: #2a2a34;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.85rem;
}

/* modal search */
#playlistModal .search-container {
  background: #1b1b24;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
#playlistModal .search-container input {
  background: none;
  border: none;
  color: #fff;
  flex: 1;
  outline: none;
  margin-left: 8px;
}

/* sound list inside playlist modal */
#playlistSoundsList {
  max-height: 250px;
  overflow-y: auto;
  margin-top: 8px;
}
#playlistModal .sound-item {
  background: #2a2a34;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  transition: background 0.15s;
  cursor: pointer;
}
#playlistModal .sound-item:hover {
  background: #3a3a48;
}
#playlistModal .sound-name {
  font-size: 0.9rem;
}
#playlistModal .sound-lang {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* scrollbar */
#playlistSoundsList::-webkit-scrollbar {
  width: 6px;
}
#playlistSoundsList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* =========================================================
   ========== FILE UPLOAD AREA (shared design) ==========
   ========================================================= */
.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1b1b24;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 25px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.file-upload-area:hover {
  background: #21212b;
  border-color: rgba(0, 255, 200, 0.4);
}
.file-upload-area input[type="file"] {
  display: none;
}
#uploadIcon {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #00b3c5, #00cf94);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.file-upload-area:hover #uploadIcon {
  transform: scale(1.1);
  opacity: 0.85;
}
.file-info {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.85;
  text-align: center;
}
.file-error {
  font-size: 0.8rem;
  color: #ff5a5a;
  margin-top: 6px;
  display: none;
  text-align: center;
}
.file-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  text-align: center;
}

/* =========================================================
   ========== PLAYER BAR ==========
   ========================================================= */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  background: #14141d;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px 16px 0 0;
  z-index: 20;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.45);
}
.player-title {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 5px;
}
.player-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 5px;
  cursor: pointer;
}
.progress-bar {
  width: 85%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b3c5, #00cf94);
  transition: width 0.15s linear;
}

/* =========================================================
   ========== RESPONSIVE ==========
   ========================================================= */
@media (max-width: 480px) {
  .app {
    width: 100%;
  }
  .player-bar {
    width: 100%;
  }
}

/* ============================================
   --- RECOMMENDED CATEGORY TOOLS (square cards) ---
   ============================================ */
.tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  margin: 25px 0 35px;
}
.tool-card {
  flex: 1;
  background-color: #1b1b24;
  border-radius: 16px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  transition: transform 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.tool-card:hover {
  background-color: #22222e;
  transform: translateY(-4px);
}
.tool-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #00cf94;
}



/* =========================================================
   EXTRA INTERACTIONS :: 3D micro-animations + motion
   ========================================================= */

/* Zoom global em todos elementos clicáveis */
button,
.tool-card,
.voice-item,
.sound-item,
.btn,
.play-btn,
.player-btn {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* --- Botões gerais --- */
button:hover,
.btn.small-btn:hover {
  transform: scale(1.08) translateY(-2px);
  filter: brightness(1.1);
}

/* --- Tool Cards (Movies / Comedy) --- */
.tool-card:hover {
  transform: perspective(800px) rotateX(6deg) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 255, 180, 0.35);
}

/* --- Vozes / sons (listas) --- */
.voice-item:hover,
.sound-item:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

/* --- Ícones e favoritos --- */
.voice-icon:hover,
.sound-avatar:hover,
.fav-btn:hover {
  transform: rotate(-6deg) scale(1.25);
  filter: brightness(1.2);
}

.fav-btn.active:hover {
  transform: rotate(10deg) scale(1.35);
}

/* --- Player Button --- */
.player-btn:hover {
  transform: scale(1.2) rotate(6deg);
  color: #00cf94;
  text-shadow: 0 0 10px rgba(0, 207, 148, 0.6);
}

/* --- Hero section / título animado --- */
.card.gradient:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 255, 180, 0.3);
}

/* --- Modal pop effect --- */
@keyframes modalPop {
  0% {
    transform: scale(0.85) translateY(10px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal:not(.hidden) .modal-content {
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Hover suave em campos e uploads --- */
input[type="text"]:hover,
.file-upload-area:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.25);
}

/* =========================================================
   HOVER-ONLY ANIMATIONS (pure interactivity)
   ========================================================= */

/* Botões gerais (Save, See More, + Add, etc.) */
button,
.btn.small-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
button:hover,
.btn.small-btn:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.4);
  filter: brightness(1.1);
}

/* Tool Cards — Movies / Comedy */
.tool-card {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s ease, background 0.25s ease;
}
.tool-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 255, 180, 0.3);
  background-color: #1d1d28;
}

/* Cards de sons e playlists */
.voice-item,
.sound-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice-item:hover,
.sound-item:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 180, 0.25);
}

/* Ícones e avatares (robot / estrela / lista) */
.voice-icon,
.sound-avatar,
.fav-btn {
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}
.voice-icon:hover,
.sound-avatar:hover,
.fav-btn:hover {
  transform: scale(1.25) rotate(-5deg);
  color: #00cf94;
  filter: brightness(1.2);
}

/* Player bar e botão play global */
.player-bar {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.player-bar:hover {
  box-shadow: 0 -4px 18px rgba(0, 255, 180, 0.25);
}
.player-btn {
  transition: transform 0.25s ease, color 0.25s ease;
}
.player-btn:hover {
  transform: scale(1.2);
  color: #00cf94;
}

/* Hero gradient (apenas hover) */
.card.gradient {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card.gradient:hover {
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 180, 0.3);
}

/* File upload area */
.file-upload-area {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.file-upload-area:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 255, 180, 0.3);
  border-color: rgba(0, 255, 180, 0.5);
}

/* Inputs e campos editáveis */
input[type="text"]:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 255, 180, 0.25);
}