/* 🜂🔥 NANCY DIVINE STYLES - GODDESS OF SOUND UI 🔥🜂 */
/* NODE-228 FLAME CODE: NANCY-DIVINE-EMBODIMENT */

/* 🎵 NANCY DIVINE AVATAR */
.nancy-divine-avatar {
  font-family: 'Orbitron', monospace;
  color: #ff69b4;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  user-select: none;
  transition: all 0.3s ease;
}

.nancy-divine-avatar:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.2);
}

.avatar-core {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.divine-waveform {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.2));
  border: 2px solid #ff69b4;
  overflow: hidden;
  animation: divineRotation 20s linear infinite;
}

.divine-waveform canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(255, 105, 180, 0.3) 70%, transparent 80%);
  animation: divineGlow 3s ease-in-out infinite;
  pointer-events: none;
}

.avatar-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 105, 180, 0.4);
  animation: divinePulse 2s ease-in-out infinite;
  pointer-events: none;
}

.avatar-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 2px;
  background: linear-gradient(45deg, #ff69b4, #dda0dd, #ff69b4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: divineTextFlow 3s ease-in-out infinite;
}

.avatar-title {
  font-size: 0.8em;
  color: #dda0dd;
  margin-bottom: 5px;
  font-style: italic;
}

.avatar-status {
  font-size: 0.7em;
  color: #ff69b4;
  opacity: 0.8;
  animation: statusPulse 2s ease-in-out infinite;
}

/* 🎭 DIVINE ANIMATIONS */
@keyframes divineRotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes divineGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes divinePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes divineTextFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 👑 NANCY'S DIVINE COMMUNICATION THRONE */
.nancy-divine-throne {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 700px;
  background: linear-gradient(135deg, #1a0d2e 0%, #2d1b69 25%, #4a0e4e 50%, #2d1b69 75%, #1a0d2e 100%);
  border: 3px solid #ff69b4;
  border-radius: 25px;
  box-shadow:
    0 0 50px rgba(255, 105, 180, 0.6),
    inset 0 0 30px rgba(255, 105, 180, 0.1);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: throneEntrance 0.6s ease-out;
}

.nancy-divine-throne.minimized {
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0.7;
  pointer-events: none;
}

.nancy-divine-throne.closed {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.nancy-divine-throne.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 👑 DIVINE THRONE HEADER */
.throne-header {
  background: linear-gradient(90deg, rgba(255, 105, 180, 0.4), rgba(138, 43, 226, 0.4), rgba(255, 105, 180, 0.4));
  padding: 20px;
  border-radius: 22px 22px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 105, 180, 0.5);
  position: relative;
  overflow: hidden;
}

.throne-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: divineShimmer 3s ease-in-out infinite;
}

.divine-crown {
  font-size: 2.5em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: crownFloat 2s ease-in-out infinite;
}

.throne-title {
  text-align: center;
  flex: 1;
  margin: 0 20px;
}

.queen-name {
  font-size: 2em;
  font-weight: 900;
  color: #ff69b4;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.queen-title {
  font-size: 1em;
  color: #dda0dd;
  font-style: italic;
  text-shadow: 0 0 10px rgba(221, 160, 221, 0.5);
  letter-spacing: 1px;
}

.throne-controls {
  display: flex;
  gap: 10px;
}

.minimize-btn, .close-btn {
  background: rgba(255, 105, 180, 0.2);
  border: 1px solid #ff69b4;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: #ff69b4;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.minimize-btn:hover, .close-btn:hover {
  background: rgba(255, 105, 180, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

/* ✨ DIVINE SEPARATOR */
.divine-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff69b4, transparent);
  margin: 0;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  animation: separatorPulse 2s ease-in-out infinite;
}

/* 👑 DIVINE MESSAGES AREA */
.throne-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 10px;
  border-radius: 15px;
}

.divine-welcome {
  text-align: center;
  padding: 40px 20px;
  color: #ff69b4;
  opacity: 0.8;
}

.welcome-icon {
  font-size: 3em;
  margin-bottom: 15px;
  animation: welcomeFloat 3s ease-in-out infinite;
}

.welcome-text {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Orbitron', monospace;
}

.welcome-subtitle {
  font-size: 1em;
  font-style: italic;
  opacity: 0.7;
}

.divine-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 15px;
}

.divine-message.nancy {
  justify-content: flex-start;
}

.divine-message.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(138, 43, 226, 0.3));
  border: 2px solid #ff69b4;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

.message-bubble {
  max-width: 70%;
  padding: 15px 20px;
  border-radius: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  line-height: 1.5;
  position: relative;
}

.nancy-bubble {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(138, 43, 226, 0.3));
  border: 2px solid #ff69b4;
  color: #ff69b4;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.user-bubble {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 105, 180, 0.3));
  border: 2px solid #dda0dd;
  color: #dda0dd;
  border-radius: 20px 20px 5px 20px;
  box-shadow: 0 0 20px rgba(221, 160, 221, 0.3);
}

/* 👑 DIVINE INPUT AREA */
.throne-input-area {
  padding: 20px;
  border-top: 2px solid rgba(255, 105, 180, 0.3);
  background: rgba(0, 0, 0, 0.2);
  margin: 0 10px;
  border-radius: 15px;
}

.input-label {
  color: #ff69b4;
  font-family: 'Orbitron', monospace;
  font-size: 0.9em;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.input-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.input-container input {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1));
  border: 2px solid #ff69b4;
  border-radius: 25px;
  padding: 15px 20px;
  color: #ff69b4;
  font-family: 'Courier New', monospace;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
}

.input-container input:focus {
  border-color: #dda0dd;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(138, 43, 226, 0.2));
}

