/* Parent Popup Styling - Matches Extension Design */
/* Tektur font is loaded from the main style.css */
@import url('../../style.css');

:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --accent: 45 100% 60%;
  --radius: 0.5rem;
}

#parent-popup {
  position: fixed;
  z-index: 10000;
  background: hsl(var(--background) / 0.98);
  color: hsl(var(--foreground));
  padding: 12px 16px;
  border-radius: var(--radius);
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid hsl(var(--primary) / 0.3);
  font-family: 'Tektur', Arial, sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#parent-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Popup Content Styling */
.popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-message {
  color: inherit;
  font-weight: 400;
  font-family: 'Tektur', Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.popup-gif {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-gif img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Status-specific Styling */
.popup.success {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.15), rgba(46, 125, 50, 0.08));
  border-left: 3px solid #4caf50;
  color: hsl(var(--accent));
}

.popup.error {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.15), rgba(211, 47, 47, 0.08));
  border-left: 3px solid #f44336;
  color: #ff6b6b;
}

.popup.info {
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.15), rgba(2, 136, 209, 0.08));
  border-left: 3px solid #2196f3;
  color: hsl(var(--foreground));
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  #parent-popup {
    max-width: 280px;
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .popup-content {
    gap: 10px;
  }
}
