/**
 * Theme Manager Styles
 * Drag & drop overlay, notifications, and controls
 */

/* Drag & Drop Overlay */
.theme-drop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.theme-drop-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drop-content {
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.2s ease;
}

.theme-drop-overlay.active .drop-content {
  transform: translateY(0);
}

.drop-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.drop-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.drop-subtext {
  font-size: 1.2rem;
  opacity: 0.8;
}

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

/* Theme Notifications */
.theme-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-surface, #ffffff);
  color: var(--color-foreground, #000000);
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent, #2914a0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  max-width: 300px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.theme-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.theme-notification--success {
  border-left-color: var(--color-success, #d0fff1);
  background: color-mix(in srgb, var(--color-success, #d0fff1) 10%, var(--color-surface, #ffffff));
}

.theme-notification--error {
  border-left-color: var(--color-error, #ff6b6b);
  background: color-mix(in srgb, var(--color-error, #ff6b6b) 10%, var(--color-surface, #ffffff));
}

.theme-notification--info {
  border-left-color: var(--color-accent, #2914a0);
  background: color-mix(in srgb, var(--color-accent, #2914a0) 10%, var(--color-surface, #ffffff));
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .drop-text {
    font-size: 1.5rem;
  }
  
  .drop-subtext {
    font-size: 1rem;
  }
  
  .theme-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Fallback for browsers without color-mix support */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .theme-notification--success {
    background: #f0fff4;
  }
  
  .theme-notification--error {
    background: #fff5f5;
  }
  
  .theme-notification--info {
    background: #f8f9ff;
  }
}

/* Theme transition animation */
:root {
  transition: 
    --color-background 0.3s ease,
    --color-foreground 0.3s ease,
    --color-accent 0.3s ease,
    --color-surface 0.3s ease;
}

/* Smooth color transitions for all themed elements */
body,
.bookmark,
.tag,
button,
input,
textarea,
.nav,
.content {
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}