/* panel-efectos-nombre.css: the name-effect picker (Apariencia): the grid
   of effect cards and the preview next to it.
   Loaded right after the file before it; the order of every panel file is in
   panel-login.css. */

/* ==========================================
   USERNAME EFFECTS STYLING
   ========================================== */

/* Layout container inside dashboard group */
.username-effects-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .username-effects-layout {
    grid-template-columns: 1fr;
  }
}

/* 3x4 Selector Grid */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .effects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Grid Cards */
.effect-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 105px;
  user-select: none;
}

.effect-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.effect-card.active {
  background: rgba(147, 51, 234, 0.08);
  border: 2px solid #a855f7;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.effect-card-icon {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--panel-gris);
  font-weight: 500;
  pointer-events: none;
}

.effect-card-name {
  font-size: 0.78rem;
  color: var(--panel-gris);
  font-weight: 600;
  pointer-events: none;
  text-align: center;
}

.effect-card.active .effect-card-name {
  color: #c084fc;
}

/* Canvas Sparkle Card Icon */
.effect-card-icon-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sparkle-card-emoji {
  position: relative;
  font-size: 1.4rem;
  z-index: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Preview Panel on the Right */
.effect-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}

.effect-preview-card-wrap {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.effect-preview-card-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7f1d1d, #450a0a); /* Sleek red gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#username-preview-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  text-align: center;
}

.effect-preview-details {
  text-align: center;
  width: 100%;
}

.effect-preview-details h4 {
  font-size: 1.1rem;
  color: var(--panel-gris-claro);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.effect-preview-details p {
  font-size: 0.85rem;
  color: var(--panel-gris);
  line-height: 1.4;
}

#username-preview-text.effect-none {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  animation: none !important;
  filter: none !important;
}

#username-preview-text.effect-rainbow {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff) !important;
  background-size: 400% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbowShift 6s linear infinite !important;
  text-shadow: none !important;
  filter: none !important;
}

#username-preview-text.effect-fuzzy {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8), -2px -1px 0 rgba(255, 0, 0, 0.7), 2px 1px 0 rgba(0, 0, 255, 0.7) !important;
  animation: fuzzyGlitch 0.15s steps(2) infinite !important;
  filter: none !important;
  display: inline-block !important; /* skew needs display inline-block */
}

#username-preview-text.effect-typing,
#username-preview-text.effect-shuffle {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: usernameGlow 4s infinite ease-in-out !important;
  text-shadow: none !important;
  filter: none !important;
}

#username-preview-text.effect-sparkle {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: usernameGlow 4s infinite ease-in-out !important;
  text-shadow: none !important;
  filter: none !important;
}

@keyframes panelNameShimmer { 0% { background-position: 200% 50%; } 100% { background-position: -40% 50%; } }
@keyframes panelNeonPulse {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 14px var(--accent-color), 0 0 28px var(--accent-glow); }
  50% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 22px var(--accent-color), 0 0 42px var(--accent-color); }
}
.effect-card-icon:is(.effect-glitch, .effect-shimmer, .effect-neon-pulse, .effect-outline) { font-weight: 800; font-size: 1.05rem; font-family: 'Outfit', sans-serif; }
.effect-card-icon.effect-glitch, #username-preview-text.effect-glitch {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: #fff !important; text-shadow: -2px 0 #22d3ee, 2px 0 #f43f5e !important; filter: none !important; animation: none !important;
}
.effect-card-icon.effect-shimmer, #username-preview-text.effect-shimmer {
  background: linear-gradient(110deg, #9ca3af 18%, #fff 44%, var(--accent-color) 50%, #fff 56%, #9ca3af 82%) !important;
  background-size: 240% auto !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; text-shadow: none !important; filter: none !important;
  animation: panelNameShimmer 3.8s linear infinite !important;
}
.effect-card-icon.effect-neon-pulse, #username-preview-text.effect-neon-pulse {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: #fff !important; filter: none !important; animation: panelNeonPulse 2.4s ease-in-out infinite !important;
}
.effect-card-icon.effect-outline, #username-preview-text.effect-outline {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: transparent !important; -webkit-text-stroke: 1.5px var(--accent-color) !important;
  text-shadow: none !important; filter: drop-shadow(0 0 10px var(--accent-glow)) !important; animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .effect-card-icon.effect-shimmer, #username-preview-text.effect-shimmer,
  .effect-card-icon.effect-neon-pulse, #username-preview-text.effect-neon-pulse { animation: none !important; }
}
