/* ========================================
   TYPEWRITER EFFECT STYLES
   Terminal-style typing animation
   ======================================== */

/* Container optimized for 100vh layout */
.typewriter-text {
  display: block;
  width: 100%;
  max-width: 760px;
  min-height: 80px; /* Reducido de 120px */
  overflow: hidden;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.2;
  margin: 0 auto;
}

.typewriter-description {
  width: 100%;
  max-width: 760px;
  min-height: 60px; /* Reducido de 120px */
  overflow: hidden;
  position: relative;
  opacity: 0.9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  display: block;
  margin: 0 auto;
}

.terminal-prompt {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1em;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(150, 175, 2, 0.4);
  margin-right: 0.5rem;
  display: inline;
}

.typed-content,
.typed-description {
  display: inline;
}

.cursor {
  display: inline;
  color: var(--color-primary);
  animation: blink 1.1s steps(2) infinite;
  font-weight: 700;
  margin-left: 0;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .typewriter-text {
    font-size: 1.6rem;
    width: 95%;
    min-height: 100px;
  }
  
  .typewriter-description {
    width: 95%;
    min-height: 80px;
  }
  
  .terminal-prompt {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .typewriter-text {
    font-size: 1.4rem;
    width: 100%;
    min-height: 90px;
  }
  
  .typewriter-description {
    width: 100%;
    min-height: 70px;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
  
  .typewriter-text,
  .typewriter-description {
    transition: none;
  }
}