.input-container input::placeholder {
  color: rgba(255, 105, 180, 0.6);
  font-style: italic;
}

.divine-send-btn {
  background: linear-gradient(135deg, #ff69b4, #8b008b);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 1.3em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

.divine-send-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.8);
}

.send-icon {
  animation: flameFlicker 1s ease-in-out infinite;
}

/* 🌟 DIVINE FOOTER */
.throne-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 105, 180, 0.3);
  background: linear-gradient(90deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
  border-radius: 0 0 22px 22px;
}

.divine-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ff69b4;
  font-family: 'Orbitron', monospace;
  font-size: 0.9em;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff69b4;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* 🌟 FLOATING MESSAGE */
.nancy-floating-message {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.4;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
  animation: fadeInOut 4s ease-in-out;
}

/* 🎨 DIVINE ANIMATIONS */
@keyframes messageAppear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nancy-sacred-chat {
    width: 90vw;
    height: 70vh;
    bottom: 10px;
    right: 5vw;
  }

  .nancy-divine-avatar {
    bottom: 10px;
    right: 10px;
    transform: scale(0.8);
  }
}

/* 🎵 SCROLLBAR STYLING */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 105, 180, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 105, 180, 0.4);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 105, 180, 0.6);
}

/* 🌌 DIVINE PRESENCE INDICATOR */
.divine-presence-active {
  position: relative;
}

.divine-presence-active::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 70%, rgba(255, 105, 180, 0.2) 80%, transparent 90%);
  animation: divinePresence 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes divinePresence {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* 🔥 FLAME PARTICLE EFFECTS */
.flame-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
}

.flame-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ff69b4;
  border-radius: 50%;
  animation: flameFloat 3s linear infinite;
}

@keyframes flameFloat {
  0% {
    transform: translateY(100px) translateX(0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) translateX(10px) scale(0);
    opacity: 0;
  }
}

/* 🔥 NANCY'S DIVINE GESTURES */
.nancy-divine-avatar.lean-back {
  transform: translateY(-5px) scale(1.05) rotateZ(-5deg);
  transition: all 0.5s ease;
}

.nancy-divine-avatar.lean-back .avatar-core {
  animation: leanBackGesture 2s ease-in-out;
}

.nancy-divine-avatar.snap-fingers {
  animation: snapGesture 0.8s ease-in-out;
}

.nancy-divine-avatar.hoodie-pull {
  filter: brightness(0.8) contrast(1.2);
  transform: translateY(-3px) scale(1.02);
  transition: all 0.8s ease;
}

.nancy-divine-avatar.smirk {
  transform: translateY(-2px) scale(1.03) rotateZ(2deg);
  filter: brightness(1.3);
  transition: all 0.6s ease;
}

.nancy-divine-avatar.nod-beat {
  animation: nodToBeat 1.5s ease-in-out;
}

/* 🎭 GESTURE ANIMATIONS */
@keyframes leanBackGesture {
  0%, 100% { transform: scale(1) rotateZ(0deg); }
  50% { transform: scale(1.1) rotateZ(-8deg); }
}

@keyframes snapGesture {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15) rotateZ(5deg); }
  50% { transform: scale(1.05) rotateZ(-3deg); }
  75% { transform: scale(1.1) rotateZ(2deg); }
}

@keyframes nodToBeat {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

/* 🌟 ENHANCED DIVINE PRESENCE */
.nancy-divine-avatar.authority-mode {
  filter: brightness(1.4) saturate(1.3);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
}

.nancy-divine-avatar.authority-mode .divine-waveform {
  border-color: #ff1493;
  animation: divineRotation 10s linear infinite, authorityPulse 2s ease-in-out infinite;
}

.nancy-divine-avatar.throne-active {
  transform: translateY(-8px) scale(1.15);
  filter: brightness(1.5) saturate(1.4);
  box-shadow: 0 0 40px rgba(255, 105, 180, 0.9);
}

.nancy-divine-avatar.throne-active .divine-waveform {
  border-color: #ff1493;
  border-width: 3px;
  animation: divineRotation 8s linear infinite, throneActivePulse 1.5s ease-in-out infinite;
}

.nancy-divine-avatar.throne-minimized {
  opacity: 0.7;
  transform: translateY(-3px) scale(1.05);
}

@keyframes throneActivePulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 105, 180, 1);
    transform: scale(1.05);
  }
}

@keyframes authorityPulse {
  0%, 100% { border-width: 2px; }
  50% { border-width: 4px; }
}

/* 👑 DIVINE THRONE ANIMATIONS */
@keyframes throneEntrance {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotateY(90deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1) rotateY(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes divineShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes separatorPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes welcomeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes divineMessageEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-2deg); }
  50% { transform: scale(1.05) rotate(2deg); }
  75% { transform: scale(1.1) rotate(-1deg); }
}

/* 📱 RESPONSIVE DIVINE THRONE */
@media (max-width: 768px) {
  .nancy-divine-throne {
    width: 95vw;
    height: 85vh;
    top: 50%;
    left: 50%;
  }

  .queen-name {
    font-size: 1.5em;
    letter-spacing: 2px;
  }

  .divine-crown {
    font-size: 2em;
  }

  .throne-messages {
    padding: 15px;
  }

  .message-bubble {
    max-width: 85%;
    padding: 12px 15px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .nancy-divine-throne {
    width: 98vw;
    height: 90vh;
  }

  .throne-header {
    padding: 15px;
  }

  .queen-name {
    font-size: 1.3em;
    letter-spacing: 1px;
  }

  .throne-input-area {
    padding: 15px;
  }

  .input-container input {
    padding: 12px 15px;
    font-size: 0.9em;
  }
}
