@import '../../button-template.css';

.challenge-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
  border: 2px solid #00d5ff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 213, 255, 0.4), inset 0 0 10px rgba(0, 213, 255, 0.05);
  padding: 16px;
  color: #e0e0e0;
  z-index: 2000;
  animation: slideInRight 0.3s ease-out;

  &.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4), inset 0 0 10px rgba(255, 107, 107, 0.05);
  }

  @media (max-width: 768px) {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(450px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 213, 255, 0.2);
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;

  .badge {
    background-color: rgba(0, 213, 255, 0.2);
    border: 1px solid #00d5ff;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #00d5ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .title {
    font-size: 14px;
    font-weight: 600;
    color: #d4f4ff;
  }
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #00d5ff;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;

  &:hover:not(:disabled) {
    color: #ffffff;
    transform: scale(1.15);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

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

.time-control {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;

  .label {
    color: #b0b0d0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .value {
    background-color: rgba(0, 213, 255, 0.1);
    border: 1px solid rgba(0, 213, 255, 0.3);
    border-radius: 3px;
    padding: 4px 12px;
    color: #00d5ff;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
  }
}

.expiration {
  font-size: 12px;
  color: #b0b0d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.error-message {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  border-radius: 3px;
  padding: 8px 10px;
  color: #ff9999;
  font-size: 12px;
}

.notification-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;

  button {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;

    &.btn-decline {
      background-color: transparent;
      border: 1px solid rgba(0, 213, 255, 0.3);
      color: #00d5ff;

      &:hover:not(:disabled) {
        background-color: rgba(0, 213, 255, 0.1);
        border-color: #00d5ff;
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
    }

    &.btn-accept {
      background-color: #00d5ff;
      color: #0a0e27;

      &:hover:not(:disabled) {
        box-shadow: 0 0 15px rgba(0, 213, 255, 0.6);
        transform: translateY(-1px);
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
    }
  }
}
