/**
 * Language Detection Notification Styles
 * Provides styling for the language detection notification component
 * Version: 1.1.0 (May 2025)
 */

.language-detection-notification {
  position: fixed;
  top: 70px;
  right: 20px;
  background: rgba(12, 18, 32, 0.9);
  color: #0df;
  border: 1px solid #0df;
  border-radius: 5px;
  padding: 10px 15px;
  box-shadow: 0 0 10px rgba(0, 221, 255, 0.5), 
              inset 0 0 5px rgba(0, 221, 255, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transform: translateX(150%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(3px);
  max-width: 300px;
  margin-left: auto;
}

.language-detection-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.language-detection-notification i {
  font-size: 18px;
  color: #0df;
}

.language-detection-notification span {
  flex: 1;
}

.language-detection-notification .close-notification {
  cursor: pointer;
  font-size: 20px;
  color: #0df;
  opacity: 0.7;
  flex: 0;
  padding: 0 5px;
}

.language-detection-notification .close-notification:hover {
  opacity: 1;
}

/* Language badges */
.message-language-badge {
  font-size: 10px;
  background: rgba(0, 221, 255, 0.15);
  color: #0df;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
  border: 1px solid rgba(0, 221, 255, 0.3);
  transition: opacity 0.2s ease;
}

.message-language-badge:hover {
  opacity: 1;
}

/* Enhance the language template buttons */
.language-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px !important;
  padding: 6px 10px !important;
  border-radius: 4px;
  background: rgba(0, 100, 120, 0.3) !important;
  border: 1px solid rgba(0, 221, 255, 0.4) !important;
}

.language-button:hover {
  background: rgba(0, 130, 160, 0.4) !important;
  border-color: rgba(0, 221, 255, 0.6) !important;
}

.language-button i {
  margin-right: 4px;
}

/* Flag icons for specific languages */
.german-button::after {
  content: "🇩🇪";
  margin-left: 4px;
  font-size: 14px;
}

.french-button::after {
  content: "🇫🇷";
  margin-left: 4px;
  font-size: 14px;
}

.spanish-button::after {
  content: "🇪🇸";
  margin-left: 4px;
  font-size: 14px;
}

.italian-button::after {
  content: "🇮🇹";
  margin-left: 4px;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-detection-notification {
    top: 60px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .language-button {
    font-size: 11px !important;
    padding: 5px 8px !important;
  }
}

/* Animation for language detection notification */
@keyframes language-pulse {
  0% { box-shadow: 0 0 10px rgba(0, 221, 255, 0.5), inset 0 0 5px rgba(0, 221, 255, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 221, 255, 0.7), inset 0 0 8px rgba(0, 221, 255, 0.3); }
  100% { box-shadow: 0 0 10px rgba(0, 221, 255, 0.5), inset 0 0 5px rgba(0, 221, 255, 0.2); }
}

.language-detection-notification.show {
  animation: language-pulse 2s infinite;
}
