/**
 * Language templates styling
 * Custom styles for language template functionality
 */

/* German language button styling */
.german-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 90, 170, 0.4);
  animation: autoglow 2s infinite;
}

/* German button hover effect */
.german-button:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 90, 170, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 90, 170, 0.3);
}

/* Active/clicked state */
.german-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
}

/* Light theme adjustments */
[data-theme="light"] .german-button {
  background-color: rgba(220, 230, 240, 0.8);
  border-color: rgba(0, 90, 170, 0.3);
  color: rgba(0, 70, 140, 1);
  animation: none;
}

[data-theme="light"] .german-button:hover {
  background-color: rgba(200, 220, 240, 0.9);
  border-color: rgba(0, 90, 170, 0.6);
}

/* Auto-detect notification badge */
.german-button::after {
  content: "AUTO";
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: rgba(0, 255, 170, 0.8);
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: bold;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

[data-theme="light"] .german-button::after {
  background-color: rgba(0, 180, 120, 0.9);
  color: white;
}

/* Add a slight glow effect to indicate the feature is active */
@keyframes autoglow {
  0% { box-shadow: 0 0 3px rgba(0, 255, 170, 0.5); }
  50% { box-shadow: 0 0 8px rgba(0, 255, 170, 0.8); }
  100% { box-shadow: 0 0 3px rgba(0, 255, 170, 0.5); }
}

/* Separator styling for dropdown */
#template-select option[disabled] {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 242, 255, 0.8);
  font-weight: bold;
  text-align: center;
  margin: 5px 0;
  padding: 2px 0;
}

[data-theme="light"] #template-select option[disabled] {
  background-color: rgba(0, 90, 170, 0.1);
  color: rgba(0, 90, 170, 0.8);
}

/* Make room for the German button */
@media screen and (max-width: 768px) {
  .export-buttons {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .export-buttons button {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
}

/* Language detection notification */
.language-detection-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #00eeff;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 3px solid #00eeff;
  font-family: 'Rajdhani', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-detection-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.language-detection-notification i {
  font-size: 1.2rem;
  color: #00eeff;
}

.language-detection-notification .close-notification {
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.language-detection-notification .close-notification:hover {
  opacity: 1;
}

/* Light theme adjustments */
[data-theme="light"] .language-detection-notification {
  background-color: #f0f0f0;
  color: #0078d4;
  border-left-color: #0078d4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .language-detection-notification i {
  color: #0078d4;
}
