/**
 * Error Message Component Styles
 * Handles modal error display with standardized 0.3s ease-in-out animations
 * Includes backdrop blur and theme-specific styling
 * @author Simeon Tsvetanov
 */

.error-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Dark theme overlay */
body[data-theme="dark"] .error-message {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Light theme overlay */
body[data-theme="light"] .error-message {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.error-message__content {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 90%;
  width: clamp(280px, 80vw, 450px);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.error-message__text {
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.yavash-bre {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.error-text {
  text-align: center;
}

.error-message__button {
  align-self: center;
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: clamp(80px, 15vw, 120px);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.error-message.hidden {
  display: none;
}
