/**
 * Update Notification Styles
 */

/* ============================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.update-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-color);
  color: var(--accent-contrast);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px var(--accent-glow);
  z-index: 1000;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
  font-size: 16px;
  line-height: 1.5;
}

.update-notification-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-notification-content p {
  margin: 0;
  font-weight: 600;
}

.update-notification-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.update-btn-reload,
.update-btn-dismiss {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.update-btn-reload {
  background: var(--accent-contrast);
  color: var(--accent-color);
}

.update-btn-reload:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.update-btn-dismiss {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-contrast);
  min-width: 40px;
}

.update-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .update-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ============================================================================
   MODAL OVERLAY & CONTENT
   ========================================================================== */

.update-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(8px);
}

.update-modal {
  background: var(--surface-color);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.update-modal-content {
  padding: 32px;
}

.update-modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.update-modal-content p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.update-changelog {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.update-changelog li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.update-changelog li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 900;
}

.update-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.update-btn-now,
.update-btn-later {
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  flex: 1;
}

.update-btn-now {
  background: var(--accent-color);
  color: var(--accent-contrast);
}

.update-btn-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.update-btn-later {
  background: var(--active-bg);
  color: var(--text-primary);
}

.update-btn-later:hover {
  background: var(--border-color);
}

/* ============================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}