/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.language-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.language-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  color: white;
}

.language-switcher .dropdown-menu {
  min-width: 120px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 5px 0;
}

.language-switcher .dropdown-item {
  padding: 8px 15px;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--accent-color, #d97706);
}

.language-switcher .dropdown-item:focus {
  background-color: #f8f9fa;
  color: var(--accent-color, #d97706);
}

/* Flag Icons */
.flag-icon {
  width: 16px;
  height: 12px;
  display: inline-block;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.flag-es {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><rect width="3" height="2" fill="%23c60b1e"/><rect width="3" height="0.667" y="0.667" fill="%23ffc400"/></svg>');
}

.flag-en {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><rect width="60" height="30" fill="%23012169"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 L30,30 M0,15 L60,15" stroke="%23fff" stroke-width="10"/><path d="M30,0 L30,30 M0,15 L60,15" stroke="%23C8102E" stroke-width="6"/></svg>');
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-switcher {
    margin-left: 10px;
  }
  
  .language-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .language-text {
    display: none;
  }
  
  .flag-icon {
    width: 18px;
    height: 14px;
  }
}

/* Animation for language switching */
[data-translate] {
  transition: opacity 0.2s ease;
}

.language-switching [data-translate] {
  opacity: 0.7;
}
