* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f7f9fa;
  color: #0f1419;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

header {
  display: none;
}

h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.tweet-card {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 1rem;
  margin-top: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tweet-content {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
}

.tweet-time {
  color: #536471;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e8ed;
}

.tweet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  color: #536471;
}

.action-button:hover {
  color: rgb(29, 155, 240);
}

.action-button.like:hover {
  color: rgb(249, 24, 128);
}

.action-button.retweet:hover {
  color: rgb(0, 186, 124);
}

.action-icon {
  width: 20px;
  height: 20px;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.count-wrapper {
  display: inline-block;
  position: relative;
  height: 1.2em;
  vertical-align: middle;
}

.count-wrapper span {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.count-wrapper span.entering {
  animation: slideUp 0.3s ease-out forwards;
}

.count-wrapper span.leaving {
  animation: slideOut 0.3s ease-out forwards;
}

#nova {
  background: #000;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

#nova:hover {
  background: #272727;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#nova:active {
  transform: translateY(0);
}

.noscript {
  color: #f91880;
  margin: 1rem 0;
  font-size: 0.875rem;
}

footer {
  padding-top: 2rem;
  font-size: 0.875rem;
  color: #536471;
  text-align: center;
}

footer a {
  color: #000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #000;
    color: #e7e9ea;
  }

  .tweet-card {
    background: #16181c;
    border: 1px solid #2f3336;
  }

  .avatar {
    background: #e7e9ea;
    color: #000;
  }

  .user-handle {
    color: #71767b;
  }

  .tweet-time {
    color: #71767b;
    border-bottom: 1px solid #2f3336;
  }

  .tweet-actions {
    color: #71767b;
  }

  #nova {
    background: #e7e9ea;
    color: #000;
  }

  #nova:hover {
    background: #d6d9db;
  }

  footer {
    color: #71767b;
  }

  footer a {
    color: #e7e9ea;
  }
}