/**
 * PhysioPRISM - Text Expansion Styles
 * ====================================
 */

/* Expansion Hint */
.text-expansion-hint {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
  border-radius: 4px;
  font-size: 13px;
  color: #1565c0;
  animation: slideIn 0.3s ease;
}

.text-expansion-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #2196f3;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  color: #1565c0;
  margin: 0 2px;
}

/* Expansion Preview */
.text-expansion-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  animation: slideIn 0.2s ease;
}

.expansion-trigger {
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.expansion-result {
  font-weight: 600;
  flex: 1;
}

.expansion-action {
  font-size: 12px;
  opacity: 0.9;
}

.expansion-action kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin: 0 2px;
}

/* Success Toast */
.text-expansion-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #10b981;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.text-expansion-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .text-expansion-hint {
    background: #1e3a5f;
    border-left-color: #3b82f6;
    color: #93c5fd;
  }

  .text-expansion-hint kbd {
    background: #0f172a;
    border-color: #3b82f6;
    color: #93c5fd;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .text-expansion-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
  }

  .text-expansion-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
