/* ================================
   USER MENU STYLES - Menú desplegable del botón de cuenta
   ================================ */

/* Contenedor principal del botón de usuario */
.global-user-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-block;
}

/* Botón principal de usuario */
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.user-icon {
  font-size: 1.2rem;
}

.user-text {
  font-weight: 500;
}

.user-status {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  font-weight: 400;
}

/* Menú desplegable */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}



.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Triángulo superior del menú */
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header del menú con información del usuario */
.user-dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-type {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Contenido del menú */
.user-dropdown-content {
  padding: 8px 0;
}

/* Elementos del menú */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #1e293b;
  transform: translateX(4px);
}

.dropdown-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.dropdown-text {
  flex: 1;
}

/* Separadores */
.dropdown-separator {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

/* Elementos premium */
.premium-item {
  color: #8b5cf6;
  position: relative;
}

.premium-item:hover {
  background: #faf5ff;
  color: #7c3aed;
}

.premium-item::after {
  content: '⭐';
  position: absolute;
  right: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Versiones para temas oscuros */
body.theme-dark .user-dropdown {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.theme-dark .user-dropdown::before {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .user-dropdown-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  border-bottom-color: #475569;
}

body.theme-dark .user-name {
  color: #f1f5f9;
}

body.theme-dark .user-type {
  color: #cbd5e1;
}

body.theme-dark .dropdown-item {
  color: #cbd5e1;
}

body.theme-dark .dropdown-item:hover {
  background: #334155;
  color: #f1f5f9;
}

body.theme-dark .dropdown-separator {
  background: #475569;
}

/* Versiones para temas claros */
body.theme-light .user-dropdown {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.theme-light .user-dropdown::before {
  background: #ffffff;
}

/* Versiones para tema rosa */
body.theme-rosa .user-dropdown {
  background: #fdf2f8;
  border-color: rgba(236, 72, 153, 0.2);
}

body.theme-rosa .user-dropdown::before {
  background: #fdf2f8;
  border-color: rgba(236, 72, 153, 0.2);
}

body.theme-rosa .user-dropdown-header {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

body.theme-rosa .premium-item {
  color: #ec4899;
}

body.theme-rosa .premium-item:hover {
  background: #fdf2f8;
  color: #db2777;
}

/* Responsive */
@media (max-width: 768px) {
  .user-dropdown {
    min-width: 280px;
    right: -10px;
  }
  
  .user-dropdown::before {
    right: 30px;
  }
  
  .user-dropdown-header {
    padding: 16px;
  }
  
  .dropdown-item {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .global-user-controls {
    top: 15px;
    right: 15px;
  }
  
  .user-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .user-dropdown {
    min-width: 260px;
    right: -15px;
  }
  
  .user-dropdown::before {
    right: 35px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .user-name {
    font-size: 0.9rem;
  }
  
  .user-type {
    font-size: 0.8rem;
  }
} 