/* ==========================================================================
   Newsletter Signup Component - Terminal Style
   ========================================================================== */

.email-signup-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 45px 35px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border-radius: 16px;
  border: 2px solid #333333;
  position: relative;
  overflow: visible;
  min-height: 200px;
  margin: 25px;
  box-shadow: 
    0 0 0 1px #666666,
    0 0 0 3px #333333,
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.email-signup-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffb000, #00ff00, #0066cc, #ffb000);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.3;
  animation: wireframe-glow 4s ease-in-out infinite;
}

/* Corner Indicators */
.corner-indicator {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid;
  pointer-events: none;
  z-index: 4;
}

.corner-top-left {
  top: 8px;
  left: 8px;
  border-color: #00ff00;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
  opacity: 0.7;
}

.corner-top-right {
  top: 8px;
  right: 8px;
  border-color: #ffb000;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
  opacity: 0.7;
}

.corner-bottom-left {
  bottom: 8px;
  left: 8px;
  border-color: #0066cc;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
  opacity: 0.7;
}

.corner-bottom-right {
  bottom: 8px;
  right: 8px;
  border-color: #ffffff;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
  opacity: 0.7;
}

/* Email Icon */
.email-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.email-envelope {
  position: relative;
  width: 150px;
  height: 100px;
  cursor: pointer;
  animation: email-float-dance 2.5s ease-in-out infinite;
}

.envelope-body {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid #666666;
  border-radius: 8px;
  position: relative;
  overflow: visible;
}

/* Removed unused hover effects since email animation always runs */

.envelope-body::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #666666;
  border-radius: 1px;
}

.envelope-body::after {
  content: 'from: @mycoco';
  position: absolute;
  top: 18px;
  left: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 8px;
  color: #888888;
  font-weight: 500;
}

.envelope-flap {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Removed envelope-flap hover effect */

.flap-triangle {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
}

.flap-triangle::before {
  content: 'NEWSLETTER';
}

/* Removed flap-triangle hover effect */

.email-letter {
  position: absolute;
  top: 32px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.letter-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.email-envelope .line {
  height: 1px;
  opacity: 0.5;
  background: transparent;
  border-top: 1px solid #666666;
}

.email-envelope .line-1 {
  width: 85%;
  animation: line-glow-1 3s ease-in-out infinite alternate;
}

.email-envelope .line-2 {
  width: 75%;
  animation: line-glow-2 3s ease-in-out infinite alternate 0.5s;
}

.email-envelope .line-3 {
  width: 90%;
  animation: line-glow-3 3s ease-in-out infinite alternate 1s;
}

/* Content */
.email-signup-content {
  flex: 1;
  padding-left: 20px;
  position: relative;
}

.email-signup-content .newsletter-title {
  color: #00ff00;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: "Roboto Mono", monospace;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  animation: newsletter-title-glow 2s ease-in-out infinite alternate;
  position: relative;
}

.email-signup-content .newsletter-title::before {
  content: "~/";
  color: #ffb000;
  margin-right: 5px;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.4);
}

.email-signup-content .newsletter-description {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-family: "Roboto Mono", monospace;
}

/* Form */
.email-signup-form .newsletter-input-group {
  display: flex;
  align-items: stretch;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  min-width: 0;
  flex-wrap: wrap;
}

.email-signup-form .newsletter-input-group:focus-within {
  border-color: #00ff00;
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.1);
}

.newsletter-prompt {
  background: #2a2a2a;
  color: #00ff00;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid #333333;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Roboto Mono", monospace;
  flex-shrink: 0;
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: #666666;
  font-style: italic;
}

.email-signup-button {
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%) !important;
  color: #000000 !important;
  border: none;
  padding: 10px 16px;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 176, 0, 0.3);
  flex-shrink: 0;
  min-width: fit-content;
}

.email-signup-button:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%) !important;
  transform: translateX(2px) translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4) !important;
}

.email-signup-button:active {
  transform: translateX(4px);
}

.email-signup-content .newsletter-privacy {
  font-size: 11px;
  color: #666666;
  margin-top: 12px;
  font-family: "Roboto Mono", monospace;
  line-height: 1.3;
}

/* Status Messages */
.newsletter-status {
  font-size: 12px;
  font-family: "Roboto Mono", monospace;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 3px;
  border-left: 3px solid;
  display: none;
}

.newsletter-status.success {
  background: rgba(0, 255, 0, 0.1);
  border-left-color: #00ff00;
  color: #00ff00;
  display: block;
}

.newsletter-status.error {
  background: rgba(255, 95, 87, 0.1);
  border-left-color: #ff5f57;
  color: #ff5f57;
  display: block;
}

/* Animations */
@keyframes newsletter-title-glow {
  from { text-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
  to { text-shadow: 0 0 15px rgba(0, 255, 0, 0.5), 0 0 25px rgba(255, 176, 0, 0.3); }
}

/* Removed envelope-breathe animation since we use email-float-dance always */

@keyframes email-float-dance {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.2);
  }
  25% {
    transform: translateY(-8px) rotate(2deg) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translateY(-12px) rotate(0deg) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 255, 0, 0.2);
  }
  75% {
    transform: translateY(-8px) rotate(-2deg) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 176, 0, 0.3);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.2);
  }
}

@keyframes wireframe-glow {
  0%, 100% {
    opacity: 0.2;
    background: linear-gradient(45deg, #ffb000, #00ff00, #0066cc, #ffb000);
  }
  33% {
    opacity: 0.4;
    background: linear-gradient(45deg, #00ff00, #0066cc, #ffb000, #00ff00);
  }
  66% {
    opacity: 0.3;
    background: linear-gradient(45deg, #0066cc, #ffb000, #00ff00, #0066cc);
  }
}

@keyframes line-glow-1 {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

@keyframes line-glow-2 {
  0% { opacity: 0.2; }
  100% { opacity: 0.5; }
}

@keyframes line-glow-3 {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .email-signup-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 30px 20px;
  }
  
  .email-envelope {
    width: 100px;
    height: 65px;
  }
  
  .email-signup-content {
    padding-left: 0;
    width: 100%;
  }
  
  .email-signup-form .newsletter-input-group {
    flex-direction: column;
  }
  
  .newsletter-prompt {
    border-right: none;
    border-bottom: 1px solid #333333;
    justify-content: center;
    padding: 10px;
  }
  
  .email-signup-button {
    justify-content: center !important;
    padding: 12px 20px !important;
  }
}

@media (max-width: 480px) {
  .email-signup-container {
    padding: 25px 15px;
    gap: 20px;
  }
  
  .email-envelope {
    width: 85px;
    height: 55px;
  }
  
  .email-letter {
    top: 12px;
    left: 8px;
    right: 8px;
    bottom: 12px;
    padding: 6px;
  }
  
  .email-signup-content .newsletter-title {
    font-size: 16px;
  }
  
  .email-signup-content .newsletter-description {
    font-size: 13px;
  }
}