/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout base com altura total e flex */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER ----------------------------- */
.site-header {
  width: 100%;
  background-color: #7030A0;
  color: white;
  padding: 1.5rem 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

.logo {
  height: 60px;
}

/* NAV ----------------------------- */
.navmenu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navmenu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navmenu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.navmenu li a:hover,
.navmenu li a.active {
  color: #ddd;
}

.mobile-nav-toggle {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* FOOTER ----------------------------- */
.site-footer {
  width: 100%;
  background-color: #7030A0;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.site-footer .social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.site-footer .social-links a:hover {
  color: #ddd;
}

.site-footer .copyright,
.site-footer .credits {
  font-size: 0.85rem;
  margin: 0;
}

/* MAIN ----------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

.upload-area {
  border: 2px solid #ccc;
  padding: 2rem;
  text-align: center;
  background: white;
  cursor: pointer;
  margin-bottom: 1rem;
  min-height: 120px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  white-space: pre-wrap;
  border-radius: 12px;
}

.upload-area.hover {
  border-color: #007bff;
  background-color: #e6f0ff;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

button {
  color: white;
  background-color: #7030A0;
  padding: 0.5rem 1rem;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

button:hover {
  background-color: #7a28cb;
  color: white;
}

#micIcon {
  font-size: 18px;
  transition: color 0.3s;
}

.click-here {
  color: #7030A0;
  font-weight: bold;
  cursor: pointer;
}

.audio {
  margin-top: 1rem;
}

.output {
  margin-top: 2rem;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ccc;
  min-height: 120px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  white-space: pre-wrap;
  border-radius: 12px;
}

.border-rocketseat-dark {
  --tw-border-opacity: 1;
  border: 2px solid rgb(130 52 233 / var(--tw-border-opacity));
}

/* ANIMAÇÕES ----------------------------- */
.blinking {
  color: white !important;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.blink-red {
  color: red;
  animation: blink-red 1s infinite;
}

@keyframes blink-red {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* RESPONSIVO ----------------------------- */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    height: auto;

    .site-title {
      position: static;
      transform: none;
      margin-top: 0.5rem;
    }
  
    .site-header {
      gap: 0.5rem;
    }

    .language-select {
      margin-bottom: 2rem; /* ou mais, se quiser mais espaço */
    }
    
  }

  .logo {
    height: 50px;
  }

  .site-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .navmenu {
    display: none;
    flex-direction: column;
    background: #7030A0;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }

  .navmenu.active {
    display: flex;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav-toggle {
    display: block;
    margin-top: 0.5rem;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- language buttons ----*/

.language-select {
  margin-bottom: 1.5rem;
  text-align: center;
}

.language-select label {
  margin-right: 0.5rem;
  font-weight: 100;
}

.language-select select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  color:#7030A0;

}