/* packages/client/src/styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #f0f0f0;
  background: #0c0c0c;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  line-height: 1.6;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  color: #f0f0f0;
  text-align: center;
  background: #0c0c0c;
  border-bottom: 1px solid #1a1a1a;
  padding: 1.5rem 2rem;
}

.app-header h1 {
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.app-header p {
  color: #555;
  font-size: .875rem;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.app-footer {
  color: #333;
  text-align: center;
  background: #0c0c0c;
  border-top: 1px solid #1a1a1a;
  margin-top: 2rem;
  padding: 1rem;
  font-size: .8rem;
}

.record-btn {
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  padding: 10px;
  transition: transform .2s, filter .2s, background .2s;
}

.record-btn:hover {
  filter: brightness(1.4) drop-shadow(0 0 10px #ef44448c);
  background: #ef444414;
  transform: scale(1.12);
}

.record-btn.recording {
  animation: pulse-record 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 14px #ef4444d9);
  background: #ef44441f;
}

@keyframes pulse-record {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px #ef4444b3);
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px #ef4444);
  }
}

.play-btn {
  transition: transform .15s, filter .15s;
}

.play-btn:not(:disabled):hover {
  filter: drop-shadow(0 0 6px #22c55e99);
  transform: scale(1.2);
}

.play-btn--playing {
  animation: pulse-play .9s ease-in-out infinite;
}

@keyframes pulse-play {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #22c55e80);
  }

  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px #22c55ee6);
  }
}

.inline-word {
  cursor: pointer;
  transition: filter .15s, opacity .15s;
}

.inline-word:not(:disabled):hover {
  filter: brightness(1.5) drop-shadow(0 0 5px currentColor);
}

.inline-word--playing {
  opacity: .6;
  cursor: default;
}

@media (max-width: 768px) {
  .app-header h1 {
    font-size: 1.25rem;
  }

  .app-main {
    padding: 1rem;
  }
}
