/* Notification Banner Styles */
.notification-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1b1b 50%, #1a0a0a 100%);
  border: 1px solid rgba(255, 105, 180, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2), 0 0 20px rgba(255, 20, 147, 0.1);
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-text {
  color: #ff69b4;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.text-line {
  line-height: 1.3;
}

.chat-icon {
  display: flex;
  align-items: center;
}

.speech-bubble {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff1493;
}

.dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.dots span {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

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

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #1a0a0a 50%, #0a0a1a 75%, #0a0a0a 100%);
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.quiz-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 40px;
}

.quiz-image {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quiz-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #ff69b4, #ff1493, #dc143c, #ff69b4);
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

.quiz-image img {
  width: 320px;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 
    0 0 30px rgba(255, 105, 180, 0.3),
    0 0 60px rgba(255, 20, 147, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
}

.quiz-image img:hover {
  transform: scale(1.02);
  box-shadow: 
    0 0 40px rgba(255, 105, 180, 0.4),
    0 0 80px rgba(255, 20, 147, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
}

@keyframes borderGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

.quiz-container {
  background: linear-gradient(135deg, rgba(26, 10, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  border: 1px solid rgba(255, 105, 180, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 0 30px rgba(255, 105, 180, 0.2),
    0 0 60px rgba(255, 20, 147, 0.1),
    inset 0 0 20px rgba(255, 105, 180, 0.05);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.quiz-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 105, 180, 0.1) 50%, transparent 70%);
  border-radius: 16px;
  pointer-events: none;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #ff69b4;
  text-align: center;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
  position: relative;
  z-index: 1;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.quiz-answer-btn {
  padding: 14px 0;
  background: linear-gradient(90deg, #ff69b4 0%, #ff1493 50%, #dc143c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(255, 105, 180, 0.3),
    0 0 30px rgba(255, 20, 147, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.quiz-answer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.quiz-answer-btn:hover {
  background: linear-gradient(90deg, #ff1493 0%, #dc143c 50%, #ff69b4 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.4),
    0 0 40px rgba(255, 20, 147, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.quiz-answer-btn:hover::before {
  left: 100%;
}

.quiz-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.linear-loader {
  width: 200px;
  height: 8px;
  background: rgba(255, 105, 180, 0.2);
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 105, 180, 0.3);
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff69b4 0%, #ff1493 50%, #dc143c 100%);
  border-radius: 4px;
  transition: width 0.1s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

.loader-text {
  font-size: 1.1rem;
  color: #ff69b4;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.footer {
  margin-top: 32px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

@media (max-width: 900px) {
  .quiz-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .quiz-image img {
    width: 220px;
    height: 290px;
  }
  .quiz-container {
    min-width: 220px;
    max-width: 98vw;
    padding: 24px 10px 18px 10px;
  }
}
